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 3EFBFC433F5 for ; Tue, 14 Dec 2021 11:43:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3C6546B0071; Tue, 14 Dec 2021 06:43:11 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3755D6B0072; Tue, 14 Dec 2021 06:43:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 264166B0074; Tue, 14 Dec 2021 06:43:11 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0146.hostedemail.com [216.40.44.146]) by kanga.kvack.org (Postfix) with ESMTP id 182CF6B0071 for ; Tue, 14 Dec 2021 06:43:11 -0500 (EST) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id CC404180DD565 for ; Tue, 14 Dec 2021 11:43:00 +0000 (UTC) X-FDA: 78916213320.17.79A43D3 Received: from gentwo.de (gentwo.de [161.97.139.209]) by imf14.hostedemail.com (Postfix) with ESMTP id 21DD8100017 for ; Tue, 14 Dec 2021 11:42:59 +0000 (UTC) Received: by gentwo.de (Postfix, from userid 1001) id 1C483B0024C; Tue, 14 Dec 2021 12:42:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id 19CD9B00127; Tue, 14 Dec 2021 12:42:58 +0100 (CET) Date: Tue, 14 Dec 2021 12:42:58 +0100 (CET) From: Christoph Lameter X-X-Sender: cl@gentwo.de To: Marcelo Tosatti cc: Mel Gorman , Thomas Gleixner , Frederic Weisbecker , Christoph Lameter , Nicolas Saenz Julienne , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, peterz@infradead.org, nilal@redhat.com, linux-rt-users@vger.kernel.org, vbabka@suse.cz, ppandit@redhat.com Subject: Re: [PATCH v2 3/3] mm/page_alloc: Remotely drain per-cpu lists In-Reply-To: <20211214105823.GA53878@fuller.cnet> Message-ID: References: <20211103170512.2745765-1-nsaenzju@redhat.com> <20211103170512.2745765-4-nsaenzju@redhat.com> <20211203141306.GG3301@suse.de> <20211209174535.GA70283@fuller.cnet> <20211210105549.GJ3301@suse.de> <20211214105823.GA53878@fuller.cnet> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 21DD8100017 X-Stat-Signature: 9o8gt7okbk6or95roc418udtjuczcid3 Authentication-Results: imf14.hostedemail.com; dkim=none; spf=none (imf14.hostedemail.com: domain of cl@gentwo.org has no SPF policy when checking 161.97.139.209) smtp.mailfrom=cl@gentwo.org; dmarc=none X-HE-Tag: 1639482179-184292 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: On Tue, 14 Dec 2021, Marcelo Tosatti wrote: > > downside is that there will be a performance penalty if an application > > running on a NOHZ_FULL CPU is page allocator intensive for whatever > > reason. However, I guess this is unlikely because if there was a lot > > of kernel activity for a NOHZ_FULL CPU, the vmstat shepherd would also > > cause interference. > > Yes, it does, and its being fixed: > > https://lkml.org/lkml/2021/12/8/663 > > Honestly i am not sure whether the association between a nohz_full CPU > and "should be mostly in userspace" is desired. The RCU solution > would be more generic. As Nicolas mentioned, for the usecases in > questions, either solution is OK. > > Thomas, Frederic, Christoph, do you have any opinion on this ? Applications running would ideally have no performance penalty and there is no issue with kernel activity unless the application is in its special low latency loop. NOHZ is currently only activated after spinning in that loop for 2 seconds or so. Would be best to be able to trigger that manually somehow. And I would prefer to be able to run the whole system as NOHZ and have the ability to selectively enable the quiet mode if a process requires it for its processing.