Message ID | 20201030155716.3614401-2-zi.yan@sent.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=uRYk=EF=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 9F853139F for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 30 Oct 2020 15:57:34 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4CDBB221EB for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 30 Oct 2020 15:57:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=sent.com header.i=@sent.com header.b="CM6maBmx"; dkim=temperror (0-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="XjsIw02X" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4CDBB221EB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=sent.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 33D456B0073; Fri, 30 Oct 2020 11:57:33 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2ED156B0075; Fri, 30 Oct 2020 11:57: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 18D906B007D; Fri, 30 Oct 2020 11:57:33 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0192.hostedemail.com [216.40.44.192]) by kanga.kvack.org (Postfix) with ESMTP id DDE916B0073 for <linux-mm@kvack.org>; Fri, 30 Oct 2020 11:57:32 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 5F03C181AEF10 for <linux-mm@kvack.org>; Fri, 30 Oct 2020 15:57:32 +0000 (UTC) X-FDA: 77429046744.14.sleep80_1f1711727297 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin14.hostedemail.com (Postfix) with ESMTP id 4076B18229835 for <linux-mm@kvack.org>; Fri, 30 Oct 2020 15:57:32 +0000 (UTC) X-Spam-Summary: 1,0,0,9202762cfc0c3400,d41d8cd98f00b204,zi.yan@sent.com,,RULES_HIT:41:152:355:379:541:800:960:973:988:989:1260:1261:1277:1311:1313:1314:1345:1359:1437:1513:1515:1516:1518:1521:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2559:2562:3138:3139:3140:3141:3142:3352:3867:3868:3870:3871:4250:4321:5007:6119:6261:6653:7576:7903:10004:10400:10471:11026:11658:11914:12043:12294:12296:12438:12555:12679:12895:12986:13069:13255:13311:13357:14096:14097:14181:14394:14659:14721:21080:21451:21627:21990:30054:30064,0,RBL:66.111.4.25:@sent.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100;04yr5xaf93psa93o5hg1r99hgxgwzyp3xt7xissh76f68mbru11t6giou15e1ke.8e6ni3z5iikgfn57rrjfo6ehdmcwehr46bo7myhjssgkffcwxm48c5rn4ucqwc9.h-lbl8.mailshell.net-223.238.255.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:143,LUA_SUMMARY:none X-HE-Tag: sleep80_1f1711727297 X-Filterd-Recvd-Size: 4929 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by imf05.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Fri, 30 Oct 2020 15:57:31 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2AEAA5C02E3; Fri, 30 Oct 2020 11:57:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 30 Oct 2020 11:57:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h=from :to:cc:subject:date:message-id:in-reply-to:references:reply-to :mime-version:content-type:content-transfer-encoding; s=fm1; bh= a+yV5AyyQgbkAmuRGp5Grqx+CnaA6i6TKDg6E8EnuoM=; b=CM6maBmxba6MD3gN Qh3zw0M8Aodzykt7peGyp7k/hIrMRoSl4FyRsvoZgLc5iOjVDs05mgSwWSVB3RnU FHLvhGZ8QPztxZ3oWCaeIpOZPWPEHEsTHeoYk7tHY4TDF3x0XLxMUFQ2cULSYdxz on7zYvowgLYsDo6wTr3SOIKJr+0V55ya+/HxrINLLieVhkKQGEyoe3n8LemVQ3ck k76+b5mmNeYjebN9Ef6Y3sbpPgmfzDS+HiARnQnY91NWj+SduiWXEHrPsUhkVowJ so/Sxk7BtDDyHw4qi7yUjut9k5Ymb7QEhiAgjkTB5FJfFuprNPqOCAG2KQigidNZ 0qgWvw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :reply-to:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=a+yV5AyyQgbkAmuRGp5Grqx+CnaA6 i6TKDg6E8EnuoM=; b=XjsIw02X52kdwL2SI7AqkUZsB2TNMfkrvT1ZSucW8u4vP 9PKkglNpAMYJOAWnOHqUCdcHxxIYY/67DCcN3Xjpy3T35LjkN2B4z+RxS+q/C0uo +6gds5HWz1ZooDha+wUdpT/VHGI+I2LeXv+blBPL10LsEnh4Dg/+PH52HPiallui xg0D+IkHHQVbLjlS1NoldygtcJvt0pqRKpAUX8pcmCetyDlWmraPrdHsvizrrbLH DvmXnX/Z9QZtPIqoxJ7goL93hTaTSsjYilQBwYBer0J95f1B/HSDJy0Np470chnU 1SLnleKf+vrEmVlYAZwJcHLRc+1CgOZ9rYaYmgsUw== X-ME-Sender: <xms:6jecXwNsUFY30fvsZI4ygQMm7FShfp9oQMWP-9zKuyMH6lSqWtiz8Q> <xme:6jecX2_LAnZb62_TK9vIE5nXsVX941nMbatW5pivg7TwyWCZqZYZO10rLid4v3Qah 12ayEh1aMaWjfEDXg> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrleehgdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhhrgggtgfesthhqredtredtjeenucfhrhhomhepkghiucgj rghnuceoiihirdihrghnsehsvghnthdrtghomheqnecuggftrfgrthhtvghrnhepkefggf eljeefgeejtdethfehvdfgffdvfeefkeejtefghfetvdduffekgeeltedtnecukfhppedu vddrgeeirddutdeirdduieegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepiihirdihrghnsehsvghnthdrtghomh X-ME-Proxy: <xmx:6jecX3SwqoUEgFceRqgWX9icwxS_HzhKVdCdLr97Ih-34JsAyCCdiw> <xmx:6jecX4vFCMytth0AbAjmr7vBPpoGXKPgQIQtQAh2TflIM6fsm_RwTw> <xmx:6jecX4fCnqP5Yx4bSWpZCNZabjZrjo9Jd6ysknmsRIQ4NxhgXmXRhg> <xmx:6zecXwTYDEixWvZ6dY2LgLz6lLCSsbm5TrsvUSrpIOUEhVGHk94KRw> Received: from nvrsysarch6.NVidia.COM (unknown [12.46.106.164]) by mail.messagingengine.com (Postfix) with ESMTPA id 45A85328005D; Fri, 30 Oct 2020 11:57:30 -0400 (EDT) From: Zi Yan <zi.yan@sent.com> To: Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org Cc: Yang Shi <shy828301@gmail.com>, Michal Hocko <mhocko@suse.com>, Vlastimil Babka <vbabka@suse.cz>, Rik van Riel <riel@surriel.com>, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Zi Yan <ziy@nvidia.com> Subject: [PATCH v2 2/2] mm/compaction: stop isolation if too many pages are isolated and we have pages to migrate. Date: Fri, 30 Oct 2020 11:57:16 -0400 Message-Id: <20201030155716.3614401-2-zi.yan@sent.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201030155716.3614401-1-zi.yan@sent.com> References: <20201030155716.3614401-1-zi.yan@sent.com> Reply-To: Zi Yan <ziy@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 |
[v2,1/2] mm/compaction: count pages and stop correctly during page isolation.
|
expand
|
diff --git a/mm/compaction.c b/mm/compaction.c index 3e834ac402f1..4d237a7c3830 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -817,6 +817,10 @@ isolate_migratepages_block(struct compact_control *cc, unsigned long low_pfn, * delay for some time until fewer pages are isolated */ while (unlikely(too_many_isolated(pgdat))) { + /* stop isolation if there are still pages not migrated */ + if (cc->nr_migratepages) + return 0; + /* async migration should just abort */ if (cc->mode == MIGRATE_ASYNC) return 0;