Re: [PATCH] powerpc/paravirt: Improve vcpu_is_preempted

2023-10-17 Thread Aboorva Devarajan
On Mon, 2023-10-09 at 10:47 +0530, Srikar Dronamraju wrote: Hi Srikar, Benchmarked this patch on baremetal POWER9 node by launching KVM to observe the improvements achieved in KVM with the patched kernel. Below, you can find the schbench latency result comparision. System was running on SMT4

Re: [RFC v3 0/2] CPU-Idle latency selftest framework

2023-10-11 Thread Aboorva Devarajan
On Mon, 2023-09-25 at 10:36 +0530, Aboorva Devarajan wrote: Gentle ping to check if there are any feedback or comments on this patch-set. Thanks Aboorva > On Mon, 2023-09-11 at 11:06 +0530, Aboorva Devarajan wrote: > > CC'ing CPUidle lists and maintainers, > > Patch Summary: &g

Re: [RFC v3 0/2] CPU-Idle latency selftest framework

2023-09-24 Thread Aboorva Devarajan
On Mon, 2023-09-11 at 11:06 +0530, Aboorva Devarajan wrote: CC'ing CPUidle lists and maintainers, Patch Summary: The patchset introduces a kernel module and userspace driver designed for estimating the wakeup latency experienced when waking up from various CPU idle states. It primarily measures

Re: [RFC v3 1/2] powerpc/cpuidle: cpuidle wakeup latency based on IPI and timer events

2023-09-21 Thread Aboorva Devarajan
On Wed, 2023-09-13 at 08:54 +1000, Michael Ellerman wrote: > Aboorva Devarajan writes: > > From: Pratik R. Sampat > > > > Introduce a mechanism to fire directed IPIs from a source CPU to a > > specified target CPU and measure the time incurred on waking up the

[RFC v3 2/2] powerpc/selftest: Add support for cpuidle latency measurement

2023-09-10 Thread Aboorva Devarajan
ftest/powerpc/cpuidle_latency/ $ sudo ./cpuidle_latency.sh Reviewed-by: Srikar Dronamraju Signed-off-by: Pratik R. Sampat Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/powerpc/Makefile | 1 + .../powerpc/cpuidle_latency/.gitignore| 2 + .../powerpc/cpuidle_lat

[RFC v3 1/2] powerpc/cpuidle: cpuidle wakeup latency based on IPI and timer events

2023-09-10 Thread Aboorva Devarajan
to wakeup the CPU. Define a simple debugfs interface that allows for adjusting the settings to trigger IPI and timer events on a designated CPU, and to observe the resulting cpuidle wakeup latencies. Reviewed-by: Srikar Dronamraju Signed-off-by: Pratik R. Sampat Signed-off-by: Aboorva Devarajan

[RFC v3 0/2] CPU-Idle latency selftest framework

2023-09-10 Thread Aboorva Devarajan
988 # Observed Avg timeout diff(ns) - State stop5: 959137 Aboorva Devarajan (2): powerpc/cpuidle: cpuidle wakeup latency based on IPI and timer events powerpc/selftest: Add support for cpuidle latency measurement arch/powerpc/Kconfig.debug| 10 + arch/powerpc/kernel/Makef

[RFC v2 2/2] powerpc/selftest: Add support for cpuidle latency measurement

2023-08-28 Thread Aboorva Devarajan
ftest/powerpc/cpuidle_latency/ $ sudo ./cpuidle_latency.sh Signed-off-by: Pratik R. Sampat Signed-off-by: Aboorva Devarajan Reviewed-by: Shrikanth Hegde --- tools/testing/selftests/powerpc/Makefile | 1 + .../powerpc/cpuidle_latency/.gitignore| 2 + .../powerpc/cpuidle_lat

[RFC v2 0/2] CPU-Idle latency selftest framework

2023-08-28 Thread Aboorva Devarajan
137 Aboorva Devarajan (2): powerpc/cpuidle: cpuidle wakeup latency based on IPI and timer events powerpc/selftest: Add support for cpuidle latency measurement arch/powerpc/Kconfig.debug| 10 + arch/powerpc/kernel/Makefile | 1 + arch/powerpc/ker

[RFC v2 1/2] powerpc/cpuidle: cpuidle wakeup latency based on IPI and timer events

2023-08-28 Thread Aboorva Devarajan
to wakeup the CPU. Define a simple debugfs interface that allows for adjusting the settings to trigger IPI and timer events on a designated CPU, and to observe the resulting cpuidle wakeup latencies. Signed-off-by: Pratik R. Sampat Signed-off-by: Aboorva Devarajan Reviewed-by: Shrikanth Hegde

CPU Hotplug optimization: offcputime analysis

2023-03-20 Thread Aboorva Devarajan
CPU Hotplug smt=off operation on a maximum configuration ppc64le system with 1920 logical CPUs takes more than 59 minutes to complete. Several attempts made to reduce the time consumption of CPU hotplug operation is discussed in this thread below:

[PATCH v2] powerpc/cpuidle: Set CPUIDLE_FLAG_POLLING for snooze state

2022-11-14 Thread Aboorva Devarajan
51bf98c6 ("cpuidle: Eliminate the CPUIDLE_DRIVER_STATE_START symbol") - Fix wakeup stats in governor for polling states commit 5f26bdceb9c0 ("cpuidle: menu: Fix wakeup statistics updates for polling state") Signed-off-by: Aboorva Devarajan --- Changelog: (v1 -> v2)

[PATCH] powerpc/cpuidle: Set CPUIDLE_FLAG_POLLING for snooze state

2022-11-14 Thread Aboorva Devarajan
commit dc2251bf98c6 ("cpuidle: Eliminate the CPUIDLE_DRIVER_STATE_START symbol") - Fix wakeup stats in governor for polling states commit 5f26bdceb9c0 ("cpuidle: menu: Fix wakeup statistics updates for polling state") Signed-off-by: Aboorva Devarajan --- drivers/cpuidle/cpui