Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752490AbdIVQMu (ORCPT ); Fri, 22 Sep 2017 12:12:50 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:47992 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752055AbdIVQMs (ORCPT ); Fri, 22 Sep 2017 12:12:48 -0400 Subject: Re: sysbench throughput degradation in 4.13+ To: Peter Zijlstra Cc: Rik van Riel , =?UTF-8?B?546L6YeR5rWm?= , LKML , Ingo Molnar , Christian Borntraeger , "KVM-ML (kvm@vger.kernel.org)" , vcaputo@pengaru.com, Matthew Rosato References: <95edafb1-5e9d-8461-db73-bcb002b7ebef@linux.vnet.ibm.com> <50a279d3-84eb-3403-f2f0-854934778037@linux.vnet.ibm.com> <20170922155348.zujigkn3o5eylctn@hirez.programming.kicks-ass.net> From: Eric Farman Date: Fri, 22 Sep 2017 12:12:45 -0400 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170922155348.zujigkn3o5eylctn@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17092216-0016-0000-0000-0000078E3557 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007778; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000231; SDB=6.00920779; UDB=6.00462706; IPR=6.00700999; BA=6.00005601; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017249; XFM=3.00000015; UTC=2017-09-22 16:12:44 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17092216-0017-0000-0000-00003B93465D Message-Id: <754f5a9f-5332-148d-2631-918fc7a7cfe9@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-09-22_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1709220228 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1572 Lines: 44 On 09/22/2017 11:53 AM, Peter Zijlstra wrote: > On Fri, Sep 22, 2017 at 11:03:39AM -0400, Eric Farman wrote: >> Hi Peter, Rik, >> >> With OSS last week, I'm sure this got lost in the deluge, so here's a >> friendly ping. > > Very much so, inbox is a giant trainwreck ;-) My apologies. :) > >> I picked up 4.14.0-rc1 earlier this week, and still see the >> degradation described above. Not really a surprise, since I don't see any >> other commits in this area beyond the ones I mentioned in my original note. >> >> Anyway, I'm unsure what else to try or what doc to pull to help debug this, >> and would appreciate your expertise here. We can repro this pretty easily >> as necessary to help get to the bottom of this. >> >> Many thanks in advance, > > Could you describe your sysbench setup? Are you running it on mysql or > postgresql, what other options? > MySQL. We've tried a few different configs with both test=oltp and test=threads, but both show the same behavior. What I have settled on for my repro is the following: sudo sysbench --db-driver=mysql --mysql-host=localhost --mysql-user=root --mysql-db=test1 --max-time=180 --max-requests=100000000 --num-threads=8 --test=oltp prepare sudo sysbench --db-driver=mysql --mysql-host=localhost --mysql-user=root --mysql-db=test1 --max-time=180 --max-requests=100000000 --num-threads=8 --test=oltp run Have also some environments where multiple sysbench instances are run concurrently (I've tried up to 8, with db's test1-8 being specified), but doesn't appear to much matter either. - Eric