Many thanks for looking into this Dustin. I did cat the files as shown below.
tony@system76:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq 800000 tony@system76:~$ cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq 800000 tony@system76:~$ cat /sys/devices/system/cpu/cpu2/cpufreq/scaling_cur_freq 800000 tony@system76:~$ cat /sys/devices/system/cpu/cpu3/cpufreq/scaling_cur_freq 800000 tony@system76:~$ The value for each cpu is indeed 800 MHz ... as reported by BYOBU :) I appreciate the explanation. Cheers Tony -- Tony Crawford Email: [email protected] Mobile: 256-479-9124 On Thu, 2011-09-08 at 18:08 +0000, Dustin Kirkland wrote: > Hi Tony, > > Thanks for the report. > > Actually, I disagree a bit with your analysis. > > Byobu actually tries to read the instantaneous CPU frequency from > /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq. Cat that file > and take a look at the value. > > Your CPU supports CPU frequency scaling, which allows the kernel to > scale your CPU speed up and down from 800MHz to 2.3GHz, saving power and > battery by running at a lower frequency whenever possible. > > Look at your /proc/cpuinfo, and you can actually see: > cpu MHz : 800.000 > > If your system starts getting loaded down, or perhaps you enable your > CPU governor to performance mode, you'll see Byobu detect that your CPU > speed increases, and you can watch that dynamically in Byobu ;-) > > Cheers, > Dustin > > > ** Changed in: byobu (Ubuntu Natty) > Status: Confirmed => Invalid > > ** Changed in: byobu (Ubuntu Oneiric) > Status: Incomplete => Invalid > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/843197 > > Title: > BYOBU v3.33 Shows Wrong CPU Speed > > Status in “byobu” package in Ubuntu: > Invalid > Status in “byobu” source package in Natty: > Invalid > Status in “byobu” source package in Oneiric: > Invalid > Status in “byobu” source package in p-series: > Invalid > > Bug description: > I'm running Ubuntu 11.04 on an quad core i5 system. The system monitor > shows each CPU is running at 2.30 GHz but BYOBU shows 4x0.8GHz. I > think the fix for BUG 675442 that was made some time ago may have a > couple of problems: > > 1) The processors are noted as 0, 1, 2 & 3 and it appears that BYOBU is > dividing the actual CPU speed by 3 instead of 4 > -> 2.30 / 3 = 0.76666666 (which is rounded to 0.8) > > 2) However, I think the idea of dividing by the number of processors > may not be correct... at least not for my configuration. > > FYI, a copy of my /proc/cpuinfo file is shown below. I noticed that > the first three processors show a cpu speed of 800 MHz but the final > cpu shows a speed of 2301 MHz. > > I hope this is helpful. > > Cheers > Tony > ======================= > tony@system76:/proc$ cat cpuinfo > processor : 0 > vendor_id : GenuineIntel > cpu family : 6 > model : 42 > model name : Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz > stepping : 7 > cpu MHz : 800.000 > cache size : 3072 KB > physical id : 0 > siblings : 4 > core id : 0 > cpu cores : 2 > apicid : 0 > initial apicid : 0 > fpu : yes > fpu_exception : yes > cpuid level : 13 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat > pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm > constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc > aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr > pdcm sse4_1 sse4_2 x2apic popcnt xsave avx lahf_lm ida arat epb xsaveopt pln > pts dts tpr_shadow vnmi flexpriority ept vpid > bogomips : 4590.10 > clflush size : 64 > cache_alignment : 64 > address sizes : 36 bits physical, 48 bits virtual > power management: > > processor : 1 > vendor_id : GenuineIntel > cpu family : 6 > model : 42 > model name : Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz > stepping : 7 > cpu MHz : 800.000 > cache size : 3072 KB > physical id : 0 > siblings : 4 > core id : 1 > cpu cores : 2 > apicid : 2 > initial apicid : 2 > fpu : yes > fpu_exception : yes > cpuid level : 13 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat > pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm > constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc > aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr > pdcm sse4_1 sse4_2 x2apic popcnt xsave avx lahf_lm ida arat epb xsaveopt pln > pts dts tpr_shadow vnmi flexpriority ept vpid > bogomips : 4589.58 > clflush size : 64 > cache_alignment : 64 > address sizes : 36 bits physical, 48 bits virtual > power management: > > processor : 2 > vendor_id : GenuineIntel > cpu family : 6 > model : 42 > model name : Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz > stepping : 7 > cpu MHz : 800.000 > cache size : 3072 KB > physical id : 0 > siblings : 4 > core id : 0 > cpu cores : 2 > apicid : 1 > initial apicid : 1 > fpu : yes > fpu_exception : yes > cpuid level : 13 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat > pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm > constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc > aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr > pdcm sse4_1 sse4_2 x2apic popcnt xsave avx lahf_lm ida arat epb xsaveopt pln > pts dts tpr_shadow vnmi flexpriority ept vpid > bogomips : 4589.57 > clflush size : 64 > cache_alignment : 64 > address sizes : 36 bits physical, 48 bits virtual > power management: > > processor : 3 > vendor_id : GenuineIntel > cpu family : 6 > model : 42 > model name : Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz > stepping : 7 > cpu MHz : 2301.000 > cache size : 3072 KB > physical id : 0 > siblings : 4 > core id : 1 > cpu cores : 2 > apicid : 3 > initial apicid : 3 > fpu : yes > fpu_exception : yes > cpuid level : 13 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat > pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm > constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc > aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr > pdcm sse4_1 sse4_2 x2apic popcnt xsave avx lahf_lm ida arat epb xsaveopt pln > pts dts tpr_shadow vnmi flexpriority ept vpid > bogomips : 4589.57 > clflush size : 64 > cache_alignment : 64 > address sizes : 36 bits physical, 48 bits virtual > power management: > > To manage notifications about this bug go to: > https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/843197/+subscriptions -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/843197 Title: BYOBU v3.33 Shows Wrong CPU Speed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/843197/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
