Hi mav. On Sun, 12 Sep 2010 13:00:22 +0300 Alexander Motin <mav_at_FreeBSD.org> wrote: > `sysctl -a` is a bad tool to estimate C-states usage. It causes a lot of > context switches, making data dirty. To get more precise data, try: > sysctl hw.acpi.cpu.cx_lowest=C2 && sleep 10 && sysctl dev.cpu.0.cx_usage > dev.cpu.1.cx_usage dev.cpu.2.cx_usage dev.cpu.3.cx_usage I tried, got following results: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # sysctl hw.acpi.cpu.cx_lowest=C2 && sleep 10 && sysctl dev.cpu.0.cx_usage dev.cpu.1.cx_usage dev.cpu.2.cx_usage dev.cpu.3.cx_usage hw.acpi.cpu.cx_lowest: C3 -> C2 dev.cpu.0.cx_usage: 2.37% 97.62% last 3028us dev.cpu.1.cx_usage: 0.87% 99.12% last 4379us dev.cpu.2.cx_usage: 0.54% 99.45% last 14314us dev.cpu.3.cx_usage: 1.36% 98.63% last 16982us # sysctl hw.acpi.cpu.cx_lowest=C2 && sleep 10 && sysctl dev.cpu.0.cx_usage dev.cpu.1.cx_usage dev.cpu.2.cx_usage dev.cpu.3.cx_usage hw.acpi.cpu.cx_lowest: C2 -> C2 dev.cpu.0.cx_usage: 1.82% 98.17% last 2672us dev.cpu.1.cx_usage: 0.71% 99.28% last 3413us dev.cpu.2.cx_usage: 0.00% 100.00% last 13543us dev.cpu.3.cx_usage: 2.00% 97.99% last 16190us - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - That's perfect! Thank you. -- Norikatsu Shigemura <nork_at_FreeBSD.org>Received on Sun Sep 12 2010 - 08:20:14 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:07 UTC