Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3478662imj; Tue, 19 Feb 2019 04:20:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IbEisaYd+6SGEK5jZZErRzEFRb5UIDB+IH9A5NAQhYn6wbAjPAo/cHL3DuYhJn4hg+xxbG0 X-Received: by 2002:a63:8bc8:: with SMTP id j191mr22319414pge.234.1550578815114; Tue, 19 Feb 2019 04:20:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550578815; cv=none; d=google.com; s=arc-20160816; b=KmHXN5v6nezNr208HWCNP8AdiaDslIy1UK+/NJceXSDk7N3AxMoXdAhcsYr4XyE/Sd kpPC3ywX4eJfceYXDOwMORGVmb0GRoK8Rw98+wpr2i7fycmaE77E3IMLjG+SZPkfIeFO dV9P+iO9JVQs5EgeyRg3AIbuy5IVoSuM8qxdb8mZ89b1zXCpFbpdGE91k4cH49nPSGeA 8f5jpmGZeg/hVvQ0tbKgYBAIQgfApVU5RwGezljWch2omyD11SIyM9NTdTzzMBycKcTC 7vNlBB2tooU7Eb0fq+rdcvK6qUw14a2q2mJn2sVCfFQEbonKH3cwKsDQJe8WcowGn05O LLlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+sOqZy+AaQDoNhGiHA+wOpTLFuan3wtsM9YhYUiV3HI=; b=gRUxAZBH8mm8vFJtCkViz73BPIfiH5egVuxglDGcKDVjwdyp/oPiK61ir+6PYq5K06 m//X2K4hQQEXgGewhs4sfV/iEJ8eqxPze4mIdNmVZPHb/Yn8togpdUwPPhxWT65HIxji BVpq2ERvjwIpC339bY1ASPHVrPwjDWONdBkZtd1OdN7B+IdGsKia3V+RVjJh9/FGT9zU HCb0G4iSZ2hhEppbQbF5Oz+itPaXh5lw1WnKMq491CTYB1ZH00r1is9LD7AfxqoUcZ2g D2pUJ/88x3ORnTveS+GQZk62nhSjmCz21Rpv3ENaLxyrcwaiY0dZPhfBeY8q/KrF80G5 PMgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="hL41tv+/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24si15107469pff.186.2019.02.19.04.19.59; Tue, 19 Feb 2019 04:20:15 -0800 (PST) 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=@kernel.org header.s=default header.b="hL41tv+/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727246AbfBSMTJ (ORCPT + 99 others); Tue, 19 Feb 2019 07:19:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:38072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbfBSMTI (ORCPT ); Tue, 19 Feb 2019 07:19:08 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D2C83217D7; Tue, 19 Feb 2019 12:19:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550578747; bh=rhp0tL21cRIxcBhxTt3aCrKDczKZ5oqAqZa92OHkjj4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hL41tv+/TVcEoLwqKKK3pNu4yVbAVS1sbASCeN10pANzTNZe9ynMthb4vNTja31fP EIVgjxn7YF+MaVB2b3l1UMxbPtTgo6N68P5UUPMXRdP01qmWu4B6G1tR+iaUogTy6v sMm5NtmnEj0rchITNWKqpLMxIJdKZyy6zlCWraLw= Date: Tue, 19 Feb 2019 13:19:04 +0100 From: Greg Kroah-Hartman To: Wei Yang Cc: kernel test robot , "Rafael J. Wysocki" , LKML , Stephen Rothwell , lkp@01.org Subject: Re: [LKP] [driver core] 570d020012: will-it-scale.per_thread_ops -12.2% regression Message-ID: <20190219121904.GA24103@kroah.com> References: <20190218075442.GI29177@shao2-debian> <20190219005945.GA16734@richard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190219005945.GA16734@richard> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 19, 2019 at 08:59:45AM +0800, Wei Yang wrote: > On Mon, Feb 18, 2019 at 03:54:42PM +0800, kernel test robot wrote: > >Greeting, > > > >FYI, we noticed a -12.2% regression of will-it-scale.per_thread_ops due to commit: > > > > > >commit: 570d0200123fb4f809aa2f6226e93a458d664d70 ("driver core: move device->knode_class to device_private") > >https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master > > > > This is interesting. > > I didn't expect the move of this field will impact the performance. > > The reason is struct device is a hotter memory than device->device_private? > > >in testcase: will-it-scale > >on test machine: 288 threads Knights Mill with 80G memory > >with following parameters: > > > > nr_task: 100% > > mode: thread > > test: unlink2 > > cpufreq_governor: performance > > > >test-description: Will It Scale takes a testcase and runs it from 1 through to n parallel copies to see if the testcase will scale. It builds both a process and threads based test in order to see any differences between the two. > >test-url: https://github.com/antonblanchard/will-it-scale > > > >In addition to that, the commit also has significant impact on the following tests: > > > >+------------------+---------------------------------------------------------------+ > >| testcase: change | will-it-scale: will-it-scale.per_thread_ops -29.9% regression | > >| test machine | 288 threads Knights Mill with 80G memory | > >| test parameters | cpufreq_governor=performance | > >| | mode=thread | > >| | nr_task=100% | > >| | test=signal1 | Ok, I'm going to blame your testing system, or something here, and not the above patch. All this test does is call raise(3). That does not touch the driver core at all. > >+------------------+---------------------------------------------------------------+ > >| testcase: change | will-it-scale: will-it-scale.per_thread_ops -16.5% regression | > >| test machine | 288 threads Knights Mill with 80G memory | > >| test parameters | cpufreq_governor=performance | > >| | mode=thread | > >| | nr_task=100% | > >| | test=open1 | > >+------------------+---------------------------------------------------------------+ Same here, open1 just calls open/close a lot. No driver core interaction at all there either. So are you _sure_ this is the offending patch? thanks, greg k-h