From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 992E13E7BCB for ; Wed, 20 May 2026 15:27:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779290828; cv=none; b=iqsVwXrBpD74eoPMD4Nh+RPQ13uwrSWMO7Nys5nFtrP+MrEHH8CGjpmEzpEBQXsF3bkVAveLy2W+eIIgsLlqQHVfsRjOgaMBK/jp0esj2cCX3qPZ5LN9LFs8FqPZQbI1Eg/GO8Q0dBlG5OYVto9eEbwb9NO4Gjw92jdmUP8YqQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779290828; c=relaxed/simple; bh=PXWoi2ElsOyBm7oeqSP3aIDIiN8DY32RlFOoh32kZn8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=kY22Re5Q7JDVolpNPqEGrXQnWehIv+l3oxGVGYSq/W0c5QsV2LM56ucoqBIEq3FOR98PnVjjYKz3Ed7Ll9q2mcTng2iOjD3fQ4UeXG9FG1gVA1nZtAXhGNZDEWIbmMc7/3z8xLszNbU8aW2zJnUX83RaGX5bE64drVcuUSgnJ7A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c54Z3hUO; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="c54Z3hUO" Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 55BE21F000E9; Wed, 20 May 2026 15:27:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1779290827; bh=TD3EeUF6TJcX817jGMoPojr9Lt7Lw1UX+RsXjRpsCyM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=c54Z3hUOk3m9d84IQKNLMJT8nQfy7Jh6l58erdP5RLo0Alu38HMml44CLM2wQkqZM MMU8PwpDJHY+WhBaWnXppFE4ESq6HJ4dacHNJZ5KTDhoO1UwWZtSdfJgjynY8PQwB/ I+X8RxXXpTrXYS668gsNH7wsRTCwRGZ7WCxHUZzMNHSlHic9HL3SB5gaf5YTKg6Dr7 O246WW+p61NlDsMW1UORllj43VCiOecUJhOnFmtz5MTHP73heiavoXWLgxC9utHKQG BQFMDUURkUGGx+L8TkaOJ3BopJjnKOe9TefSueMcDkwN8NBtpJQdqjylgoyGLjr4yR /8+ZWAc3aiBAA== From: Thomas Gleixner To: Shrikanth Hegde , LKML Cc: x86@kernel.org, Michael Kelley , Dmitry Ilvokhin , Radu Rendec , Jan Kiszka , Kieran Bingham , Florian Fainelli , Marc Zyngier Subject: Re: [patch V6 00/16] Improve /proc/interrupts further In-Reply-To: References: <20260517194421.705253664@kernel.org> Date: Wed, 20 May 2026 17:27:03 +0200 Message-ID: <87wlwyw188.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Shrikanth! On Wed, May 20 2026 at 02:48, Shrikanth Hegde wrote: > On 5/18/26 1:31 AM, Thomas Gleixner wrote: > > Ran perf stat -r 1000 cat /proc/interrupts > tmp.txt > and Observed minimal improvement with series. Can you redirect it to /dev/null instead to take the file operations out of the picture? > Base: > 1,313,263 cycles:HG # 4.063 GHz ( +- 0.17% ) > 2,172,511 instructions:HG # 1.65 insn per cycle ( +- 0.05% ) > v6 series: > 1,224,666 cycles:HG # 4.058 GHz ( +- 0.25% ) > 1,667,435 instructions:HG # 1.36 insn per cycle ( +- 0.08% ) Interesting. The number of instructions goes down by 20+%, but at the same time IPC drops too. > Looking at powerpc arch_show_interrupts, > It could use the similar set of optimizations. > - move to array based > - use irq_proc_emit_counts > - some interrupts such as machine check, is hardly set. set skip_vector. > > > Copilot suggested below diff to quickly try irq_proc_emit_counts integration. > It showed little gains compared to v6. So it maybe worth fixing that in the > right way. (similar to x86 stuff you have done) > > Performance counter stats for 'cat /proc/interrupts' (1000 runs): > > 0.29 msec task-clock:HG # 0.586 CPUs utilized ( +- 0.22% ) > 0 context-switches:HG # 0.000 /sec > 0 cpu-migrations:HG # 0.000 /sec > 44 page-faults:HG # 153.067 K/sec ( +- 0.03% ) > 1,166,567 cycles:HG # 4.058 GHz ( +- 0.22% ) > 1,475,365 instructions:HG # 1.26 insn per cycle ( +- 0.09% ) > 249,051 branches:HG # 866.397 M/sec ( +- 0.10% ) > 5,104 branch-misses:HG # 2.05% of all branches ( +- 0.33% ) > > 0.000490211 +- 0.000000992 seconds time elapsed ( +- 0.20% ) <<< 3-4% improvements. Again IPC drops ....