Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp93106lqp; Tue, 21 May 2024 20:16:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUowoDdevIm6O/+LN8XcdgbW2NIbXyRDRubwLeHzPEDiDnqQ21eNBl+MC83yb5BmD+Enj0HkciZmX7hoVgRTGOI02W2DVxxGmsn24Jlqg== X-Google-Smtp-Source: AGHT+IHWC4os8j3Civz1TGWxXNn/huuun78d3bAHQRUOERT011F9ZkG1wAkhm7OYxV8rN7/ZCGTS X-Received: by 2002:a17:903:1209:b0:1ec:c6bd:4157 with SMTP id d9443c01a7336-1f31c9e18e7mr8642365ad.59.1716347771129; Tue, 21 May 2024 20:16:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716347771; cv=pass; d=google.com; s=arc-20160816; b=kZK9pKxtRSB5wI6AbqM23hphHl9TcCjiuhbJn5xcCQdEHA2G41PtvaLBDHmkyCYYg8 gNDPa/XqkNr9raoD4+E5g/7UOrVxGrASUxs7NQZwbK6Qs53PXggaQVo8Vplztha6oeqr OB9R8/sIvWqBUwrtHj2Kt//fvs8FdXBbdxIEM8KreAD3NOKuFS3DCtPZ3VdUalJW/RRP 6jXQiJWbPXfXw3+y95fUtgFPEuHVxnjNaxSbKq+8w6Pbe3XQPQbGzOFBBh5mWBRKaHIw AJDIfCosGAujBKL7wZAdXwO/sMJg8OY8Yhm9Kdw0TZNYV+bBy4iI4L4HoFBrYP4pyKit 5sUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=RORbHVm4uzOuv7/vmnpj23QmezAyspYuOIGtUdn1w/Q=; fh=1+7r10/Az3CaHSYay03RUWXHMqFYibaETiZXPvCa0jc=; b=LwXdFnGpIvT19Bvm3d+oj53RbQLn9Ml8TkbA0G7Psw7m+PQiT+1eama6I8/u3eq/Pk VzPAvDAy7Tew7Pw5OzlXGWHZYQA6M8PQrEGew1BVWCgAX5JrOxaU0OsIUmGofYoGJ+CE p8x/z5rKiWpPTERyQ4dQqLklR30TFgZ/NQh/1gNoP0tXiIHaHZGHFhumajTe4JeB+nER ncwVbWo4r25hu/F3avPUaBaGjcttQc1DA32EjfgmHmIYp+IMU1cJFL7T3CixRxsr/9Dt E+e13marQDGXG3rK3bHF/K9bYM1t3zWSheD89nLeuWs7tvFbppx1H5nAnN1nzwmD70B+ rHBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-185710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f2f98859a1si55668795ad.270.2024.05.21.20.16.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:16:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-185710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C68EDB2211B for ; Wed, 22 May 2024 03:16:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69E2835894; Wed, 22 May 2024 03:16:01 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95DD933F9 for ; Wed, 22 May 2024 03:15:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716347760; cv=none; b=WAazrb0W8eTNyzsElGEciUsJe6iuYgzYkwJmSPwr8GC7nt2r6/XPEEUTltsSZcLlm2i8flez/fuXBi7bwjxMZ5AjXpmbnz8SK7vQc/5LdOMom08XgtxhNOpnuP9rscAPGb+8boK/Rig461R0QpJWs9pdlrevMo2+tzFR076jZSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716347760; c=relaxed/simple; bh=a9dlj3+o6HToo+8tpB6GNpm4eF+qX0LQAyNolfb61Fg=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Dw1VXawhH7zTHyxfdpJClB6w14MPE+rgZSV8xFfjLFT+NqFk/6KzozOS2ssQEIVqe0wn/6RvHAg5Snrm9y89LRyz2i3eOQEzg5ENodIqJRXDCrol5qsd1Dd/C7g2wWgi1jA2vU0FGN8Iu/+JP6S4sO9ow5eWvWSOjM60HMtaMzo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4VkbvZ1jsZz2Cj39; Wed, 22 May 2024 11:12:26 +0800 (CST) Received: from kwepemf500005.china.huawei.com (unknown [7.202.181.243]) by mail.maildlp.com (Postfix) with ESMTPS id E3D0D1A016C; Wed, 22 May 2024 11:15:54 +0800 (CST) Received: from huawei.com (10.67.174.161) by kwepemf500005.china.huawei.com (7.202.181.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 22 May 2024 11:15:54 +0800 From: Cheng Yu To: , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH 0/2] cgroup cpu: set burst to zero when cfs bandwidth is Date: Wed, 22 May 2024 11:10:05 +0800 Message-ID: <20240522031007.643498-1-serein.chengyu@huawei.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemf500005.china.huawei.com (7.202.181.243) In the cgroup cpu subsystem, when we remove the restriction on cfs bandwidth, the burst feature is also turned off. At that time, we expect that the value of burst is zero. Patch 1 fixes it in cgroup v1 by Zhao Wenhui and patch 2 fixes it in cgroup v2. Cheng Yu (1): sched/fair: set burst to zero when set max to cpu.max Zhao Wenhui (1): sched/fair: limit burst to zero when cfs bandwidth is turned off kernel/sched/core.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) -- 2.25.1