From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16833C54EBC for ; Thu, 12 Jan 2023 07:18:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A51F68E0002; Thu, 12 Jan 2023 02:18:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9D9678E0001; Thu, 12 Jan 2023 02:18:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 87BD08E0002; Thu, 12 Jan 2023 02:18:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 716548E0001 for ; Thu, 12 Jan 2023 02:18:57 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 3C1F91C6255 for ; Thu, 12 Jan 2023 07:18:57 +0000 (UTC) X-FDA: 80345295114.19.F6A7295 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf01.hostedemail.com (Postfix) with ESMTP id 030BF40018 for ; Thu, 12 Jan 2023 07:18:54 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QBMch84J; spf=pass (imf01.hostedemail.com: domain of ying.huang@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=ying.huang@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673507935; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=dflsLWV/J1GOtPllpo1X7M8VO9KJe9vahiz5ol61lnw=; b=mIaD77MiPmuyp254ZYvmv5aOkcUl/dE9MXFGBefLNBJBQUR/3R9sAf0Hu8h3R9nqvwJrGF EXT8MuXjRaynfLJgHpAIKiETHeXa5ByRq4zVg3UMx3Bjtscnf4igirRCK0YU8ZWLQgUM23 wNo+tdbJMGYLGRHMYRSsWpboFV/+q58= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QBMch84J; spf=pass (imf01.hostedemail.com: domain of ying.huang@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=ying.huang@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673507935; a=rsa-sha256; cv=none; b=w3Z8t53WbmGPGcGZsrHRqrqaHVbRgwnfE3Nj5K+0olJUQXveKEClyxwqyHtHRumeMAOr19 Z7PJULXKK2u6rvO4iXR0w3o3Ta0m2y5B+uSEgHcg3MeJ/SA5BFUD+T1BsHgkS0Yh1fY1eg lPgT+XhMKUVnO56sRFi1hlces4m05RY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673507935; x=1705043935; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version; bh=x1v7f6BMYNWzU0mcsYHL+JCdP7VIQOxKIM7YiNatl6Q=; b=QBMch84JOcwWQEAukrzHizoQdQwDLmRttC/+DnamAYthCofVi3gkmJYr d6G04RJdlb2AH8iQt9Bv35cPcX0eeywUPtmJV91egsp8nXWe34RigTq4J yl8Xn1+Jv0B1CeYosz8i5uniT/zPw6dT/WjYp66TIQPCYugceJeui8Tw6 ZirUnQnEjJ4hlGEFc9MtSIyTcOLnq+gfWK1tf+djXX/xqZ4TJ68re1fJu Oga9ORPoJDngpqY0RslNJ4NZOu2uyclb3WDkvaJ/p9qBsPlEbibUiadbE emWHW1N5HnArHiSw1BmbD6ZbH+k9SPBqlRRv5w5sIxMaOVxb21mxap4Z8 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="409872555" X-IronPort-AV: E=Sophos;i="5.96,319,1665471600"; d="scan'208";a="409872555" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2023 23:18:53 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="635275312" X-IronPort-AV: E=Sophos;i="5.96,319,1665471600"; d="scan'208";a="635275312" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.238.208.55]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2023 23:18:49 -0800 From: "Huang, Ying" To: Mike Kravetz Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Zi Yan , Yang Shi , Baolin Wang , Oscar Salvador , Matthew Wilcox , Bharata B Rao , Alistair Popple , haoxin Subject: Re: [PATCH -v2 0/9] migrate_pages(): batch TLB flushing References: <20230110075327.590514-1-ying.huang@intel.com> <87a62oy5o9.fsf@yhuang6-desk2.ccr.corp.intel.com> Date: Thu, 12 Jan 2023 15:17:56 +0800 In-Reply-To: (Mike Kravetz's message of "Wed, 11 Jan 2023 18:15:41 -0800") Message-ID: <87ilhcrzkr.fsf@yhuang6-desk2.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 030BF40018 X-Rspam-User: X-Stat-Signature: gs9wci4bgpywqj9ezr9hb361h5dojref X-HE-Tag: 1673507934-65898 X-HE-Meta: U2FsdGVkX189U5/olqxgrMSnuQneWVZ7try4IYfO9MLy0eiqWqB/d0nVyUxDFJKC6MH9PS5o4A0HfvF4qqdBEruVEEj0cmRPUm7G8S417HphxC/okG9lXw8Z2x8ftw9Sh4sC28r0FiuIsNypd9fHmpv8071ROEt+e8BaTBynZEX0KlqktLljvCLmejtfp2/+WD85nbdkbV4YKwc5SydZ6R8VtBtDXY/eexczYEOXWF58lMeehOhqBCBmQ5IaB5h/By/vl2tgc/8aEUsLyQeY/MXG0u3GRhw/40jXyvXv6ReDyBj+bprQM2LsdXMu5ierquFeRB2iI0AoOwcVq8DNujVEvHdYieezrT39e3dT0HQ/vPXW7wtbUSH3USzLtIOftWtp8/sIKPRd0l+C0FPR6DfYoGZ7UuP1uBK+xLM1PzKEO7aGgHswPmLbBQeHl5EwZuuXB5Gh2EycYGhLTaQpRWgLpfTnumZ357wDoNwWP7YfPCicSAYIsynzz7jU/HVMoFo7lDA0vEz4XIyGJPjYXwkxLgD4rT5rUylAtkDG3Qpb6iNRdCTvHqFgOFHlUd0XY4xyKaBEItdi0GWae3Dq5+61tmTPJRlTdoP/OCXN9Tz9nzol2noeaSmQSyBWzR+NqLjwQtR1oPtQI6VAj6aYmSu19Oeml3bA7loehiTXrtxtmKs1c/2/IPzPeyMl1394Pcltl6lpodb4bkPW9O4gKvBanj8nnweknkPCbRsJphLw++EwsyiKl4dfZFDEp8+2ynb41Nb1c1vgr2D7N96NqGUNjDdsQS3ZaO6f33DwNoMMuoiKd8/H8nRqlAtCwFm3OtFqvWTL10o3b8ka+glkDYjcyMIT9UNAVPXIbm2fLOUo8b0+7RLFR7ioERU5P2onakbgSub6DdHEaqeo75Ra5gYUYDHqF/4h 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: Mike Kravetz writes: > On 01/12/23 08:09, Huang, Ying wrote: >> Hi, Mike, >> >> Mike Kravetz writes: >> >> > On 01/10/23 17:53, Mike Kravetz wrote: >> >> Just saw the following easily reproducible issue on next-20230110. Have not >> >> verified it is related to/caused by this series, but it looks suspicious. >> > >> > Verified this is caused by the series, >> > >> > 734cbddcfe72 migrate_pages: organize stats with struct migrate_pages_stats >> > to >> > 323b933ba062 migrate_pages: batch flushing TLB >> > >> > in linux-next. >> >> Thanks for reporting. >> >> I tried this yesterday (next-20230111), but failed to reproduce it. Can >> you share your kernel config? Is there any other setup needed? > > Config file is attached. Thanks! > Are you writing a REALLY big value to nr_hugepages? By REALLY big I > mean a value that is impossible to fulfill. This will result in > successful hugetlb allocations until __alloc_pages starts to fail. At > this point we will be stressing compaction/migration trying to find more > contiguous pages. > > Not sure if it matters, but I am running on a 2 node VM. The 2 nodes > may be important as the hugetlb allocation code will try a little harder > alternating between nodes that may perhaps stress compaction/migration > more. Tried again on a 2-node machine. Still cannot reproduce it. >> BTW: can you bisect to one specific commit which causes the bug in the >> series? > > I should have some time to isolate in the next day or so. Thanks! Best Regards, Huang, Ying