Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752114AbcCVDTO (ORCPT ); Mon, 21 Mar 2016 23:19:14 -0400 Received: from mail-by2on0138.outbound.protection.outlook.com ([207.46.100.138]:12864 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750838AbcCVDTN (ORCPT ); Mon, 21 Mar 2016 23:19:13 -0400 Authentication-Results: infradead.org; dkim=none (message not signed) header.d=none;infradead.org; dmarc=none action=none header.from=hpe.com; Message-ID: <56F0B9A6.4040903@hpe.com> Date: Mon, 21 Mar 2016 23:19:02 -0400 From: Waiman Long User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130109 Thunderbird/10.0.12 MIME-Version: 1.0 To: Peter Zijlstra CC: Ingo Molnar , , Linus Torvalds , Ding Tianhong , Jason Low , Davidlohr Bueso , "Paul E. McKenney" , Thomas Gleixner , Will Deacon , Tim Chen Subject: Re: [PATCH v2 0/4] locking/mutex: Enable optimistic spinning of lock waiter References: <1455298335-53229-1-git-send-email-Waiman.Long@hpe.com> <20160216085111.GR6357@twins.programming.kicks-ass.net> In-Reply-To: <20160216085111.GR6357@twins.programming.kicks-ass.net> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [72.71.243.139] X-ClientProxiedBy: SN1PR0501CA0037.namprd05.prod.outlook.com (25.163.126.175) To AT5PR84MB0307.NAMPRD84.PROD.OUTLOOK.COM (25.162.138.29) X-MS-Office365-Filtering-Correlation-Id: 4d3bebb8-9c7b-4b46-c538-08d35200bbeb X-Microsoft-Exchange-Diagnostics: 1;AT5PR84MB0307;2:op3T7XzrKt1CP5HAg+N9daXcYBwWUOYZ1Z9nsK5ET1xr6Cn8J8mlH4ZFKLMXvxev0DF+sQwHS8W3/ApF3q32wCMWBBCdXUOlgVCL0MDwKzJ6oy2E3JDQu6pHXWbzGEU5jn8XiumZ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p/bOLFxPXZ2fG1YEJDak2/njHt8+DfcpbdfboX+KURbsAQYLV9QPAy15w7Sdl3AwYrHIM+TxdsmBq2tncHgDHAO/a+tYIo0RQ==;4:JwBx2dcY5pn6K0e6Rs2TO3WGNCeFjrihgrBKu0IgG7GXFMy8mt76k4U6ur8FZiCqHS1Z7LhvS4KLAeYq1/1bEEF0UBTwCt7vLXfAUB96rTMl0LC1KKyBc7j25pKNzIeC7YSPjIClkKiL7ejfcOIUjT38nRHwpwJSidfgiHEk3IEtXu5a+JmPScJGOwB+Uk7mN0HuKCbxPO73IdbxoWJkzCcty4wVn2qbwkP3mGC4Ns6RAIVpSJFEueydT7teOQuI6mdUjLZjJ4VinHOmlllxeYlgCiC72TnqGdZKA3Y7zNJAfU9kpezzyAytPWV18xZPTgP4EYXOU9yp60P7fuo1a8ji+Pc2+d5DEnHoy9a83vYOuEN0HpkeRa/qRXqCbLHX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:AT5PR84MB0307;BCL:0;PCL:0;RULEID:;SRVR:AT5PR84MB0307; X-Forefront-PRVS: 08897B549D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6049001)(6009001)(24454002)(377454003)(5004730100002)(92566002)(59896002)(117156001)(33656002)(42186005)(189998001)(4001350100001)(65816999)(76176999)(50466002)(54356999)(110136002)(64126003)(50986999)(23756003)(36756003)(86362001)(19580395003)(1096002)(81166005)(6116002)(83506001)(77096005)(3846002)(586003)(65806001)(47776003)(2950100001)(66066001)(65956001)(2906002)(5008740100001)(2870700001)(4326007)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:AT5PR84MB0307;H:[192.168.142.141];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?iso-8859-1?Q?1;AT5PR84MB0307;23:6Ykm7yeb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8859-1?Q?zFip6t9IVOsR6DCY4/nbzeLXXPBNSxybJevrDgeXZz1L+HgKZTyV08jwf3?= =?iso-8859-1?Q?aB/vLVFTLF2+1LMrdyqAW/UPjP63cm6weQ28gm6GG83i+EKlcuLY9rjkuK?= =?iso-8859-1?Q?U82djQIfs2Kr3NBu6heIju+761aPvcUF0u1YCMgKyIZflCp3ymbCR1eaWG?= =?iso-8859-1?Q?HnDfjgy7C+LSo5c0B2RoXkdMsz48p5hD34VQA5sevO+O2/7aHWwShBAOdN?= =?iso-8859-1?Q?2/gjc?= X-Microsoft-Exchange-Diagnostics: 1;AT5PR84MB0307;5:fJ10QszNQKAn5iTMq58ajYmC2xpohO6EQEvYecs/C5QAtc7Rx/vS5m/HHvDIGojrTZWqfH3KGxY4G35TRxIi7qKbsMLFhT5Xag6G/NFKGcgBIPbqT8cMhGcId+MPNVc9myAKMqELkvL6gcgkX1/5vQ==;24:v6hq1h5Lv1sxSjjgZR935wNoM7UyMZjsZUa3AylhVAISr2z9zx1JohpVXbsAV8Gjm1fTZziCxBpaEAY+X/BSTp6OEQkrLySg2II1XFlF6Lo= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: hpe.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2016 03:19:08.4077 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AT5PR84MB0307 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1516 Lines: 39 On 02/16/2016 03:51 AM, Peter Zijlstra wrote: > On Fri, Feb 12, 2016 at 12:32:11PM -0500, Waiman Long wrote: >> My own test on a 4-socket E7-4820 v3 system showed a regression of >> about 4% in the high_systime workload with Peter's patch which this >> new patch effectively eliminates. >> >> Testing on an 8-socket Westmere-EX server, however, has performance >> change from -9% to than +140% on the fserver workload of AIM7 >> depending on how the system was set up. > Subject: [lkp] [locking/mutex] aaca135480: -72.9% fsmark.files_per_sec > > My patch also generated the above email. > > Please also test that benchmark against this approach. > I also got an email from "kernel test robot", it didn't list fsmark at all. Instead, the subject was [lkp] [locking/mutex] 5267438002: +38.9% fileio.time.involuntary_context_switches 4409 ? 1% +38.9% 6126 ? 2% fileio.time.involuntary_context_switches 6.00 ? 0% +33.3% 8.00 ? 0% fileio.time.percent_of_cpu_this_job_got 36.06 ? 0% +43.0% 51.55 ? 0% fileio.time.system_time 1828660 ? 0% -92.5% 137258 ? 0% fileio.time.voluntary_context_switches Given that the number of voluntary context switches dropped by 92.5%, an increase in involuntary context switches that is order of magnitude less than the voluntary context switches should be OK, I think. Do you know how to report back that this increase is expected and is nothing to worry about? Do I just reply it back? Cheers, Longman