Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3275561ybi; Fri, 19 Jul 2019 00:25:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtn2Od9KZaBA68Du0jcZIviB7tbQY7FR0sL2u8C7vk4dhhDRlsAihfgKc6I+WBcWbxSoTh X-Received: by 2002:a63:c508:: with SMTP id f8mr53526457pgd.48.1563521110221; Fri, 19 Jul 2019 00:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563521110; cv=none; d=google.com; s=arc-20160816; b=CLFFIHEbk5hDGX+TazY+NjY/N1hLvwSoYRdcTvUXCbvQM2vz4x3L8zcfMVM92rGaNh kAJtpG0KaOr+HEqNa5oQ0RhkGNfZdeitFcCmArXuNyyBmOiaRsf9b6NvyB7SbaJ5ZL4u 52hTIqbW0M64G2NWD/SEoSx55A2M1OWM2IaiNWlm5o6IXuTEgSeWcCA5WvKHAbNrkzUu pCNdiTDzLp6EwmW8kNybge9zHu0Qjo7LUvV2GpOkMmZaoL7gG/v3GbZwFeI98Cik0ga2 XnIv/TPfdLyQpqzw7R/fxXjAsQAVZgKy7zTQYtlRHyzlYBZXVJIfSiGYqv7FNrQ2Yswr 7dtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=87OIeSK1sKiVNRTyJCB3x8F8M7//ifJ6aAgQH0sNrRw=; b=lXy93AIO+Qup9N/uloO5/p900ZCAxxLEIJ1Q5VmCJxFOtevHI7mXKSknRltyWesvK/ ICykVWYkJBq9V6sbuLc2lC5R4CaZJVdE+KwAwcdVNfb6P8g9hYEGr74mI1yd9088o9tT 1XXCEexmj+1gOHQr52I24MXyjdKX+GEJsYflvamhBhmvNSF5AwUHpwvjwFEi9MJn6ipj onm06S6jRtOf5n/MjK2MPXPTVWnBe7VdYy7cSPFG358mSzWCg5NsXDa53LppentWUlJC 4d004Qw/ym4UAhLxbGAKXMgyfLL85aAyU6MqFk1iRxVSxHdRcGn6arBOizX1QLiIPkxa hvEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=qECwcshm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y92si283784plb.209.2019.07.19.00.24.54; Fri, 19 Jul 2019 00:25:10 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=qECwcshm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726600AbfGSHYD (ORCPT + 99 others); Fri, 19 Jul 2019 03:24:03 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:46712 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbfGSHYD (ORCPT ); Fri, 19 Jul 2019 03:24:03 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6J7Itmf100116; Fri, 19 Jul 2019 07:23:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=87OIeSK1sKiVNRTyJCB3x8F8M7//ifJ6aAgQH0sNrRw=; b=qECwcshmJd9jAAhPFEhwo5ilQFHYWfpV7v3ax5bpkxbUbTNoYV+NeDep95NkU74EHbbN 19tVZu1hoGfkG2lqWtK+ukTdjidIpRRp5+c5Z8patXqVtEV2qb1v8Vqy3MqtsvcIcySz 1zgyTk+kXOmsQqMo5wUZURdYO2LEVnJNYI0MbILovqIVtKDimInA16kXQ3pivoWThD6b 6GKkAomZ9yNwfz9+/zjf+ljaDLp/vkf+Y2kfZKFk7RIWqqg4S9qN1oBx7W8uYSM4lRmq fWrUQXu6XDYMgOYBN5THyiomwZDXx/ovGWT+AiWhLpsrmXnb5TZWwvQ36bkvhFmIP/3B dw== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 2tq78q4wdg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jul 2019 07:23:34 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6J7MZns049621; Fri, 19 Jul 2019 07:23:33 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 2tt77j5mnk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jul 2019 07:23:33 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x6J7NQYH009729; Fri, 19 Jul 2019 07:23:31 GMT Received: from Subhras-MacBook-Pro.local (/103.217.243.4) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 19 Jul 2019 07:23:26 +0000 Subject: Re: [RFC PATCH 3/3] sched: introduce tunables to control soft affinity To: Srikar Dronamraju Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, tglx@linutronix.de, prakash.sangappa@oracle.com, dhaval.giani@oracle.com, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, viresh.kumar@linaro.org, tim.c.chen@linux.intel.com, mgorman@techsingularity.net References: <20190626224718.21973-1-subhra.mazumdar@oracle.com> <20190626224718.21973-4-subhra.mazumdar@oracle.com> <20190718100816.GA19218@linux.vnet.ibm.com> From: Subhra Mazumdar Message-ID: <81034dd8-4074-e716-c3e8-5a23cbb6bb8d@oracle.com> Date: Fri, 19 Jul 2019 12:53:19 +0530 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190718100816.GA19218@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9322 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907190083 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9322 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907190082 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/18/19 3:38 PM, Srikar Dronamraju wrote: > * subhra mazumdar [2019-06-26 15:47:18]: > >> For different workloads the optimal "softness" of soft affinity can be >> different. Introduce tunables sched_allowed and sched_preferred that can >> be tuned via /proc. This allows to chose at what utilization difference >> the scheduler will chose cpus_allowed over cpus_preferred in the first >> level of search. Depending on the extent of data sharing, cache coherency >> overhead of the system etc. the optimal point may vary. >> >> Signed-off-by: subhra mazumdar >> --- > Correct me but this patchset only seems to be concentrated on the wakeup > path, I don't see any changes in the regular load balancer or the > numa-balancer. If system is loaded or tasks are CPU intensive, then wouldn't > these tasks be moved to cpus_allowed instead of cpus_preferred and hence > breaking this soft affinity. > The new idle is purposefully unchanged, if threads get stolen to the allowed set from the preferred set that's intended, together with the enqueue side it will achieve softness of affinity.