Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6331053rwl; Tue, 4 Apr 2023 10:57:00 -0700 (PDT) X-Google-Smtp-Source: AKy350YkNWM1R97qOL7etY6M2oZ67MGwXh9vE+LGW24/L++4gBNdygW9LETp+qUJcBy8PRtJKW8d X-Received: by 2002:a17:90a:e7c4:b0:240:1014:a1b3 with SMTP id kb4-20020a17090ae7c400b002401014a1b3mr3412138pjb.35.1680631019712; Tue, 04 Apr 2023 10:56:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680631019; cv=none; d=google.com; s=arc-20160816; b=wG/s4l7UzyPZ3+12Rl63QEhONjQjiwYiXtC3pD3dSKnaNSY+8iNSP5EUadofFTYsE7 c6aAe23kbkOEjNueyyo2nGlBM5zKLUWn/2d8OiLbjZ9LyUdczsMbxPmSOp5ydrqv3Loo RxZefIlPYySBEkmyYPJpp0XwKFr6KiRqHSo6kRnmOJShvKiB14SbNLiTgG8/2GNux2rk 9ae3HmH7Vi0xme50+EIZGq8F/1OY5lFDcJ5gUtaubeogFCImaie31Oj0CQvC+Z3Zn477 +7emZqqa3wyUa5UnP7m6KJFiuwZboTFURHzzwFGIqv/KFHaOvTcpcLDeVpw4Gsik9D/d Nxtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=V+vrMacm8K2usa1pALZTH2tABjT2c2JpiiWSHS5nyhs=; b=naM0mLkS556sKzZ+aEjS8Zbut1NCsnCj++U1guKxCRLLUHwexhlVcTA59FYiSL0k3C ByRhqlIoFl/txwc0/45ay6bKEQPutZnHc+GIBNQxAw9K9RsfgPlptW2RIvq9HdSyCKKy OJxs5hCWeP6ZE0pjCZuaxR4M1ymLqoA+es3j8i9uS07y6KkWtvtmJj/3o/KNu303kXIm c/iL9BMrPhl9Exy3T2T00HdjlzSXeWap+AwetzpsQIWhFbgIi+miiU/2YrqFdEMHi4RF SS1JaHEOzFXjygVNPRwFTOjHlyPHdEItJQyAr0XsYT2tG1lTpy7thPWBFqNU1/Vfd4YB cEnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Yjc7Byg1; 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 bs3-20020a632803000000b0051425f003e1si662608pgb.526.2023.04.04.10.56.48; Tue, 04 Apr 2023 10:56:59 -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=Yjc7Byg1; 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 S236048AbjDDRjK (ORCPT + 99 others); Tue, 4 Apr 2023 13:39:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231620AbjDDRjE (ORCPT ); Tue, 4 Apr 2023 13:39:04 -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 79E5D1992 for ; Tue, 4 Apr 2023 10:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680629886; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=V+vrMacm8K2usa1pALZTH2tABjT2c2JpiiWSHS5nyhs=; b=Yjc7Byg1Qq+BHDJTd9b9h+cjdMYUcs0EUzdVE+XYsOBdzixhd0VsCp7mskCcBLmW6E0Gz8 nuyeLXtJPWMSBkEBjThw9aUbiA1SvyCBvrK0AcT84H/IvFO9B7vMtrxT/JYK8UWvrQVKw5 7C+jNto96Yxk+2nDYy1g3RpnjMeasX4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-5-fj2Sq0dyP_q-27E4nNvvWQ-1; Tue, 04 Apr 2023 13:31:56 -0400 X-MC-Unique: fj2Sq0dyP_q-27E4nNvvWQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B5794100DEB2; Tue, 4 Apr 2023 17:31:53 +0000 (UTC) Received: from [10.22.32.153] (unknown [10.22.32.153]) by smtp.corp.redhat.com (Postfix) with ESMTP id 113912027061; Tue, 4 Apr 2023 17:31:51 +0000 (UTC) Message-ID: Date: Tue, 4 Apr 2023 13:31:51 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 2/6] sched/cpuset: Bring back cpuset_mutex Content-Language: en-US To: Juri Lelli , Peter Zijlstra , Ingo Molnar , Qais Yousef , Tejun Heo , Zefan Li , Johannes Weiner , Hao Luo Cc: 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 References: <20230329125558.255239-1-juri.lelli@redhat.com> <20230329125558.255239-3-juri.lelli@redhat.com> From: Waiman Long In-Reply-To: <20230329125558.255239-3-juri.lelli@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 3/29/23 08:55, Juri Lelli wrote: > Turns out percpu_cpuset_rwsem - commit 1243dc518c9d ("cgroup/cpuset: > Convert cpuset_mutex to percpu_rwsem") - wasn't such a brilliant idea, > as it has been reported to cause slowdowns in workloads that need to > change cpuset configuration frequently and it is also not implementing > priority inheritance (which causes troubles with realtime workloads). > > Convert percpu_cpuset_rwsem back to regular cpuset_mutex. Also grab it > only for SCHED_DEADLINE tasks (other policies don't care about stable > cpusets anyway). > > Signed-off-by: Juri Lelli I am thinking that maybe we should switch the percpu rwsem to a regular rwsem as there are cases where a read lock is sufficient. This will also avoid the potential PREEMPT_RT problem with PI and reduce the time it needs to take a write lock. Cheers, Longman