Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp676779rwr; Wed, 26 Apr 2023 05:06:38 -0700 (PDT) X-Google-Smtp-Source: AKy350ZQhsRZR7pyj64S/tO52PePO+xAfGlbtsz+kB5ChxuJfu6zGrFNCK6GaCXSA59pf/wycCLa X-Received: by 2002:a05:6a00:1882:b0:63b:59a7:eafa with SMTP id x2-20020a056a00188200b0063b59a7eafamr30322148pfh.25.1682510798034; Wed, 26 Apr 2023 05:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682510798; cv=none; d=google.com; s=arc-20160816; b=OJjcufeAQ1zhYAmJSSEiQ3Q+uqxAJEytJ3reEv53mpY8Yssp8ljNt5ibHTUxCNDGTn 8NbiBQhyaRQgGJt1SiWVTw5mvAzaSn90Y7hIwsZj/JFUxCi02c3FxbdRqGctA6X597O4 3NkE5WZD9vB5veSD+OIzsYpawZvZxiey3E/KOsPTIRcVcEGXLwkaTjXYHtIVuNmi3iXJ FXmJh9kxlhSq3z205cqUG1QEDKbrrSbSbhyahtEOG9cHENSvXDHSsQfU7pTmVqs8pO8f RUjnm1FF+UsMjyx1dfn/A7/ctqsMtbvS2ZlHGW5W9okJI+89QifMlxKWgHO8o1jjdgHc 4Qpg== 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=7Ai5lSfKqZn05lKJiIckUsbQ62jwMUlauJMlWabJYbM=; b=CDUEeECaWAc16fWXBpSY6lsZQAJW1nzNCbVDMNN6cy6rgWDoTylU2TPV61JeNbEYVx wie2zTQwvsawYmoWZGBybwFClVJD6NRpAKEr7kZgcQDYjOZZ+4zlmDLQUFx23iH7ufWw 4LzG/JoSq6Ugb46KDxHtOBKXc6+4G+bCo0BWTPHG9N5LP5ro9G9aEjN5mptHBfYJWVqM cgrJrq9AlZFhMs23Ug1J6bimVz2zuqI3THZVw38/EWneeC94HRalL+e2aFiScX08qrC4 d5gAJq8TNocgVv+xEMD6KqOKQN8BPUDKHTCuybGF0KMytUhYEFPKkFRrPvTY8RxUkmHt ltTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AIQZJyyR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d19-20020a656213000000b0051b70ce7dd2si15333284pgv.80.2023.04.26.05.06.16; Wed, 26 Apr 2023 05:06:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AIQZJyyR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240720AbjDZMAO (ORCPT + 99 others); Wed, 26 Apr 2023 08:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240714AbjDZMAL (ORCPT ); Wed, 26 Apr 2023 08:00:11 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E48E15B93 for ; Wed, 26 Apr 2023 04:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682510341; 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=7Ai5lSfKqZn05lKJiIckUsbQ62jwMUlauJMlWabJYbM=; b=AIQZJyyRkmITgeCpvcovYnqiSu5KY6qH3NMQZGLJJbBSs6E4OuMjTjxMZ+Ok89o7a7l+02 rAdvSmd7/hHnKyJx2VqovA5LHQvhr9w1WYhnGT12/X9LDwScwqQfJgU/6dPCuQ6mUnUHP7 j3xWveedecuZ57XW3+InVxjnlkhUs9o= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-343-VwLUoidmMvW19o1fhNSocQ-1; Wed, 26 Apr 2023 07:58:59 -0400 X-MC-Unique: VwLUoidmMvW19o1fhNSocQ-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-3f21e35dc08so15777785e9.2 for ; Wed, 26 Apr 2023 04:58:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682510339; x=1685102339; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7Ai5lSfKqZn05lKJiIckUsbQ62jwMUlauJMlWabJYbM=; b=Q/EmV91KeSUEr2Z/VhEG/zYWH8CRdWtOuHl5exbcPh+/2t5te8KjpaagISqGCXdMvj CuViUb+pkEWrLygIy8urHekuf4YpDCGFRe62i5SKemO8KZvKgDjdqDKcVYX7pM0Tw0Z0 ua8rMKAhABavsavfAaZOk18HOsojjiaTAcZcvBGRDFr7ImB81ddrdqXPW+U/7WKDEqy+ YSJT4LEZDTBFoni22oLQRcrjQlWY3fKXPxMOBV4gmesTSViuUrFxzWYOafKSBngB2ihr +xxYqpcyUhYgvbATLuRQlALyf756VH7Vc0gVNXuYpj25TOivtnPkO3OMsBOe9X4XhzXM ykmA== X-Gm-Message-State: AAQBX9ejZPgEdGJZdK3phPUxu0WuCXEt3vkKMvBrVO4RVHVMfZ0+bsVE SlBejhJMRO4/syQn3B+3g9Gb8geKuE7BQktJNqK4Npo/ixx+JeS3wkE63lzjLPGV2b+8eV2kppL O86QmppFDTwsFnIu+WnsjhCDh X-Received: by 2002:a7b:c7cd:0:b0:3f2:549b:3ede with SMTP id z13-20020a7bc7cd000000b003f2549b3edemr5205630wmk.5.1682510338784; Wed, 26 Apr 2023 04:58:58 -0700 (PDT) X-Received: by 2002:a7b:c7cd:0:b0:3f2:549b:3ede with SMTP id z13-20020a7bc7cd000000b003f2549b3edemr5205621wmk.5.1682510338423; Wed, 26 Apr 2023 04:58:58 -0700 (PDT) Received: from localhost.localdomain ([176.206.13.250]) by smtp.gmail.com with ESMTPSA id jb12-20020a05600c54ec00b003f17003e26esm21171598wmb.15.2023.04.26.04.58.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 04:58:58 -0700 (PDT) Date: Wed, 26 Apr 2023 13:58:55 +0200 From: Juri Lelli To: Qais Yousef Cc: Peter Zijlstra , Ingo Molnar , Waiman Long , Tejun Heo , Zefan Li , Johannes Weiner , Hao Luo , Dietmar Eggemann , Steven Rostedt , linux-kernel@vger.kernel.org, luca.abeni@santannapisa.it, claudio@evidence.eu.com, tommaso.cucinotta@santannapisa.it, bristot@redhat.com, mathieu.poirier@linaro.org, cgroups@vger.kernel.org, Vincent Guittot , Wei Wang , Rick Yiu , Quentin Perret , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sudeep Holla Subject: Re: [PATCH 6/6] cgroup/cpuset: Iterate only if DEADLINE tasks are present Message-ID: References: <20230329125558.255239-1-juri.lelli@redhat.com> <20230329125558.255239-7-juri.lelli@redhat.com> <20230404200611.smho7hd4sc2qwrgf@airbuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230404200611.smho7hd4sc2qwrgf@airbuntu> X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/04/23 21:06, Qais Yousef wrote: > On 03/29/23 14:55, Juri Lelli wrote: > > update_tasks_root_domain currently iterates over all tasks even if no > > DEADLINE task is present on the cpuset/root domain for which bandwidth > > accounting is being rebuilt. This has been reported to introduce 10+ ms > > delays on suspend-resume operations. > > > > Skip the costly iteration for cpusets that don't contain DEADLINE tasks. > > > > Reported-by: Qais Yousef > > Link: https://lore.kernel.org/lkml/20230206221428.2125324-1-qyousef@layalina.io/ > > Signed-off-by: Juri Lelli > > --- > > Wouldn't this be better placed as patch 4? The two fixes from Dietmar look > orthogonal to me to the accounting problem. But it seems the whole lot needs to > go to stable anyway, so good to keep them together. Should Dietmar fixes be at > the end instead of this? That should be an easy fixing indeed. Dietmar is working on refreshig his bits. Thanks for your reviews and tests Qais! Best, Juri