Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1770553yba; Thu, 4 Apr 2019 18:35:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlTaSxTLpsdcGBBb41eKHaHcBbE+ia0uynWOdMYr7tcx3ba6k21XkN7sxRyDFlwSuivCy6 X-Received: by 2002:a62:4754:: with SMTP id u81mr9325460pfa.66.1554428138105; Thu, 04 Apr 2019 18:35:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554428138; cv=none; d=google.com; s=arc-20160816; b=oZNh3u5XgKNhLgLel4zjHFC+0OM9c8Chccz+LWwwdyeg3Qa1hAVLMg5L+t1FGOP0jK DqR2cqBuJ5kNhlpvr98iG2kEwm0sV+PhYBOvudhzEc72DCkX14su+pAsyprObq3z9gt/ Od2b+dvx1ljDCWhBeiHAIM8MFaN6tif5A2gHzKRkYr1NOgZQc7aaVq6gYGG/CEsC6YN5 kA2ZUMWNVs1yuzDY9B9EdAiJ/IVX5SpCnK4dbQ5e61Xu5CMsujg73bg7Xx4ECW1oXLiy CkQD+ck2iBECzMsMy5QQxGMswfKLUnGHgLxsXaQGq2qp6refustX51II6v7tdZmKfj5O gmTQ== 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=AEIcjekLDVfO3Ojew6/jbgwYoGPLKt7EJhWhignEeX8=; b=nJ0sTtXaSxbew7ueE7qhF+glHE/5VCGNeasMWjTWZdoMqiZAT1JT+wo4hdKUTnwGOr A7qMVzKwhy2sjhcgDQPpV9sqexTfsgsbaWKyY64ZErcaLP4ERXhwXd3DMPbRPPmzZaoZ m+egSi95aKz+m7bDiYbWafV+mryl/HEf+HwKuJ0Pr3Im/k+DiCQmLxyQ2lh0wGEtc5K3 K2MQ7fuZFuyKOsYzI9PKAzUqRDpMg7Pj6ahwVIaVaiip4ZDhFZq7QOqEnUf31S+GP9PT W9c+ykOVBjgWUC2td031fccy/2fYUdFkust6jyggUzdsltnzjZWNDaJgT0CYvjAEhqar N0kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=H1V2vwd6; 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 t9si7030726pgp.273.2019.04.04.18.35.18; Thu, 04 Apr 2019 18:35:38 -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=H1V2vwd6; 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 S1730587AbfDEBe2 (ORCPT + 99 others); Thu, 4 Apr 2019 21:34:28 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:51094 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727053AbfDEBe2 (ORCPT ); Thu, 4 Apr 2019 21:34:28 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x351PFVO134098; Fri, 5 Apr 2019 01:33:55 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=AEIcjekLDVfO3Ojew6/jbgwYoGPLKt7EJhWhignEeX8=; b=H1V2vwd6obwRohWug4yqZmRJxXhuwstQVm+ydz93GA9dGIOSDTT3eQ+PWaLe9/+RSpq3 zalcvPfONTQUWYfxNdiWY8hE8nt/ls89dETuF8DYTrfiptEMfJ3lIrKeMCQqY+sm7g0p SaaNJWsJ34VyvUde3R4z4tcU8hHhvtY4XfxDpHtIFjJSrXdhv3irHyF6/G2USuDULZyk wDH0gvqQd9jq+gMHA0dcnZ9wBY08/fkhGF16LpNn2o53Xf+rzZnSRLZXYAAvTYWY3nLE 8041l8Ozid4zCBwmPlOz8Kk9TxPrjeyLuufIKKptsmVqP84rqLQFk5SwtnReePXIagHA qQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2130.oracle.com with ESMTP id 2rhwydjewp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 05 Apr 2019 01:33:55 +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 x351WUOW185554; Fri, 5 Apr 2019 01:33:54 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 2rm8f607rc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 05 Apr 2019 01:33:54 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x351Xrqt026288; Fri, 5 Apr 2019 01:33:53 GMT Received: from [10.132.91.175] (/10.132.91.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 04 Apr 2019 18:33:52 -0700 Subject: Re: [RFC][PATCH 03/16] sched: Wrap rq::lock access To: Julien Desfossez Cc: Peter Zijlstra , mingo@kernel.org, tglx@linutronix.de, pjt@google.com, tim.c.chen@linux.intel.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, keescook@chromium.org, kerrnel@google.com, Vineeth Pillai , Nishanth Aravamudan References: <1553866527-18879-1-git-send-email-jdesfossez@digitalocean.com> <6e8e6fa0-8976-5e97-d90c-af0b4a6fc8b2@oracle.com> <20190403201634.GA4192@sinkpad> From: Subhra Mazumdar Message-ID: <4bc8cd35-5132-d717-d952-9ef90189345d@oracle.com> Date: Thu, 4 Apr 2019 18:30:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190403201634.GA4192@sinkpad> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9217 signatures=668685 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-1904050010 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9217 signatures=668685 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-1904050009 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > We tried to comment those lines and it doesn’t seem to get rid of the > performance regression we are seeing. > Can you elaborate a bit more about the test you are performing, what kind of > resources it uses ? I am running 1 and 2 Oracle DB instances each running TPC-C workload. The clients driving the instances also run in same node. Each server client pair is put in each cpu group and tagged. > Can you also try to replicate our test and see if you see the same problem ? > > cgcreate -g cpu,cpuset:set1 > cat /sys/devices/system/cpu/cpu{0,2,4,6}/topology/thread_siblings_list > 0,36 > 2,38 > 4,40 > 6,42 > > echo "0,2,4,6,36,38,40,42" | sudo tee /sys/fs/cgroup/cpuset/set1/cpuset.cpus > echo 0 | sudo tee /sys/fs/cgroup/cpuset/set1/cpuset.mems > > echo 1 | sudo tee /sys/fs/cgroup/cpu,cpuacct/set1/cpu.tag > > sysbench --test=fileio prepare > cgexec -g cpu,cpuset:set1 sysbench --threads=4 --test=fileio \ > --file-test-mode=seqwr run > > The reason we create a cpuset is to narrow down the investigation to just 4 > cores on a highly powerful machine. It might not be needed if testing on a > smaller machine. With this sysbench test I am not seeing any improvement with removing the condition. Also with hackbench I found it makes no difference but that has much lower regression to begin with (18%) > > Julien