Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Check CPU for throttling
Date: Tue, 10 May 2011 20:31:14
Message-Id: 201105102130.23306.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Re: Check CPU for throttling by Mark Knecht
1 On Tuesday 10 May 2011 19:05:08 Mark Knecht wrote:
2 > On Tue, May 10, 2011 at 9:38 AM, Bill Longman <bill.longman@×××××.com>
3 wrote:
4 > > On 05/10/2011 09:34 AM, James wrote:
5 > >> Alan McKinnon <alan.mckinnon <at> gmail.com> writes:
6 > >>> otherwise. Just enable ondemand, disable everything else, and et the
7 > >>> kernel
8 > >>
9 > >>> get on with doing what it does best:
10 > >> So this is what you are saying?
11 > >>
12 > >>
13 > >> [*] CPU Frequency scaling │ │
14 > >> │ │ [*] Enable CPUfreq debugging │ │
15 > >> │ │ <*> CPU frequency translation statistics │ │
16 > >> │ │ [ ] CPU frequency translation statistics details │ │
17 > >> │ │ Default CPUFreq governor (performance) ---> │ │
18 > >> │ │ -*- 'performance' governor │ │
19 > >> │ │ < > 'powersave' governor │ │
20 > >> │ │ < > 'userspace' governor for userspace frequency scaling│ │
21 > >> │ │ <*> 'ondemand' cpufreq policy governor │ │
22 > >> │ │ < > 'conservative' cpufreq governor │ │
23 > >> │ │ *** CPUFreq processor drivers *** │ │
24 > >> │ │ < > Processor Clocking Control interface driver │ │
25 > >> │ │ <*> ACPI Processor P-States driver │ │
26 > >> │ │ < > AMD Opteron/Athlon64 PowerNow! │ │
27 > >> │ │ < > Intel Enhanced SpeedStep (deprecated) │ │
28 > >> │ │ < > Intel Pentium 4 clock modulation
29 > >
30 > > Yes but no. Yes, those are the correct choices, but the default governor
31 > > should be ondemand.
32 >
33 > Or in the case of the OP who is brave enough (or silly enough?) to
34 > risk the long term reliability of his CPU running it with no fan,
35 > possibly choose powersave with a specific low clock rate as the
36 > default and then switch to either ondemand or conservative manually
37 > when he needs more performance. In a machine such as he's playing with
38 > I wonder if he really wants ondemand (jumps to max and then slows down
39 > over time) vs conservative which more slowly ramps up the clock rate
40 > if the job at hand takes more time.
41 >
42 > It's all a trade off of performance vs power & heat.
43 >
44 > On my 12 thread server I've played with these two and frankly don't
45 > see a lot of difference doing any large job. They are both a bot
46 > slower than running performance, but I save a lot of power (and over
47 > time money) using them so I'm happy.
48
49 I just checked on a Pentium 4 32bit box and I couldn't find any declaration
50 about cpufreq under /sys/devices/system/cpu/cpu0/
51
52 I have enabled ondemand since I first built a kernel for that machine, but it
53 seems to have been pegged at 3.4GHz even when the plasma thingy shows minimum
54 CPU load.
55
56 grep MHz /proc/cpuinfo
57 cpu MHz : 3401.054
58 cpu MHz : 3401.054
59
60 ls -la /sys/devices/system/cpu/cpu0/
61 total 0
62 drwxr-xr-x 6 root root 0 May 10 18:51 .
63 drwxr-xr-x 6 root root 0 May 10 18:51 ..
64 drwxr-xr-x 4 root root 0 May 10 21:04 cache
65 drwxr-xr-x 2 root root 0 May 10 21:04 microcode
66 drwxr-xr-x 2 root root 0 May 10 21:04 thermal_throttle
67 drwxr-xr-x 2 root root 0 May 10 21:04 topology
68
69 cat /proc/cpuinfo
70 processor : 0
71 vendor_id : GenuineIntel
72 cpu family : 15
73 model : 3
74 model name : Intel(R) Pentium(R) 4 CPU 3.40GHz
75 stepping : 4
76 cpu MHz : 3401.054
77 cache size : 1024 KB
78 physical id : 0
79 siblings : 2
80 core id : 0
81 cpu cores : 1
82 apicid : 0
83 initial apicid : 0
84 fdiv_bug : no
85 hlt_bug : no
86 f00f_bug : no
87 coma_bug : no
88 fpu : yes
89 fpu_exception : yes
90 cpuid level : 5
91 wp : yes
92 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
93 pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pebs
94 bts pni dtes64 monitor ds_cpl cid xtpr
95 bogomips : 6802.10
96 clflush size : 64
97 cache_alignment : 128
98 address sizes : 36 bits physical, 32 bits virtual
99 power management:
100
101 Same with the other virtual core, "power management" is blank.
102
103
104 Am I missing something in my kernel or is my MoBo/CPU feature poor?
105
106 cat .config | grep CPU_FREQ
107 CONFIG_CPU_FREQ=y
108 CONFIG_CPU_FREQ_TABLE=y
109 # CONFIG_CPU_FREQ_DEBUG is not set
110 CONFIG_CPU_FREQ_STAT=y
111 CONFIG_CPU_FREQ_STAT_DETAILS=y
112 # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
113 # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
114 CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
115 # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
116 CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
117 # CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
118 CONFIG_CPU_FREQ_GOV_USERSPACE=y
119 CONFIG_CPU_FREQ_GOV_ONDEMAND=y
120 # CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
121 --
122 Regards,
123 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Re: Check CPU for throttling Bill Longman <bill.longman@×××××.com>