Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9305618ybi; Wed, 24 Jul 2019 01:46:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9STUKNQqmyf8ZCTZxq6xAtVo0RuinsIqQYDZtha4cYQyydVZPF9nAT96rPc1l5bWfQK+V X-Received: by 2002:aa7:85d8:: with SMTP id z24mr1969931pfn.218.1563957999435; Wed, 24 Jul 2019 01:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563957999; cv=none; d=google.com; s=arc-20160816; b=BGt5+lj9qwG1AnAOmeijBmsdMbMn380PlH9qhkCp83b2dlaJJRTAHRrZbQWuXX9UaH B9kkheakrkq0ZBZRILXxq1jmgc0W+KL8WWHkKlqBbdSwZCharuknTB/CMV0/oucEWnk3 Ut1lwFe3SQZpmR+Rex3ibbJpNE/QytJexTaK8f6CffS6I1o7vpGX5cUUYjJZm3dcF9cR YWkKC8egnjt4mvyj7a5aMJhBGaQ9wmPfFZmC8RggGIa5gumm09nCdDDCwws3VVZ6JG2C 7fJVkzuUxtbIAfgwqk2ovDXvrGWacykAC6i5J2K9c0rHfawHERS1BsUDbD8O1nmYm3R2 QAgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=hVIR/HI2n3P/jCETB09wxGVr3Bc+iYET2E4E56yR+gQ=; b=u1w4uvBrgraAltNezWMiLJ0dmWJUOQ+lGOSOqrgi6hJqsNT97KC50rFU4sV/qA2zMZ RMsp7dKpKMxrfRIFA+SY+DzJmFFLiDztb9bjGN8T49LAQKt38kcjJRYmbISnStpQ1Od2 QvF3RTHbam06rC9+bZ3U+bOR05GFxD9FSoxgr6VDVI7yQ3u3Y0SazVj1ONeDnp//qE8m gwnAFmo6kig4j1WHmi91IIiWRQrxv+wUQJBil4f8C60Ej6TD3rqvp0MkTx1utPdNyuTV qtkWmWhYAQsilRhLsUYWNhMmllFAUez76Tm4vV3iscv3aYS92xJEvZhHWvsHr6mhcpNx Kn3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si13774858pgf.457.2019.07.24.01.46.23; Wed, 24 Jul 2019 01:46:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726300AbfGXIpu (ORCPT + 99 others); Wed, 24 Jul 2019 04:45:50 -0400 Received: from foss.arm.com ([217.140.110.172]:37162 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbfGXIpt (ORCPT ); Wed, 24 Jul 2019 04:45:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D2ACA337; Wed, 24 Jul 2019 01:45:48 -0700 (PDT) Received: from [0.0.0.0] (e107985-lin.cambridge.arm.com [10.1.194.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 31ACE3F694; Wed, 24 Jul 2019 01:45:45 -0700 (PDT) Subject: Re: [PATCH v9 0/8] sched/deadline: fix cpusets bandwidth accounting To: Juri Lelli , peterz@infradead.org, mingo@redhat.com, rostedt@goodmis.org, tj@kernel.org Cc: linux-kernel@vger.kernel.org, luca.abeni@santannapisa.it, claudio@evidence.eu.com, tommaso.cucinotta@santannapisa.it, bristot@redhat.com, mathieu.poirier@linaro.org, lizefan@huawei.com, longman@redhat.com, cgroups@vger.kernel.org References: <20190719140000.31694-1-juri.lelli@redhat.com> From: Dietmar Eggemann Message-ID: Date: Wed, 24 Jul 2019 10:45:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190719140000.31694-1-juri.lelli@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/19/19 3:59 PM, Juri Lelli wrote: > Hi, > > v9 of a series of patches, originally authored by Mathieu, with the intent > of fixing a long standing issue of SCHED_DEADLINE bandwidth accounting. > As originally reported by Steve [1], when hotplug and/or (certain) > cpuset reconfiguration operations take place, DEADLINE bandwidth > accounting information is lost since root domains are destroyed and > recreated. > > Mathieu's approach is based on restoring bandwidth accounting info on > the newly created root domains by iterating through the (DEADLINE) tasks > belonging to the configured cpuset(s). > > Apart from the usual rebase on top of cgroup/for-next, this version > > - make cpuset_{can,cancel}_attach grab cpuset_rwsem for write (5/8 - Peter) > - moves v8 8/8 to 7/8 for bisectability (Peter) > - adds comment in changelog regarding normalize_rt_tasks() (8/8 - Peter) > > Set also available at > > https://github.com/jlelli/linux.git fixes/deadline/root-domain-accounting-v9 Tested-by: Dietmar Eggemann Test description: Juno-r0 (Arm64 big/Little [L b b L L L]) with 6 DL tasks (12000/100000/100000). Rt-app runs DL workload for 10min. After rt-app launched, start CPU hotplug stress test (random CPU hp in/out except for CPU1 (CPU orig capacity 1024 (big)) during the entire rt-app run. Tests ran with 1 and 2 (exclusive cpusets ([0,3-5], [1-2])) root domains.