Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Apr 2012 13:28:41 +0300
From:      Ivan Klymenko <fidaj@ukr.net>
To:        Volodymyr Kostyrko <c.kworr@gmail.com>
Cc:        =?UTF-8?B?0JvRjtCx0L7QvNC40YAg0JPRgNC40LPQvtGA0L7Qsg==?= <nm.knife@gmail.com>, freebsd-stable@freebsd.org
Subject:   Re: lowest C-state changes
Message-ID:  <20120405132841.3c14625f@nonamehost.>
In-Reply-To: <4F7D70C7.60105@gmail.com>
References:  <CAHi1Jscju7t1PdZa7yjY6kKK0tAuqwc8GUidO3e8o=P__BybQA@mail.gmail.com> <4F7D70C7.60105@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
=D0=92 Thu, 05 Apr 2012 13:15:35 +0300
Volodymyr Kostyrko <c.kworr@gmail.com> =D0=BF=D0=B8=D1=88=D0=B5=D1=82:

> =D0=9B=D1=8E=D0=B1=D0=BE=D0=BC=D0=B8=D1=80 =D0=93=D1=80=D0=B8=D0=B3=D0=BE=
=D1=80=D0=BE=D0=B2 wrote:
> > Hello all, I am using FreeBSD 9.0-STABLE with Konstantin's patch
> > from March 22nd. Everything else is stock. However, after heavy
> > load, or compiling, C-states go to C1 as lowest. I think once they
> > pass the threshold, they don't go back.
> >
> > ThinkPad X220
> > i5 2520M with integrated Intel video
> >
> > In /etc/sysctl.conf
> > dev.cpu.0.cx_lowest=3DC3
> > dev.cpu.1.cx_lowest=3DC3
> > dev.cpu.2.cx_lowest=3DC3
> > dev.cpu.0.cx_lowest=3DC3
> >
> > In /etc/rc.conf
> > powerd_enable=3D"YES"
> > powerd_flags=3D"-a hiadaptive -b adaptive -i 85 -r 60 -p 100"
> >
> > However, once the  cores go to C1, they stay there forever, unless I
> > manually set them all back.
> >
> > Any idea on this?
> >
>=20
> Have you checked http://wiki.freebsd.org/TuningPowerConsumption?
>=20
> 1. For CX states to function correctly you better disable throttling
> and powerd. I also witnessed at least one machine that hitting any CX
> mode stops generate interrupts on APIC clock (I had to boot it with a
> mousee until I disabled APIC clocks).
>=20
> 2. You don't need to set each processor CX value, you only need to
> set:
>=20
> hw.acpi.cpu.cx_lowest=3DC3
>=20
> All cpu's will inherit default profile.
>=20

First need to see what state the processor supports the current
system
sysctl -a | grep cx_



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