Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Sep 2010 19:20:07 +0900
From:      Norikatsu Shigemura <nork@FreeBSD.org>
To:        Alexander Motin <mav@FreeBSD.org>
Cc:        FreeBSD-Current <freebsd-current@FreeBSD.org>, nork@FreeBSD.org
Subject:   Re: CPU C-state storange on Panasonic TOUGH BOOK CF-R9
Message-ID:  <20100912192007.603e553e.nork@FreeBSD.org>
In-Reply-To: <4C8CA4B6.6090501@FreeBSD.org>
References:  <4C8C9D81.9090401@FreeBSD.org> <mailpost.1284284408.8681056.86646.mailing.freebsd.current@FreeBSD.cs.nctu.edu.tw> <4C8CA4B6.6090501@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi mav.

On Sun, 12 Sep 2010 13:00:22 +0300
Alexander Motin <mav@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@FreeBSD.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100912192007.603e553e.nork>