Message ID | 1584942732-2184-2-git-send-email-iamjoonsoo.kim@lge.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=t4Rs=5I=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D7B591731 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 23 Mar 2020 05:52:34 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A36F620732 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 23 Mar 2020 05:52:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="sT2oaupD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A36F620732 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C1AB56B0006; Mon, 23 Mar 2020 01:52:33 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id BCAE86B0007; Mon, 23 Mar 2020 01:52:33 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AE41D6B0008; Mon, 23 Mar 2020 01:52:33 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0227.hostedemail.com [216.40.44.227]) by kanga.kvack.org (Postfix) with ESMTP id 96F2F6B0006 for <linux-mm@kvack.org>; Mon, 23 Mar 2020 01:52:33 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id D23FC181AC9BF for <linux-mm@kvack.org>; Mon, 23 Mar 2020 05:52:33 +0000 (UTC) X-FDA: 76625557386.29.lamp90_6da7001e8f642 X-Spam-Summary: 2,0,0,87e8ec38b9052125,d41d8cd98f00b204,js1304@gmail.com,,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1345:1359:1437:1534:1541:1711:1730:1747:1777:1792:2198:2199:2393:2559:2562:2693:2731:2897:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3870:3871:3872:3874:4250:5007:6261:6653:7576:7875:9010:9036:9413:10004:11026:11473:11658:11914:12296:12297:12517:12519:12555:12679:12895:13069:13141:13230:13311:13357:14096:14181:14384:14394:14721:21080:21444:21451:21627:21666:21740:30054:30069,0,RBL:209.85.215.193:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: lamp90_6da7001e8f642 X-Filterd-Recvd-Size: 4492 Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by imf47.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Mon, 23 Mar 2020 05:52:33 +0000 (UTC) Received: by mail-pg1-f193.google.com with SMTP id t24so6639945pgj.7 for <linux-mm@kvack.org>; Sun, 22 Mar 2020 22:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=U7jG+Redj2n/Yx20QRQJyqa8ihVuhx36qawgSQPthFA=; b=sT2oaupDw/Yl/87fmDzroo8tDxr2qptcfNoatb3rT/4/Upulp99BL6swyzEqXhNEM6 poIZbN0EMmY2lPh1NM+GeaLO3kXQGAsAmM1wAYlCuKBRXGpOzfgRbhCBilZhoKgZljzD XjGqt0A/fAixNeIFKqooAkjFaHtI9MA0MEqW6OK8nkGC/zRDCV6A2eXbwDqQz4IIO8OP gXRZFTp4w9Qel84PdQHiVKH8oGwOLTneeTMyhKk4WlJbMU9u/ne+7oaRheHxgdEFv1uk FGEWI4kIoGp9A1Ozz4qQd2tR3qjjvhlJ7b2WHDg6+7y9w4VDLKAUxpDUNYZs0f7RzeRP oWRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=U7jG+Redj2n/Yx20QRQJyqa8ihVuhx36qawgSQPthFA=; b=GuwAAYR4OU6kkjcvTmk9TUgslCKUiaNIpBMiXhWXNL30Kj60fW505lTIJJaGppHoow pOye7FrALC9F/CApRoFmAIHY22ZHhINMBcljTo1WuPUEAR9WMxUm9K0fQgK+NntoUS3J ybhbTKKFRi0rDnA1NWJvPuo0GWuy+Cz564p7GZGOWxi24/M97f2j6WfU35tncq05zFqq +A1jO62iPETOQdRLI4N5DuClccrEVfHdr7KKO0ZuXVeIZbsS1hAOVDkfTa9EIGzZZbRP VK6r74JcnCxOyrPRzxuUnGM/aVwSl2YSyX8gJpuFTEWqElEv2lO2GCMcS0ixHTHH8Tq3 vv/g== X-Gm-Message-State: ANhLgQ0GXiQmDOBrsW8lBGB14ux+6+gLokyyyo+Abtcf7dUpK9S2IeUL ArLxoUt1yFOOo0VorW+rUXc= X-Google-Smtp-Source: ADFU+vt1x3FC3Hfo9KtpzYUNKyBS+UzrdYFDy9SSv0OxjI7uCe0zK9H0XWhKsIEJtGjgDTIOGtK5yg== X-Received: by 2002:a63:1404:: with SMTP id u4mr20171266pgl.172.1584942751981; Sun, 22 Mar 2020 22:52:31 -0700 (PDT) Received: from localhost.localdomain ([114.206.198.176]) by smtp.gmail.com with ESMTPSA id y30sm12563058pff.67.2020.03.22.22.52.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Mar 2020 22:52:31 -0700 (PDT) From: js1304@gmail.com X-Google-Original-From: iamjoonsoo.kim@lge.com To: Andrew Morton <akpm@linux-foundation.org> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner <hannes@cmpxchg.org>, Michal Hocko <mhocko@kernel.org>, Hugh Dickins <hughd@google.com>, Minchan Kim <minchan@kernel.org>, Vlastimil Babka <vbabka@suse.cz>, Mel Gorman <mgorman@techsingularity.net>, kernel-team@lge.com, Joonsoo Kim <iamjoonsoo.kim@lge.com> Subject: [PATCH v4 1/8] mm/vmscan: make active/inactive ratio as 1:1 for anon lru Date: Mon, 23 Mar 2020 14:52:05 +0900 Message-Id: <1584942732-2184-2-git-send-email-iamjoonsoo.kim@lge.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1584942732-2184-1-git-send-email-iamjoonsoo.kim@lge.com> References: <1584942732-2184-1-git-send-email-iamjoonsoo.kim@lge.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
workingset protection/detection on the anonymous LRU list
|
expand
|
diff --git a/mm/vmscan.c b/mm/vmscan.c index 572fb17..e772f3f 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2217,7 +2217,7 @@ static bool inactive_is_low(struct lruvec *lruvec, enum lru_list inactive_lru) active = lruvec_page_state(lruvec, NR_LRU_BASE + active_lru); gb = (inactive + active) >> (30 - PAGE_SHIFT); - if (gb) + if (gb && is_file_lru(inactive_lru)) inactive_ratio = int_sqrt(10 * gb); else inactive_ratio = 1;