Received: by 10.192.165.148 with SMTP id m20csp5195813imm; Tue, 24 Apr 2018 15:43:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/jpppX9QQCeU7sp/u5tILxl5aMPwWx1hmAD0f4RizTDY9RGYPSDPH4oneiYbgYaCOXpuFO X-Received: by 10.98.245.139 with SMTP id b11mr25314282pfm.113.1524609795373; Tue, 24 Apr 2018 15:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524609795; cv=none; d=google.com; s=arc-20160816; b=x0aL5v5WbEpWOKkWssSE3oWYIiVMK6Z8QNaMWqI3CWHtdj+/OGT6w3gyHIjPBRROO3 3V3WRmbL2FVmow5qx4hrF56Et9onwyhEQ0nKN4tJGKhs8KBK9v7seHt6HaD0+dEEZ9CE tPV1VNPa4J7LTWaJpU5Y4RuZkl5IGc2eRHeksvd4229cFLwFqjdfzDC09erZOwBubmXg egdJE3y49/14/yma35FW7efFRMiV0sXYSktD76d66E7f5Oq4y+ElFowf9SnSlw3OK0ti oZdmKBRvuLIfF9BlwkZObO4Yq37ys6gplsHBbdLPB9G/qAPSYZCyVDTLr9QVlC+TOH8f wSrw== 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 :arc-authentication-results; bh=lSOdnmRdKmn/zzt5JfAcnFRy28JftFT2X8iKlKBfrpo=; b=JNxpJE8yRBoiJojg9JDPiIX7ir4ARqarHuMwe4Va1uX/0jjnJFILhPELlgpE5kLNzw MCAjwh4yVQl0eT5OE0N7SxQLYxIMJlv0PEjz0mkyXGA2NVxCB+ryxsDtX4SzPBCO4Ay2 lBoZfal8WngcLa1enzo5xfHMW4PmM0aBg7xlu6yMnaxNTEEwwSGJ49Ff4Otp3M6/+nlv vyWZSlftXjKrxlSffNyZ2q+5J3k8UHxmV7qQIL9AgbaRu7yaFBau+wXwu7dIf9EAmwrZ ZYG4SQO16I1Gee5nu4QuuvvJ6QrN8UXk39SFUb36bfwoAey47XgGritC8yBg48r6+4F4 icyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=u9jaCb1L; 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 t7si9732351pgo.686.2018.04.24.15.42.59; Tue, 24 Apr 2018 15:43:15 -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-2017-10-26 header.b=u9jaCb1L; 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 S1751165AbeDXWlZ (ORCPT + 99 others); Tue, 24 Apr 2018 18:41:25 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:35366 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbeDXWlY (ORCPT ); Tue, 24 Apr 2018 18:41:24 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3OMepn9143940; Tue, 24 Apr 2018 22:40:51 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-2017-10-26; bh=lSOdnmRdKmn/zzt5JfAcnFRy28JftFT2X8iKlKBfrpo=; b=u9jaCb1LN02wzjOTrT8UiQk1c458nM2FnTxdYF1C1nz85jlogkaD95D3MEO0nZzuD7WM aaPerC29Gw8GzZq05Ldgo9G8WCa8w6Kybe3X6Sz88vP4hjtf4rO/3ip7jZBXPEfOLOF6 lKVavASc4W5ux3wS3U1gaF9uc6MY/AmbgMCVXsEm/gBhfkyBD/dUQq1WLZLGEJzPKefb RCJJvB6BVG+GrNFoVc/YWoBhZhb92zRq8Za1KWmKBfBuhlbsYLdwaGmqs5ki+HRfRFir DmZIKyyuoR0VufnYfswT0A7Z0c+WZH6kxhpJXEiiS3LlaXoYJBm35U7EjlEZuAFtccPI TQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2hftty4ev7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Apr 2018 22:40:50 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3OMekkO001478 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Apr 2018 22:40:47 GMT 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 w3OMekB4009831; Tue, 24 Apr 2018 22:40:46 GMT Received: from [10.132.91.87] (/10.132.91.87) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 24 Apr 2018 15:40:45 -0700 Subject: Re: [PATCH 3/3] sched: limit cpu search and rotate search window for scalability To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, daniel.lezcano@linaro.org, steven.sistare@oracle.com, dhaval.giani@oracle.com, rohit.k.jain@oracle.com References: <20180424004116.28151-1-subhra.mazumdar@oracle.com> <20180424004116.28151-4-subhra.mazumdar@oracle.com> <20180424124801.GS4082@hirez.programming.kicks-ass.net> From: Subhra Mazumdar Message-ID: <212e5820-a9fe-70fb-90b7-d0503342c742@oracle.com> Date: Tue, 24 Apr 2018 15:43:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180424124801.GS4082@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8873 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=680 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804240213 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/24/2018 05:48 AM, Peter Zijlstra wrote: > On Mon, Apr 23, 2018 at 05:41:16PM -0700, subhra mazumdar wrote: >> + if (per_cpu(next_cpu, target) != -1) >> + target_tmp = per_cpu(next_cpu, target); >> + else >> + target_tmp = target; >> + > This one; what's the point here? Want to start search from target first time and from the next_cpu next time onwards. If this doesn't many any difference in performance I can change it. Will require re-running all the tests.