Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1433458
| Path | csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Hillf Danton" <hillf.zj@alibaba-inc.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH] mm, vmscan: Give up balancing node for high order allocations earlier |
| Date | Wed, 29 Jun 2016 07:50:02 +0200 |
| Message-ID | <rPgxQ-ak-3@gated-at.bofh.it> (permalink) |
| X-Original-To | "'Mel Gorman'" <mgorman@techsingularity.net> |
| X-Greylist | delayed 316 seconds by postgrey-1.27 at vger.kernel.org; Wed, 29 Jun 2016 01:49:07 EDT |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=alibaba-inc.com; s=default; t=1467179331; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; bh=PBcBow5nJa6oRu5h2kMKA+0GcMgV7xCwHCBO9c9EzOc=; b=WYjqg295ei4zXd3cSRg+WaYPVbR377UCmTiUC3rARmotcjci1gjQfvoP+Gmq0pVP/cLiNVFJHcb4f3gKNgJto7CB+aUbHXynVut2Thlc0xARqpSf8rC1IY5MhdLQ5n9qdUrfEaRl+XpRdooxFwhIGKJ6IXHDid+RkJxVYrEuMfM= |
| X-Alimail-Antispam | AC=PASS;BC=-1|-1;BR=01201311R261e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03305;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_----4ynx9IR_1467178932; |
| Reply-To | "Hillf Danton" <hillf.zj@alibaba-inc.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="us-ascii" |
| Content-Transfer-Encoding | 7bit |
| X-Mailer | Microsoft Outlook 14.0 |
| Thread-Index | AdHRx+I5VywIL5nFTBqcdWZvcWBD7A== |
| Content-Language | zh-cn |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 33 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "'Johannes Weiner'" <hannes@cmpxchg.org>, "'Vlastimil Babka'" <vbabka@suse.cz>, "'linux-kernel'" <linux-kernel@vger.kernel.org>, <linux-mm@kvack.org>, "'Andrew Morton'" <akpm@linux-foundation.org> |
| X-Original-Date | Wed, 29 Jun 2016 13:42:12 +0800 |
| X-Original-Message-ID | <00ed01d1d1c8$fcb12ff0$f6138fd0$@alibaba-inc.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1433458 |
Show key headers only | View raw
To avoid excessive reclaim, we give up rebalancing for high order
allocations right after reclaiming enough pages.
Signed-off-by: Hillf Danton <hillf.zj@alibaba-inc.com>
---
mm/vmscan.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/mm/vmscan.c b/mm/vmscan.c
index ee7e531..d080fb2 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -3159,8 +3159,7 @@ static int balance_pgdat(pg_data_t *pgdat, int order, int classzone_idx)
do {
bool raise_priority = true;
-
- sc.nr_reclaimed = 0;
+ unsigned long reclaimed_pages = sc.nr_reclaimed;
/*
* If the number of buffer_heads in the machine exceeds the
@@ -3254,7 +3253,7 @@ static int balance_pgdat(pg_data_t *pgdat, int order, int classzone_idx)
* Raise priority if scanning rate is too low or there was no
* progress in reclaiming pages
*/
- if (raise_priority || !sc.nr_reclaimed)
+ if (raise_priority || sc.nr_reclaimed == reclaimed_pages)
sc.priority--;
} while (sc.priority >= 1);
--
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] mm, vmscan: Give up balancing node for high order allocations earlier "Hillf Danton" <hillf.zj@alibaba-inc.com> - 2016-06-29 07:50 +0200
csiph-web