Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1378466pxb; Fri, 10 Sep 2021 04:45:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyWr6h0e1LjjcEOvt2JqUrk6lEt8wc1pycKZ3NudsIeDJsTj/IcQMtGZaaSB5rtQl68om/ X-Received: by 2002:a05:6402:48e:: with SMTP id k14mr8385059edv.212.1631274337223; Fri, 10 Sep 2021 04:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631274337; cv=none; d=google.com; s=arc-20160816; b=uYYwa3BpN/WghyA6b3WAQeWDNu9ppzGV5kuYbImdWcYhSw85w5vplhSMPORV9uAvac JL3kwqqshGxQPopF+rrB7Cg7tuI0CN3WcU1Qg5AIfDLJiqHbK3QasGzwMPCAKKkYjGXh RUsHrGIVYWn6XmxMzQaUpBH9/WEbXNFFXPLU/EOMK/Zt58sd188JSCx1BUhh7A8+FQQE 9i5MXhgXParzbUFD9OI65vdsEierm57x4YsO7OGPRwJjAU45Gm3tpdDCHoHGS/VADLJr +VoK00NcC9bPCot87ks73HXuLfumv2cr9/9sk3vzjQxn8M9QZh9Jdj6L7tApgleHwCV9 z9lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VMVUgRcV4Z/grB1WjttIzCGNMGmvXlycMzssrqJ854M=; b=v3ZMwK2oBSgAI+1v5G2ASeDyefVGl0lIJ0TcRPzBKgegQNnSe4EDsZEMwfqu8RyzMy xjU2sIggFgW0KQbk+SQJG7HZoIdCyiOpr49MZL+ysNCSCyjFY2KCPiQ+tXs2Nh/4Hksu mG9SndtOtpmw735SGbaNNxuKH5GQ4hUOV41f0ecOdTrLjJtC86nmfVE6qCFxY8RwNk/r fpMys1qZAhuT2IHRt/3wG7RHUZU/gs0Ogs/U/zTgt1yOnOAv3P10oInGkE+mKkK5/cDC lmWCZYBDgRR31EuUQIErFEtqljPBcPilbiCBnKnJhVqY/rXXkskI0Lx68d9mGE3eYgBY y//w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d9KWVr7t; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j11si4968130ejj.109.2021.09.10.04.45.12; Fri, 10 Sep 2021 04:45:37 -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=@linaro.org header.s=google header.b=d9KWVr7t; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232825AbhIJLpD (ORCPT + 99 others); Fri, 10 Sep 2021 07:45:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232613AbhIJLpC (ORCPT ); Fri, 10 Sep 2021 07:45:02 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 762A7C061574 for ; Fri, 10 Sep 2021 04:43:51 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id s16so3268669ybe.0 for ; Fri, 10 Sep 2021 04:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=VMVUgRcV4Z/grB1WjttIzCGNMGmvXlycMzssrqJ854M=; b=d9KWVr7tUe4VoXcmJRV18Pg+IK5FyDz7YRkf4coCovdmTVLkNgif7dfu2ulEskrNkb EUczm+g+4Jg7LoCrc3PUap83+rQI/OyqMahJxX+k/R/5iGgnJK/dCWPkMVXPkomu8mhk QW07EEYDKM66HvX4lT+wWLf8Nd1peWPEb1aWh5pDKbI2VeqVLK75fvaCP1wCe2E/x+YP NUJeQsC4En7x3ehuW23Bi3lZMqWFwaMBvKU5yBmnAXTPrS9BIRi6t9xnTO3Vf+06GVh2 e4kqTEb1FkJdZEm3xu1ej0SHh4L9+hZLlBecKIkfYoFUB2dVFFKYxYgyFxotEN3baJay WsiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=VMVUgRcV4Z/grB1WjttIzCGNMGmvXlycMzssrqJ854M=; b=7TQPzTvl5ZBPRY8aXCThGDQdpy+aFP2HQBkYJZ2gn2TUTi9Y6GcZjdktRCudcbXMEZ loqFxEGqsL9Dvln6nhb0hIx3SfAik9mALvV2nR2D3tI3phLm/EMHBFRLIuuc0FvF3ecm t9wrxHl99/F4KXkHvgR15031UclFxNimeyvHWd2SDVFOKZ6YoQIlV27pv26V/lfKC8uY r596vwX+pjnWmD+rdsIkoWRGx3LDBTCf0WHrVSAvNFvEvHcUQX5ZZ6VGllTnmyf+S3pR QDpmGQ/DunPSOawwyNstNF28fOzLORcJNdRt0ucg6vFsOpzxlMNBMXOvwfpuEH/ARYtA XYVA== X-Gm-Message-State: AOAM530M7VVYGHY06L89NAszFGgH7xNGI3frJ+SKfzEnKdAwnA44jW6B k1QTRsv+XPJmtCvWqrbmud+89H4793eqO2FOU1kIWg== X-Received: by 2002:a5b:f03:: with SMTP id x3mr9308603ybr.546.1631274230684; Fri, 10 Sep 2021 04:43:50 -0700 (PDT) MIME-Version: 1.0 References: <20210819175034.4577-1-mkoutny@suse.com> <20210819175034.4577-6-mkoutny@suse.com> <20210910113552.GA30004@blackbody.suse.cz> In-Reply-To: <20210910113552.GA30004@blackbody.suse.cz> From: Vincent Guittot Date: Fri, 10 Sep 2021 13:43:39 +0200 Message-ID: Subject: Re: [RFC PATCH v2 5/5] sched/fair: Simplify ancestor enqueue loops To: =?UTF-8?Q?Michal_Koutn=C3=BD?= 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 10 Sept 2021 at 13:35, Michal Koutn=C3=BD wrote: > > 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(-) > ? Not if it make the code less readable and I prefer the current implementati= on > > (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