Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp367424pxa; Wed, 19 Aug 2020 03:43:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7aiskNxZtmLw1wBj7htn66UAQPreq/UGbGlWKRt3OTsozv/pjirniF7efjinvsPEl4bgG X-Received: by 2002:a17:906:4dd4:: with SMTP id f20mr25968738ejw.170.1597833838667; Wed, 19 Aug 2020 03:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597833838; cv=none; d=google.com; s=arc-20160816; b=KcjtHGrmRjVBS4qVMZt27Ea0nMGYYtYe6fmvy7imlSr1g9kjSoT/OTPRzoZtCQJkoP bq4QP2ZmklZ2EZyUjr7nAx5grdBLwrtb6rnu9qdGFXreTuBMxaPzYDY6G3UJcCl6SO3V XVfbrNd5YK9yn5JSep0gFuYb8S5k+uwKwRf5/QbzxNmR8AccFI2qEE+sE4tjF9H3f0Ip TFUA0ZS8dlIvQSWQd4x1SNvuuB/ul6OU8DJZtIVZ4bpIkSfmHS5NtjMqgZPiRvf+Dw8E lWmUrAyA/df5oqs7BS3RWsF09jvlmtPg71VHwyJwZ8Yb+YBTfmfSzqeexG0RTSJqDvfn KXsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=GrhlYBHahFUnfdeextaZfRwniN2kk8VF9Pt6+h/0TuI=; b=Pr5Z0W0nIdoHNC45iyy9hbHCazeAReVvIlWVo+Z2+bpag5SxHCcmT8Zm/QcTtDzzGH sHyX9zI4zl1hDa5JJph8MDulaJK4s1bx/ocZMhkp3y87NkFox+OFHzueU8rUhpjGk8qm S5HwBDRIlibgCqmrWobp7z4zC2cfQ8QxT6nG9EySYQBHKevC0p6rk+AT0JCCKtGvfwXd JYHBOOibuoaQCnEMLLpEtI0bHoeU/9FfunrpPzbtVrbUoKQbUX7cSQAihtOSOPQebrS+ KZdHTWfFZwBU7uBl2K6uX9d9vcw5TAtyE6MeFL7NzJqe8LzOHTZst+OZsuhcNw406RPK G+ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=AQNYrbOw; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=TKWgKTRt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec15si15622360ejb.236.2020.08.19.03.43.35; Wed, 19 Aug 2020 03:43:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=AQNYrbOw; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=TKWgKTRt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727970AbgHSKmh (ORCPT + 99 others); Wed, 19 Aug 2020 06:42:37 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:54191 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727807AbgHSKmd (ORCPT ); Wed, 19 Aug 2020 06:42:33 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DA20F5C008F; Wed, 19 Aug 2020 06:42:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 19 Aug 2020 06:42:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm1; bh=G rhlYBHahFUnfdeextaZfRwniN2kk8VF9Pt6+h/0TuI=; b=AQNYrbOw0aMP2QXnQ MxiJwCO0NtYEIuSS7CTcvGrEQGtpaXYYB/V4qn1314029uZLK3DN8WxJtFYNtIHv vhiS4qVv2Hk9hVrudXu2FQ2lgkW8XrMwhvlBBOsai4BcuLyzycL+lqUhjygZni8K /E9yi3Xqbt3TV327d8VrHxaLskSMRCcaNfYuKtbkOSop8H0WMrBYhLbDIxf5aCmI dj6PgfujAxbYK3QSg85ylTxsAwPcpLDQk+sp9pC9eYQBETsuLXQ1kxS6WTBZAYx/ x6UJpD42oQ1coGOlYdhDcwv9soS47MwivXfLFqyiXYr5jUDCrdmO2h3K7Oy0OI80 kt9aA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=GrhlYBHahFUnfdeextaZfRwniN2kk8VF9Pt6+h/0T uI=; b=TKWgKTRt1bliMpQJSGf1O8FjBHHZBZ9H2JPyejT+pUzpdPpgEbpEwRxat k4GxdGGT8kauIcaEyOMAqG0QDbPB5GEyBN13iFNT98j/sRWuEoLfTaRkWflx3VaX 7ImPEZFL+5rJmDBdJPFNRwPBgy0L6ax1fV+s2KI8Y3Ln4/bmN6CxGJnRlX1vVBgA U+5qdPLxRF3Q5cA18BOS3bx2fEDRpMh/JxhkdxT/YqYU9vV7VxAVq7CTHg/azOFk Jjym2bwM/xukMynCiaKwZZ4unIWFJrvC7uVRqX7UuNSjR8+X0m1B+WQHy5ce8ChM Qg0JfkZjHx/N1iVm+eUwGvEEQYwsg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedruddtkedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtugfgjgesthekredttddtjeenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepueehke ehlefffeeiudetfeekjeffvdeuheejjeffheeludfgteekvdelkeduuddvnecukfhppeek fedrkeeirdekledruddtjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 440153280059; Wed, 19 Aug 2020 06:42:31 -0400 (EDT) Date: Wed, 19 Aug 2020 12:42:54 +0200 From: Greg KH To: Muni Sekhar Cc: peter enderborg , kernelnewbies , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: Scheduler benchmarks Message-ID: <20200819104254.GA41946@kroah.com> References: <20200818143633.GA628293@kroah.com> <20200818171457.GA736234@kroah.com> <20200818173656.GA748290@kroah.com> <84362b8b-971f-fb89-115d-41d2457c24fd@sony.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 19, 2020 at 03:46:06PM +0530, Muni Sekhar wrote: > On Tue, Aug 18, 2020 at 11:45 PM peter enderborg > wrote: > > > > On 8/18/20 7:53 PM, Muni Sekhar wrote: > > > On Tue, Aug 18, 2020 at 11:06 PM Greg KH wrote: > > >> On Tue, Aug 18, 2020 at 11:01:35PM +0530, Muni Sekhar wrote: > > >>> On Tue, Aug 18, 2020 at 10:44 PM Greg KH wrote: > > >>>> On Tue, Aug 18, 2020 at 10:24:13PM +0530, Muni Sekhar wrote: > > >>>>> On Tue, Aug 18, 2020 at 8:06 PM Greg KH wrote: > > >>>>>> On Tue, Aug 18, 2020 at 08:00:11PM +0530, Muni Sekhar wrote: > > >>>>>>> Hi all, > > >>>>>>> > > >>>>>>> I’ve two identical Linux systems with only kernel differences. > > >>>>>> What are the differences in the kernels? > > >>>> You didn't answer this question, is this the same kernel source being > > >>>> compared here? Same version? Same compiler? Everything identical? > > >>> Both systems are having exactly the same hardware configuration. > > >>> Compiler and kernel versions are different. One system has Ubuntu > > >>> 16.04.4 LTS(4.4.0-66-generic kernel with gcc version 5.4.0) kernel and > > >>> the other one has Ubuntu 18.04.4 LTS(4.15.0-91-generic kernel with gcc > > >>> version 7.5.0). > > >> Those are _very_ different kernel versions, with many years and tens of > > >> thousands of different changes between them. > > >> > > >> Hopefully the newer kernel is faster, so just stick with that :) > > > But unfortunately the newer kernel is very slow, that is the reason > > > for starting this investigation :) > > > Any type of help, and guidelines to dive deeper will be highly appreciated. > > > > On the 4.4 kernel you dont have > > > > +CONFIG_RETPOLINE=y > > +CONFIG_INTEL_RDT=y > Thanks! That is helpful. Yes, I see 4.4 kernel don't have the above > two config options. > What analysis can be done to narrow down the root cause? "root cause" is you are comparing a kernel without any spectre/meltdown mitigations, with one that has it. Those mitigations are known to have a huge slowdown on some benchmarks/workloads, as you have shown here. If you don't like this, you can disable these changes on newer kernels, if you really really know what you are doing, but I strongly do not recommend it. Also you can complain to your hardware vendors for selling you broken hardware :) > Any example of reference could be helpful to understand. Look up Spectre and Meltdown for many many examples of what happened and what went wrong with chip designs and how we had to fix these things in the kernel a few years ago. greg k-h