Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1183033pxb; Sat, 16 Oct 2021 03:55:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWtqsvjvVFOs5HTnatvdSP5fQuSRoX2PFCgRxJSP9EZDFBn/EKlKr/sCf+sIo1dq5aQOiA X-Received: by 2002:a17:902:ce86:b0:13f:16c5:c666 with SMTP id f6-20020a170902ce8600b0013f16c5c666mr16199659plg.88.1634381707829; Sat, 16 Oct 2021 03:55:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634381707; cv=none; d=google.com; s=arc-20160816; b=sdqkM7Ifg8sY1RlwDo0G8fqPE6sXSVthOMUFudqC7m2hNGbkBJzBosa/Z7S+EALbSk HpIxXHCY7SfRbJdXIOevrmPI7c/xE9DZYpnW85eeLzi2zs7SFCN8K6iBNAzE+biJ2Gr8 srkv7HVH8nedJAhEOaQntI4jUD4PBVeKMBn87Zpnr15ZFfFjUxYAkkOU/NbV78J/LPff m3Z4GBQEIvj3LYo1KmgApRmQxmXW/FhCYCXklVAD07vgYm+DB5mnCAOh/z/iNp4vxePf pLyUL7My/SViP6vtGAT0o6fMEIAbcEpMjS98xxZPsTAjvH7akcRht0cjMTfJlNjXIK5a b58A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=sscIzJbWD53Q3CjZVmpvDphbTVJsf7qleeL7GEXmME4=; b=vGcPKP/8vew3ZrTHawbxjGIw6HMPFPyHih0CXi+7ZDlxCmqJYC9B3XPmtX4oy7GHkg JOAtxKO9npeDhy810+UtjJCvgT68wK5WEKUcTC0vj+EwidHuYMwNDJb4TP3XY/OfQpVg TycQVA7Gh84oZpz4o0cta8g4QJpNatDpIbESsIEFp4nO+DQShrYkLrTZ+mhkNBebgQRZ U5wSubcPuSizrI/Lc+ay2gx8Ie4mPwZQeTV0ZRkI+ELYB8GXvsl3BHImEWMt3jimTctm tCamIZLvoxiflm3QFtyTtBOPLLGUUE+PBFHyE8+VFD+AIAzHL1lFVs4Nzux4FVb/JKX4 Lotg== ARC-Authentication-Results: i=1; mx.google.com; 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 i4si10816649plb.86.2021.10.16.03.54.55; Sat, 16 Oct 2021 03:55:07 -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; 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 S239512AbhJOOGL (ORCPT + 99 others); Fri, 15 Oct 2021 10:06:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:57196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236710AbhJOOGK (ORCPT ); Fri, 15 Oct 2021 10:06:10 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 688D260F70; Fri, 15 Oct 2021 14:04:03 +0000 (UTC) Date: Fri, 15 Oct 2021 10:04:01 -0400 From: Steven Rostedt To: Norbert Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Ingo Molnar , Thomas Gleixner Subject: Re: Performance regression: thread wakeup time (latency) increased up to 3x Message-ID: <20211015100401.45833169@gandalf.local.home> In-Reply-To: <5fe0ffa5-f2db-ca79-5a10-305310066ff9@gmail.com> References: <035c23b4-118e-6a35-36d9-1b11e3d679f8@gmail.com> <5fe0ffa5-f2db-ca79-5a10-305310066ff9@gmail.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 Oct 2021 02:36:03 -0700 Norbert wrote: > On 10/15/21 01:52, Peter Zijlstra wrote: > > On Fri, Oct 15, 2021 at 12:43:45AM -0700, Norbert wrote: > >> Performance regression: thread wakeup time (latency) increased up to 3x. > >> > >> Happened between 5.13.8 and 5.14.0. Still happening at least on 5.14.11. > > > > Could you git-bisect this? > > > > So far I haven't built a kernel yet, I'm quite new to Linux in that way, > so it may take me some time to figure it all out, but yes. If you do test a kernel you build yourself, you may want to use "localmodconfig". Which will look at all the modules that are loaded on the local system and turn off the configs for modules that are not loaded. This will save a lot of time compiling the kernel. Especially if your basing off of a distro config. $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git $ cd linux $ cp /boot/config-[whatever your kernel is] .config $ yes '' | make localmodconfig Then build your kernel. $ make -j10 $ sudo make modules_install install > > (By the way, of course I meant that throughput *de*creases, not increases.) of course ;-) -- Steve