From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7EA6CCD184 for ; Tue, 14 Oct 2025 12:58:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=E9dA05Q/KvwHLKpgSigaW4YQ65XyRr/t90KfDiqx1Mk=; b=sFkb0o7snx3waA 4kxe9Ufp35HQdLyaWnXKzy2g8j3Jv8ZMYpNMxUhNRH/wSjuB0yDalhi4uEl86XFwZholH3WLjnlFI lVyUzCx9R6AHDydj7wyQii31F7hlS5DEuYSB94ZMc/LN0QYi4f/7jbHmvf75DJ+Y9qjVs+4DPAt1W MWrLkdZj7gof7H3ylMA21GGDEsAL9fSon5Fa99PHPg2x8C3C7vvDQBuzLVEJobxtGs3/MtyH8dMbF gCdh1vATVvtHhAh+62WZ6yZN4y7LahjQRT21KweEkmG7rW4uAe1dWmIeHILt0nPWOXqYCJrmJmfbx J0l+3Dn5HI6JQUTeq83w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v8ebV-0000000GKSN-3uDw; Tue, 14 Oct 2025 12:58:13 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v8ebS-0000000GKQn-48WN for linux-riscv@lists.infradead.org; Tue, 14 Oct 2025 12:58:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1760446688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o+P2Dsj3XLhA6fMrQYgh8OLSwYB2MUOQP3SbJkXqJVA=; b=F25wjcbomtI84IuH63y3uCwMe59HV5IiwauKpiD0sHsUdXIpr1gs8FLbLTlt7g7NNTucDn pxXrgcizjcEAVg5AzEb65bkVPcHPq0tEww1Mu2shf//a/rTUEZQSXBZS3zxgeS0OdkZFag 2sqexAC7GHWcCfQQUcgenQ5DS7xbtiM= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-209-5AZkLhtIPKuNyQ2vIHZDYA-1; Tue, 14 Oct 2025 08:58:07 -0400 X-MC-Unique: 5AZkLhtIPKuNyQ2vIHZDYA-1 X-Mimecast-MFC-AGG-ID: 5AZkLhtIPKuNyQ2vIHZDYA_1760446686 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-3f030846a41so3894268f8f.2 for ; Tue, 14 Oct 2025 05:58:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760446686; x=1761051486; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=o+P2Dsj3XLhA6fMrQYgh8OLSwYB2MUOQP3SbJkXqJVA=; b=Te1XYFK9iqeV4NFKAqaO/VBwAcowhWN7dFPtgh0XiPrJa/eM0kBbmA8VeWlLpcrlC5 uSNPQ6ChD9cUh6xFQdnX4SUT9GSTLBJZn8bQkCCo4YyksTFPitUpkdsT+9PFrcZnne3+ 7aUbh8GwaNoPYKRAEvBp3h7M9OLc13GO+sbcobbjLHQGNnIzLz7eocEeXJJR6M9JS/zh gK+8kjopQUc85738Ut9MEcYaeWnbwVk85GD4Ehojg5b043/ioYK+WwfxnBmNc98Yn2Gc YvsBXkQjMufYl++3offSui2gvCFrgmTmHfd1pyYQsKm+qOtM/y+hX9B2hBLeeLpIcb1Q 0nfQ== X-Forwarded-Encrypted: i=1; AJvYcCW7FJIe3+lDkL+bNZVr706tgGYOGI/YnppZXg++9Ssbw5DeQ8FGTxgE52bJ6uvDY2leQIO9gKdT1IDFOA==@lists.infradead.org X-Gm-Message-State: AOJu0YwDznpJKRKp8LXp99W4FscshcebDFmZZZaJrqB6+P1/lr1Eovie /DFidMWvbWSrM/XoO2A5eVvsXiSF8jcYIgyKtXByyzBeWVwcVXVYq4ouwIpwmAd4JOHDuNBI2Yt wMH7juK4dEbv8vvCJsQNQ7zCPQCJzmpQ2Lq6yIkktZhLselCMpGYyI8OI/JVEht0t0Akjzw== X-Gm-Gg: ASbGncsFJ5iiUcoIiQgV4eke0H8gBAqihcnaA1L1I7CgZME9+tFPZnW5A3OSPs2mhYq RGoWSglezu3vKsmthP6tc+jwsE1vzcwwfmdRRhb7SbyzP+un6ZTVZ7X8q5grK38qHMTLaIYNRjZ T6rg1D7jyenWpI53Ft1Y5WHDxgxLYBRmJ8R9BQ5OQWMN88G62jUvBD++pJQXN7huvj4r3DjpQHc eYtbUgZDgyqNJzg+Hg4cr2KuOAYpfwoVYZr4h22n1ZJP69vM9JoKxsOi6ZMoBYJwMjASYpYO5Uk BODZaRN7Y9A/rYMVgu1w8J5AFTnKxNkzWMMWkVbGKBcNlcbBomdDRWGv8f9dO0moLYvJdhFx X-Received: by 2002:a05:6000:1888:b0:401:c52f:62de with SMTP id ffacd0b85a97d-42666ac39fdmr14487407f8f.12.1760446686046; Tue, 14 Oct 2025 05:58:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHAh3YZ5oKpPdr7WASiDkPJn2IILu8/Rh+37A13TS4n2FwBRRVC0ByNWYf0Uu33Aqxt+5Ldeg== X-Received: by 2002:a05:6000:1888:b0:401:c52f:62de with SMTP id ffacd0b85a97d-42666ac39fdmr14487377f8f.12.1760446685024; Tue, 14 Oct 2025 05:58:05 -0700 (PDT) Received: from jlelli-thinkpadt14gen4.remote.csb ([176.206.13.103]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-426ce582abcsm23624651f8f.17.2025.10.14.05.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Oct 2025 05:58:04 -0700 (PDT) Date: Tue, 14 Oct 2025 14:58:01 +0200 From: Juri Lelli To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, rcu@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Arnaldo Carvalho de Melo , Josh Poimboeuf , Paolo Bonzini , Arnd Bergmann , Frederic Weisbecker , "Paul E. McKenney" , Jason Baron , Steven Rostedt , Ard Biesheuvel , Sami Tolvanen , "David S. Miller" , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Uladzislau Rezki , Mathieu Desnoyers , Mel Gorman , Andrew Morton , Masahiro Yamada , Han Shen , Rik van Riel , Jann Horn , Dan Carpenter , Oleg Nesterov , Clark Williams , Yair Podemsky , Marcelo Tosatti , Daniel Wagner , Petr Tesarik Subject: Re: [PATCH v6 00/29] context_tracking,x86: Defer some IPIs until a user->kernel transition Message-ID: References: <20251010153839.151763-1-vschneid@redhat.com> MIME-Version: 1.0 In-Reply-To: <20251010153839.151763-1-vschneid@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: t6ZmSqY7_vVhHn2_SHK-hg8OAE0LVqrNMtkKRZiS5og_1760446686 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251014_055811_124635_1F99B4CB X-CRM114-Status: GOOD ( 18.31 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Hello, On 10/10/25 17:38, Valentin Schneider wrote: ... > Performance > +++++++++++ > > Tested by measuring the duration of 10M `syscall(SYS_getpid)` calls on > NOHZ_FULL CPUs, with rteval (hackbench + kernel compilation) running on the > housekeeping CPUs: > > o Xeon E5-2699: base avg 770ns, patched avg 1340ns (74% increase) > o Xeon E7-8890: base avg 1040ns, patched avg 1320ns (27% increase) > o Xeon Gold 6248: base avg 270ns, patched avg 273ns (.1% increase) > > I don't get that last one, I did spend a ridiculous amount of time making sure > the flush was being executed, and AFAICT yes, it was. What I take out of this is > that it can be a pretty massive increase in the entry overhead (for NOHZ_FULL > CPUs), and that's something I want to hear thoughts on > > Noise > +++++ > > Xeon E5-2699 system with SMToff, NOHZ_FULL, isolated CPUs. > RHEL10 userspace. > > Workload is using rteval (kernel compilation + hackbench) on housekeeping CPUs > and a dummy stay-in-userspace loop on the isolated CPUs. The main invocation is: > > $ trace-cmd record -e "ipi_send_cpumask" -f "cpumask & CPUS{$ISOL_CPUS}" \ > -e "ipi_send_cpu" -f "cpu & CPUS{$ISOL_CPUS}" \ > rteval --onlyload --loads-cpulist=$HK_CPUS \ > --hackbench-runlowmem=True --duration=$DURATION > > This only records IPIs sent to isolated CPUs, so any event there is interference > (with a bit of fuzz at the start/end of the workload when spawning the > processes). All tests were done with a duration of 6 hours. > > v6.17 > o ~5400 IPIs received, so about ~200 interfering IPI per isolated CPU > o About one interfering IPI just shy of every 2 minutes > > v6.17 + patches > o Zilch! Nice. :) About performance, can we assume housekeeping CPUs are not affected by the change (they don't seem to use the trick anyway) or do we want/need to collect some numbers on them as well just in case (maybe more throughput oriented)? Thanks, Juri _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv