Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1374611pxb; Fri, 10 Sep 2021 04:39:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+wEU38LnB7BT6j4EzfQHvsyv2pLhj3y6ynybu/ve5ASCYJoeodyr7Li+EXpwr9o8z5w1C X-Received: by 2002:a17:906:e50:: with SMTP id q16mr8731498eji.370.1631273985124; Fri, 10 Sep 2021 04:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631273985; cv=none; d=google.com; s=arc-20160816; b=HopaDcTh66ZUmLVt9D3eI6oH2zLSRWOlNdgIBoip+6Jz8rj9gj+/sfmfC1H3hN2Fa1 cHSED68jKVcCOtLC21dDQVGWIhVXG98o+tvDp6K47WkrM6qVne1oBI6OUWkOzTCNtq1y J7cym4m1NujSiyDLIBuRj7G4v10Re9Y0VuKQetJ7O7v/etlFw1h+rhbE0hKZp0Ch4/YC IBeIR0zm16KvqM/RVdDC0tEe7vvdVokyxeO/tus5COuFsRUqBNG0nYb+8/hkjntgrB5G r1qD+2e+ykjOlFhpWbQBfMlySI5CMWjkw+ylcmsXvJe5Awmvk6pdBWsANhd9m3T8Vz/o 6pcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=L2U6FvYLow74Hanu1/xbaQi9/pD51ihI7LomCd82Koc=; b=euz4qSoxC6HAO5J5VZsKT46xgCsFHWSwHQTfjVRCXL6SreQ94U9c8pjJ4nMOQlduxN fRi2rszuc4lSNoshVPS9hqw3NRSxB6lzvWWSHn94fyZyCWHhuyI905WIKwf5dVQkvJUF I94g3ovoIr7pR80kvvaChiWdJK2oT/S5SZO4LPuAYVW4jKOANTbk2L1mNmd+UZHwOHgV DivDcyb3hFemIn30NYJYljIuSp2gqTNb9x8bl1zKcw8SfX3rRJxuEq5joohvm+Jn20Yu B2+dvf7jm1dTRbja9ISNwpjdbRwlay+Iv/wvfcjwkMfYn4/Pa9bEmoikl+fdD/LnHUpi pNqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=jituyff6; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si4931202edr.525.2021.09.10.04.39.20; Fri, 10 Sep 2021 04:39:45 -0700 (PDT) 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=@suse.com header.s=susede1 header.b=jituyff6; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232854AbhIJLhF (ORCPT + 99 others); Fri, 10 Sep 2021 07:37:05 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:35674 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232613AbhIJLhF (ORCPT ); Fri, 10 Sep 2021 07:37:05 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A9B6020061; Fri, 10 Sep 2021 11:35:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1631273753; h=from:from:reply-to: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=L2U6FvYLow74Hanu1/xbaQi9/pD51ihI7LomCd82Koc=; b=jituyff69IGj8vx3My6wYSDyaixrFPy4oqB+l/3hkoQgrLJN7YEuVZ4qvfyJCpBNTI9LUR t43nmEW2fR10hc31kk5qely8svMvJ8Yyu3lIOdmOteIf7QKL+hYBkrBVufoSKmYirfal9Y l16A5d189WcFIWmYirnmXGRXIg3clPY= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8293513D34; Fri, 10 Sep 2021 11:35:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id h2VRHxlDO2EcNQAAMHmgww (envelope-from ); Fri, 10 Sep 2021 11:35:53 +0000 Date: Fri, 10 Sep 2021 13:35:52 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Vincent Guittot Cc: linux-kernel , Phil Auld , Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Odin Ugedal , Rik van Riel , Giovanni Gherdovich Subject: Re: [RFC PATCH v2 5/5] sched/fair: Simplify ancestor enqueue loops Message-ID: <20210910113552.GA30004@blackbody.suse.cz> References: <20210819175034.4577-1-mkoutny@suse.com> <20210819175034.4577-6-mkoutny@suse.com> 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 09, 2021 at 04:04:02PM +0200, Vincent Guittot wrote: > These multiple break loops have been done to make unthrottle_cfs_rq, > throttle_cfs_rq, enqueue_task_fair and dequeue_task_fair to follow the > same pattern Ah, I watched only the unthrottle_cfs_rq and enqueue_task_fair pair and missed the consistency with the other two. > and I don't see any good reason to break this Isn't this a good reason > 21 insertions(+), 36 deletions(-) ? (The stats are with a grain of salt, I'd need to recheck how these stats would hold if throttle_cfs_rq, dequeue_task_fair would be modified too + they look a bit better because of the loop from 1/5.) Michal