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 AD576C433F5 for ; Tue, 14 Dec 2021 12:26:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1959F6B0071; Tue, 14 Dec 2021 07:26:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 11F736B0072; Tue, 14 Dec 2021 07:26:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F00EB6B0074; Tue, 14 Dec 2021 07:26:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0173.hostedemail.com [216.40.44.173]) by kanga.kvack.org (Postfix) with ESMTP id DB0E16B0071 for ; Tue, 14 Dec 2021 07:26:34 -0500 (EST) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 95DB184CFE for ; Tue, 14 Dec 2021 12:26:24 +0000 (UTC) X-FDA: 78916322688.14.59C6642 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf18.hostedemail.com (Postfix) with ESMTP id F2B7F1C0011 for ; Tue, 14 Dec 2021 12:26:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639484783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fNWLhg1ntWwp5Ppu09h0Eh4UGAn0KphaoLRSOYk8nM8=; b=I7R8oHmtlZWFOC7JknMTgWXenHqB0Wu89iSVhRR6y1CW8/7BGydGtyfEwwYIYx9DQwOaOQ KaEkJ3j9AwE5kR6hJrRpjugizXhep1ABWkdgoI7me1q+sQwOk3cEeuRuPxVLwJbkGtWOwW yWi6/MpV0j+My9xqOX4rx5EHCc7lGi8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-540-BMYZV-O3O2KuLxy71sdZRg-1; Tue, 14 Dec 2021 07:26:18 -0500 X-MC-Unique: BMYZV-O3O2KuLxy71sdZRg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 63D3B192CC40; Tue, 14 Dec 2021 12:26:16 +0000 (UTC) Received: from fuller.cnet (ovpn-112-3.gru2.redhat.com [10.97.112.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 38EEE5E26D; Tue, 14 Dec 2021 12:26:01 +0000 (UTC) Received: by fuller.cnet (Postfix, from userid 1000) id 506EA416D862; Tue, 14 Dec 2021 09:25:58 -0300 (-03) Date: Tue, 14 Dec 2021 09:25:58 -0300 From: Marcelo Tosatti To: Christoph Lameter 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 Message-ID: <20211214122558.GB57271@fuller.cnet> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: F2B7F1C0011 X-Stat-Signature: se7um55sqp5kifqyxdusac4gswat78rf Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=I7R8oHmt; spf=none (imf18.hostedemail.com: domain of mtosatti@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=mtosatti@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-HE-Tag: 1639484780-81648 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, Dec 14, 2021 at 12:42:58PM +0100, Christoph Lameter wrote: > 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. Can add a task isolation feature to do that. > 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. IIRC Frederic has been working on that. Thanks.