Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp285190imp; Thu, 21 Feb 2019 01:13:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IYB+/Wvs6WgI79cutd2cxWtn3tuO0Yq0Ykwhg2mG0q1DA5uvSgRYu41PYAhtSyiWpxxq3Yw X-Received: by 2002:a62:1ac3:: with SMTP id a186mr8654786pfa.48.1550740385719; Thu, 21 Feb 2019 01:13:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550740385; cv=none; d=google.com; s=arc-20160816; b=qZObB5ik1GRsoA+pcF1g3hNgDUyawoupb2c4jBan7SJT8Ts3rpW9Zr9ly3pDWIamWt q9IXC8PbaTd8HBIPjuHOmz0Bv+lxPfOtuUlPzDwLLk1ddRVx89xCJU0pOQ3bFOzd0DEk lwzo5dcT96GNvykUVVoObKNGP7wJM4v56T6yqvt9JhB/HUvdcqM8e5wgltben1CTrkNz RVX7ElweQt7X7vsM/JNXuSmIyNwcE1OtmC1qq3aQixHvCHW7U7/zjHcPner9HNxrPyCp dFs8XA9nAxbqtfNHx7USk38ctPO9FtNVHaEKjzWm/Go/9HIVonT/1YbCVf94opAKYxo4 WYqg== 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=RgcWjgeqZ01uGCrIB+JKzRor2pCkgmXo+VjK/SQJwAc=; b=RzYqKG/RAm75oh1zPMbsPUof3JvG0AoHZxDAbd01xdgj7nu43FhcKUH/sLKrcU+htd u8bsZRR4DdL23MHFNb66ffSsrR1GGZIblJDFRsrPdvCpETE7cvHZJpt64PmrB8c3x+nV qcE29xEkTP2AZbGlTr6A4cZ19Ffr2i41zja10b00J/uQQTV9vOWWsPGu6/bb7yIm4MNl QEK51oGKcxU6mRO17f0JmqCQ8uTmEBSzB5m/ECko9UF6gMpoNvL1wVGau0GQ/i5aJXuu z9lYygeXCeV4LVuwFFGaLaUcNE1fSTmLd1sSsS9l03ZkgskVRaPXTGXq6Wjx3OgAC8Y+ PSCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qgDrPMDK; 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 z31si21551539plb.402.2019.02.21.01.12.50; Thu, 21 Feb 2019 01:13:05 -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=qgDrPMDK; 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 S1727541AbfBUJMX (ORCPT + 99 others); Thu, 21 Feb 2019 04:12:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:60650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727395AbfBUJMV (ORCPT ); Thu, 21 Feb 2019 04:12:21 -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 A12C220842; Thu, 21 Feb 2019 09:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550740341; bh=s/954L2aQeWhqqTy/ASpFoNRHbw6AkggxUV6DEIKRhc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qgDrPMDKQ4f7yJvJYqmNavcwtV2JJ+4LeVPiNUeH0d55tNI5bWUwzEHOS1iwGbtrz uAPFpXTk3M8rlHSBaH28Vh+2tnkDWBDqLuZtvvp8fw+L6Tc6+B40l1/5kMAZPqDfFl tqSbyYPVt0Ja+m0FYpdMTY0JsnP1xr/incAWYN2A= Date: Thu, 21 Feb 2019 10:12:17 +0100 From: Greg Kroah-Hartman To: Wei Yang Cc: "Huang, Ying" , kernel test robot , Stephen Rothwell , "Rafael J. Wysocki" , lkp@01.org, LKML Subject: Re: [LKP] [driver core] 570d020012: will-it-scale.per_thread_ops -12.2% regression Message-ID: <20190221091217.GA18701@kroah.com> References: <20190218075442.GI29177@shao2-debian> <20190219005945.GA16734@richard> <20190219121904.GA24103@kroah.com> <20190221031049.GE28258@shao2-debian> <20190221071023.GA28637@kroah.com> <8736oh1uf5.fsf@yhuang-dev.intel.com> <20190221073510.GA17369@kroah.com> <87va1dzgpj.fsf@yhuang-dev.intel.com> <20190221083926.GA7834@richard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190221083926.GA7834@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 Thu, Feb 21, 2019 at 04:39:27PM +0800, Wei Yang wrote: > >>> I don't think this is an issues of struct device. As you said, struct > >>> device isn't access much during test. Struct device may share slab page > >>> with some other data structures (signal related, or fd related (as in > >>> some other test cases)), so that the alignment of these data structures > >>> are affected, so caused the performance regression. > >> > >> But allocation of a structure should always be "properly" aligned, no > >> matter what something else did in the system as that is what kmalloc > >> ensures. If not, then we have problems in our memory allocator :) > >> > >> So something is odd here, but I don't think that is it... > > > >If all these data structure are allocated with kmalloc() instead of > >kmem_cache_alloc(), then my guessing above seems incorrect ... > > > > Seems we don't have special kmem_cache for device and device_private. Nor do we need one :) Remember, 'struct device' is included inside lots of other structures already, it is not very often created "on its own." thanks, greg k-h