Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1111741pxb; Thu, 4 Mar 2021 03:42:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhnpeh+ETrea5YeZXtuE67gJ8wC90QlW9wJXA/Cs6rrL8GUtuPkRA5t3UHaoXu6zt5NGOD X-Received: by 2002:a17:906:c9c2:: with SMTP id hk2mr3823050ejb.244.1614858122090; Thu, 04 Mar 2021 03:42:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614858122; cv=none; d=google.com; s=arc-20160816; b=LzevF0n3/1Z/rPnCvDVQ4+9vCGLdzKUG0Emblnib9O7n/P0gmbWTash3DkiwE94gWD pq4GjiXMxrwO5AFmsu/hCYl9vGtzvfrAQgxXsUKevOWBpiHak17lvXmJkFFGiK/3V8G/ PH51TMXVOUKzHbBMrm9/4kJbYOJ1kKAsymLEhWviGOFnQamnrkrZDRuSGK2EzWsiwsSl nYrduxUruUgg2QICT07Dz80IPBp3goSqxFq4sDkwA14rp+t7idJLW7l+y3yhCa4mADYE XVnmE+ccC/KtKGf0sgn2vUR20tPn4wZgPn76GonPMWNnkYrZs487BNEOyy62mCBIr8cU PUiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=e9mU42REF7rducrlu85KQrpNto0juZXUGEZjTSHm4X8=; b=u+YssNg/TJLdXcgiH3tl0UfCwKwH/zCKHSJ82gNOvDdwhXd8YuKqsGY5UgNu9TghPR XdPRRFnFkQxm12uJxmPAIeDjPhsChIr2uLL0YWRElQSHNJ59o4pGuzKHNMla9yXMJCKQ DrxpdWRsB//mpWnxo1LmNZJ1G9pUIiOV8k480sOSm+36dzNW/ERB8EI1p+dlflsXxlvJ Eac+lqWsBtL/Wb3S7Ex/AOXf7yQ93iLnTqaPag0du9jL46eYieY6QZ4M1/+IN6mgQ84j pgNaKxPWXAlfSdaqmWB1TBHCKMC/DAuvFb3+jSqjndloVH7B8Nd+yhyQp6ygfBOPnOzA MKIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=cvPEwcHw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r22si6612185eds.172.2021.03.04.03.41.39; Thu, 04 Mar 2021 03:42:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=cvPEwcHw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1835913AbhCCSFH (ORCPT + 99 others); Wed, 3 Mar 2021 13:05:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383671AbhCCPdI (ORCPT ); Wed, 3 Mar 2021 10:33:08 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6855C061764 for ; Wed, 3 Mar 2021 07:32:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=e9mU42REF7rducrlu85KQrpNto0juZXUGEZjTSHm4X8=; b=cvPEwcHwgEcagrnePc4uqYaFss sxMU7RumdtYt4QAF1y+7KcHSsLAPRv5WJcdIqBeVXMITdY4zpTvD4NLY9S6PCz9WK4Cn8t6Y3Ejyw 5h8R+o52ZoMwFJni6nCapje4arlIwOqh6e96nLKLpwzmTrNwkuTfn+y4uqgv7HBuFUsXYGif/g3aB TkmrqZeSq3W7x13VdwkGQ0OpMvpNWx+e5SUK5a4FAT4vnX0Gq3HT89Kc+B3wQXsWZcBC7Blbv4dsw eTTicS7AVz91FgarqJXvQy/nrJzv+JOgwFdZZeTdvAALFJ2x32tN39iMS5YrBannlPp9OqFPyUHSe HMr7i5KA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lHTU5-003DyC-GI; Wed, 03 Mar 2021 15:32:22 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 04FF830018A; Wed, 3 Mar 2021 16:32:18 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B5C5F20C8A4A6; Wed, 3 Mar 2021 16:32:18 +0100 (CET) Date: Wed, 3 Mar 2021 16:32:18 +0100 From: Peter Zijlstra To: Johannes Weiner Cc: Chengming Zhou , mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, linux-kernel@vger.kernel.org, songmuchun@bytedance.com Subject: Re: [PATCH v2 0/4] psi: Add PSI_CPU_FULL state and some code optimization Message-ID: References: <20210303034659.91735-1-zhouchengming@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 03, 2021 at 09:59:11AM -0500, Johannes Weiner wrote: > On Wed, Mar 03, 2021 at 11:46:55AM +0800, Chengming Zhou wrote: > > This patch series is RESEND of the previous patches on psi subsystem. A few > > weeks passed since the last review, so I put them together and resend for > > more convenient review and merge. > > > > Patch 1 add PSI_CPU_FULL state means all non-idle tasks in a cgroup are delayed > > on the CPU resource which used by others outside of the cgroup or throttled > > by the cgroup cpu.max configuration. > > > > Patch 2 use ONCPU state and the current in_memstall flag to detect reclaim, > > remove the hook in timer tick to make code more concise and maintainable. > > And patch 3 adds unlikely() annotations to move the pressure state branches > > out of line to eliminate undesirable jumps during wakeup and sleeps. > > > > Patch 4 optimize the voluntary sleep switch by remove one call of > > psi_group_change() for every common cgroup ancestor of the two tasks. > > > > Chengming Zhou (3): > > psi: Add PSI_CPU_FULL state > > psi: Use ONCPU state tracking machinery to detect reclaim > > psi: Optimize task switch inside shared cgroups > > > > Johannes Weiner (1): > > psi: pressure states are unlikely > > Peter, would you mind routing these through the sched tree for 5.13? Yes, I can do that. Thanks!