Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376565 - sys-power/cpufrequtils-008-r1: 'cpufreq-set -g performance -r' does not set all CPUs
Summary: sys-power/cpufrequtils-008-r1: 'cpufreq-set -g performance -r' does not set a...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 07:46 UTC by Juergen Rose
Modified: 2011-08-30 20:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2011-07-27 07:46:22 UTC
'cpufreq-set -g performance -r' set only the first CPU into performance mode:

root@caiman:/root(12)# grep "model name" /proc/cpuinfo 
model name      : AMD Phenom(tm) II X6 1090T Processor
model name      : AMD Phenom(tm) II X6 1090T Processor
model name      : AMD Phenom(tm) II X6 1090T Processor
model name      : AMD Phenom(tm) II X6 1090T Processor
model name      : AMD Phenom(tm) II X6 1090T Processor
model name      : AMD Phenom(tm) II X6 1090T Processor

root@caiman:/root(13)# cpufreq-set -g performance -r

root@caiman:/root(15)# cpufreq-info | grep "The governor"
                  The governor "performance" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
Comment 1 Juergen Rose 2011-07-27 07:46:36 UTC
root@caiman:/root(16)# emerge --info
Portage 2.1.10.7 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r4, 3.0.0-gentoo x86_64)
=================================================================
System uname: Linux-3.0.0-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.0.3
Timestamp of tree: Wed, 27 Jul 2011 06:00:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r2, 3.2-r2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo sunrise science x11 bicatali java-overlay x-portage x-cpan x-g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.1 cadsoft"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/science /var/lib/layman/x11 /var/lib/layman/bicatali /var/lib/layman/java-overlay /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit R X Xaw3d a52 aac abiword acl acpi admin afs alsa amd64 amrr ao apache2 applet archive arpack asf aspell assistant audacious audiofile automap automount bash-completion berkdb blas blast bluetooth boo boost bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt css cups curl cxx daap db dbase dbi dbm dbus declarative designer devhelp device-mapper dga dia djvu doc dri ds2490 ds9097 ds9097u dv dvb dvd dvdr dvi dynamicplugin eds elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras fame ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpx fts3 fuse galago gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp ginac git glade glib gml gmp gmtsuppl gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk gudev guile harness hddtemp hdf hdf5 hdri http httpd hvm hwdb iconv icq icu id3 imagemagick imap innodb inotify ipod ipv6 irda ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kdrive kerberos kpathsea kqemu kvm ladspa lame lapack latex latex3 lcms ldap lensfun libffi libgda libnotify libsamplerate lm_sensors lua lzo mad mail maildir mapnik math matroska mkl mmx mmxext mng modules mono moonlight motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numpy obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pam pcre pda pdf perl plotutils plugins png podcast policykit portaudio posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime readline reiserfs reports rle romio rpc rrdcgi rrdtool samba sasl science sdk sdl secure-delete semantic-desktop server session sip slang slp smbclient smp sms sndfile snmp soup sox speex spell sql sqlite sse sse2 sse4a ssl stlport subtitles subversion suexec svg svm swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs tgif theora threads thunderbird tidy tiff tk tools truetype udev unicode usb userlocales utempter v4l2 video virtualbox vorbis wav webdav webdav-serf webkit wmf wxwidgets xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc yaml zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Juergen Rose 2011-07-27 07:51:33 UTC
Perhaps the issue is limited to AMD processors:

root@orca:/root(1)# cpufreq-info | grep "The governor"
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use

root@orca:/root(2)# cpufreq-set -r -g performance

root@orca:/root(3)# cpufreq-info | grep "The governor"
                  The governor "performance" may decide which speed to use
                  The governor "performance" may decide which speed to use
                  The governor "performance" may decide which speed to use
                  The governor "performance" may decide which speed to use
                  The governor "performance" may decide which speed to use
                  The governor "performance" may decide which speed to use
                  The governor "performance" may decide which speed to use
                  The governor "performance" may decide which speed to use

root@orca:/root(4)# grep "model name" /proc/cpuinfo 
model name      : Intel(R) Xeon(R) CPU           W3520  @ 2.67GHz
model name      : Intel(R) Xeon(R) CPU           W3520  @ 2.67GHz
model name      : Intel(R) Xeon(R) CPU           W3520  @ 2.67GHz
model name      : Intel(R) Xeon(R) CPU           W3520  @ 2.67GHz
model name      : Intel(R) Xeon(R) CPU           W3520  @ 2.67GHz
model name      : Intel(R) Xeon(R) CPU           W3520  @ 2.67GHz
model name      : Intel(R) Xeon(R) CPU           W3520  @ 2.67GHz
model name      : Intel(R) Xeon(R) CPU           W3520  @ 2.67GHz
Comment 3 Agostino Sarubbo gentoo-dev 2011-07-27 14:17:53 UTC
does the precedent version set the governor for all cpu(s) ?
Comment 4 Agostino Sarubbo gentoo-dev 2011-07-27 14:19:07 UTC
anyway works on my stable machine
Comment 5 Matt Turner gentoo-dev 2011-07-29 23:01:36 UTC
I'm unable to reproduce with my quad-core SandyBridge system.
Comment 6 Juergen Rose 2011-07-30 09:53:45 UTC
Hi Matt,
to Comment 5: I suppose that the sandy bridge system is a Intel system, as I wrote in Comment 2 I have the issue only with AMD systems.
Comment 7 Juergen Rose 2011-07-30 15:55:58 UTC
I have the same behaviour with cpufrequtils-008:

root@caiman:/root(11)# genlop -t cpufrequtils | tail

     Wed Jul 13 16:02:52 2011 >>> sys-power/cpufrequtils-008
       merge time: 9 seconds.

     Sat Jul 23 08:39:28 2011 >>> sys-power/cpufrequtils-008-r1
       merge time: 8 seconds.

     Sat Jul 30 17:54:17 2011 >>> sys-power/cpufrequtils-008
       merge time: 9 seconds.

root@caiman:/root(12)# cpufreq-info | grep -e "driver\|The governor"
  driver: powernow-k8
                  The governor "ondemand" may decide which speed to use
  driver: powernow-k8
                  The governor "ondemand" may decide which speed to use
  driver: powernow-k8
                  The governor "ondemand" may decide which speed to use
  driver: powernow-k8
                  The governor "ondemand" may decide which speed to use
  driver: powernow-k8
                  The governor "ondemand" may decide which speed to use
  driver: powernow-k8
                  The governor "ondemand" may decide which speed to use

root@caiman:/root(13)# cpufreq-set -g performance -r

root@caiman:/root(14)# cpufreq-info | grep -e "The governor"
                  The governor "performance" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
Comment 8 Juergen Rose 2011-07-30 15:59:50 UTC
The issue occurs an all (two) my multicore AMD systems:

root@impala:/root(2)# grep "model name" /proc/cpuinfo 
model name      : AMD Phenom(tm) II X4 965 Processor
model name      : AMD Phenom(tm) II X4 965 Processor
model name      : AMD Phenom(tm) II X4 965 Processor
model name      : AMD Phenom(tm) II X4 965 Processor

root@impala:/root(4)# cpufreq-info | grep -e "driver\|The governor"
  driver: powernow-k8
                  The governor "ondemand" may decide which speed to use
  driver: powernow-k8
                  The governor "ondemand" may decide which speed to use
  driver: powernow-k8
                  The governor "ondemand" may decide which speed to use
  driver: powernow-k8
                  The governor "ondemand" may decide which speed to use

root@impala:/root(5)# cpufreq-set -g performance -r

root@impala:/root(6)# cpufreq-info | grep -e "The governor"
                  The governor "performance" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
Comment 9 Matt Turner gentoo-dev 2011-08-01 00:25:43 UTC
Juergen,

I emailed the cpufreq@vger.kernel.org mailing list looking for insight and CC'd you on it.

The cpufrequtils maintainer responded and wants the full output of cpufreq-info.
Comment 10 Juergen Rose 2011-08-01 12:03:37 UTC
I sent the full output of cpufreq-info to Dominik.
Comment 11 Juergen Rose 2011-08-01 12:27:59 UTC
'emerge gpsdrive' works now for me with gpsdrive-2.11-r3:

root@lynx:/root(12)# emerge -vD gpsdrive

...
 * 
>>> app-misc/gpsdrive-2.11-r3 merged.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

even with boost-1.42.0-r2.
Comment 12 Juergen Rose 2011-08-01 12:29:35 UTC
Sorry for the last comment, it went to the wrong tab.
Comment 13 Matt Turner gentoo-dev 2011-08-02 18:05:07 UTC
(In reply to comment #10)
> I sent the full output of cpufreq-info to Dominik.

Would have been better if you'd Replyed to all. I didn't get the email.
Comment 14 Juergen Rose 2011-08-03 10:25:43 UTC
Now I have the same problem also with an Intel processor:

root@moose:/root(24)# grep "model name" /proc/cpuinfo
model name      : Intel(R) Core(TM)2 Quad CPU    Q9650  @ 3.00GHz
model name      : Intel(R) Core(TM)2 Quad CPU    Q9650  @ 3.00GHz
model name      : Intel(R) Core(TM)2 Quad CPU    Q9650  @ 3.00GHz
model name      : Intel(R) Core(TM)2 Quad CPU    Q9650  @ 3.00GHz

root@moose:/root(25)#  cpufreq-info | grep "The governor"
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use

root@moose:/root(26)# cpufreq-set -g performance -r

root@moose:/root(28)#  cpufreq-info | grep "The governor"
                  The governor "performance" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use
                  The governor "ondemand" may decide which speed to use

root@moose:/root(29)# uname -a
Linux moose 3.0.0-gentoo #1 SMP Fri Jul 22 18:57:17 CEST 2011 x86_64 Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz GenuineIntel GNU/Linux
Comment 15 Juergen Rose 2011-08-03 10:44:33 UTC
Hi Matt,

After setting the governor with cpufreq-set -g performance -c1; cpufreq-set -g performance -c2; etc.
'cpufreq-info' says:

root@moose:/home/rose/Txt/src/Test/Octave(56)# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 160 us.
  hardware limits: 2.00 GHz - 3.00 GHz
  available frequency steps: 3.00 GHz, 2.00 GHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 2.00 GHz and 3.00 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 3.00 GHz.
  cpufreq stats: 3.00 GHz:50.86%, 2.00 GHz:49.14%  (5484)
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 160 us.
  hardware limits: 2.00 GHz - 3.00 GHz
  available frequency steps: 3.00 GHz, 2.00 GHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 2.00 GHz and 3.00 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 3.00 GHz.
  cpufreq stats: 3.00 GHz:50.83%, 2.00 GHz:49.17%  (5538)
analyzing CPU 2:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 2
  CPUs which need to have their frequency coordinated by software: 2
  maximum transition latency: 160 us.
  hardware limits: 2.00 GHz - 3.00 GHz
  available frequency steps: 3.00 GHz, 2.00 GHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 2.00 GHz and 3.00 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 3.00 GHz.
  cpufreq stats: 3.00 GHz:50.78%, 2.00 GHz:49.22%  (5934)
analyzing CPU 3:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 3
  CPUs which need to have their frequency coordinated by software: 3
  maximum transition latency: 160 us.
  hardware limits: 2.00 GHz - 3.00 GHz
  available frequency steps: 3.00 GHz, 2.00 GHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 2.00 GHz and 3.00 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 3.00 GHz.
  cpufreq stats: 3.00 GHz:50.79%, 2.00 GHz:49.21%  (5426)


The full output of cpufreq-info at caiman and impala I will send you, if I can reach them the next time, I hope this evening.

Regards Juergen
Comment 16 Juergen Rose 2011-08-03 22:54:52 UTC
-----------------   full cpufreq-info on caiman ---------------------------

root@caiman:/root(7)# cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 8.0 us.
  hardware limits: 800 MHz - 3.20 GHz
  available frequency steps: 3.20 GHz, 2.40 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: userspace, ondemand, performance
  current policy: frequency should be within 800 MHz and 3.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 1:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 8.0 us.
  hardware limits: 800 MHz - 3.20 GHz
  available frequency steps: 3.20 GHz, 2.40 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: userspace, ondemand, performance
  current policy: frequency should be within 800 MHz and 3.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 2:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 2
  CPUs which need to have their frequency coordinated by software: 2
  maximum transition latency: 8.0 us.
  hardware limits: 800 MHz - 3.20 GHz
  available frequency steps: 3.20 GHz, 2.40 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: userspace, ondemand, performance
  current policy: frequency should be within 800 MHz and 3.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 3:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 3
  CPUs which need to have their frequency coordinated by software: 3
  maximum transition latency: 8.0 us.
  hardware limits: 800 MHz - 3.20 GHz
  available frequency steps: 3.20 GHz, 2.40 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: userspace, ondemand, performance
  current policy: frequency should be within 800 MHz and 3.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 4:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 4
  CPUs which need to have their frequency coordinated by software: 4
  maximum transition latency: 8.0 us.
  hardware limits: 800 MHz - 3.20 GHz
  available frequency steps: 3.20 GHz, 2.40 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: userspace, ondemand, performance
  current policy: frequency should be within 800 MHz and 3.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 5:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 5
  CPUs which need to have their frequency coordinated by software: 5
  maximum transition latency: 8.0 us.
  hardware limits: 800 MHz - 3.20 GHz
  available frequency steps: 3.20 GHz, 2.40 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: userspace, ondemand, performance
  current policy: frequency should be within 800 MHz and 3.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).


root@caiman:/root(8)# uname -a
Linux caiman 3.0.0-gentoo #1 SMP Sat Jul 23 10:16:25 CEST 2011 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linux




-----------------   full cpufreq-info on impala ---------------------------

root@impala:/root(3)# cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 8.0 us.
  hardware limits: 800 MHz - 3.40 GHz
  available frequency steps: 3.40 GHz, 2.70 GHz, 2.20 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 3.40 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 1:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 8.0 us.
  hardware limits: 800 MHz - 3.40 GHz
  available frequency steps: 3.40 GHz, 2.70 GHz, 2.20 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 3.40 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 2:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 2
  CPUs which need to have their frequency coordinated by software: 2
  maximum transition latency: 8.0 us.
  hardware limits: 800 MHz - 3.40 GHz
  available frequency steps: 3.40 GHz, 2.70 GHz, 2.20 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 3.40 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 3:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 3
  CPUs which need to have their frequency coordinated by software: 3
  maximum transition latency: 8.0 us.
  hardware limits: 800 MHz - 3.40 GHz
  available frequency steps: 3.40 GHz, 2.70 GHz, 2.20 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 3.40 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).


root@impala:/root(4)# uname -a
Linux impala 3.0.0-gentoo #1 SMP Sat Jul 23 10:43:03 CEST 2011 x86_64 AMD Phenom(tm) II X4 965 Processor AuthenticAMD GNU/Linux
Comment 17 Matt Turner gentoo-dev 2011-08-17 23:12:38 UTC
So it seems as if this isn't actually a cpufrequtils bug (or a bug at all?)

Is it causing any problems?
Comment 18 Juergen Rose 2011-08-18 06:15:37 UTC
'mat cpufreq-set' says about option '-r':
      -r --related
              modify all hardware-related CPUs at the same time

What means 'hardware-related CPUs'? I assumed, that the Phenom X6 1090T has six hardware-related CPUs, the  Phenom X4 965 has four hardware-related CPUs and Intel Core Quad Q9650 has four hardware-related CPUs. At least the command:

root@impala:/root(7)# grep "model name" /proc/cpuinfo | head -n1; for d in /sys/devices/system/cpu/cpu? ; do echo "  --  d=$d  --"; for f in related_cpus ; do echo -n "    $f : ";  cat $d/cpufreq/$f; done ; done
model name      : AMD Phenom(tm) II X4 965 Processor
  --  d=/sys/devices/system/cpu/cpu0  --
    related_cpus : 0
  --  d=/sys/devices/system/cpu/cpu1  --
    related_cpus : 1
  --  d=/sys/devices/system/cpu/cpu2  --
    related_cpus : 2
  --  d=/sys/devices/system/cpu/cpu3  --
    related_cpus : 3

shows four CPUs for the Phenom X4 965. But it seems that, that 'cpufreq-set -r' sets the parameters for all CPUs only if /sys/devices/system/cpu/cpu*/cpufreq/ contains the information about all CPUs for each sys/devices/system/cpu/cpu? as for Intel Core Duo T8300 or Intel Xeon CPU W3520:

rose@orca:/home/rose(1)$ grep "model name" /proc/cpuinfo | head -n1; for d in /sys/devices/system/cpu/cpu? ; do echo "  --  d=$d  --"; for f in affected_cpus related_cpus ; do echo -n "    $f : ";  cat $d/cpufreq/$f; done ; done
model name      : Intel(R) Xeon(R) CPU           W3520  @ 2.67GHz
  --  d=/sys/devices/system/cpu/cpu0  --
    affected_cpus : 0
    related_cpus : 0 1 2 3 4 5 6 7
  --  d=/sys/devices/system/cpu/cpu1  --
    affected_cpus : 1
    related_cpus : 0 1 2 3 4 5 6 7
  --  d=/sys/devices/system/cpu/cpu2  --
    affected_cpus : 2
    related_cpus : 0 1 2 3 4 5 6 7
  --  d=/sys/devices/system/cpu/cpu3  --
    affected_cpus : 3
    related_cpus : 0 1 2 3 4 5 6 7
  --  d=/sys/devices/system/cpu/cpu4  --
    affected_cpus : 4
    related_cpus : 0 1 2 3 4 5 6 7
  --  d=/sys/devices/system/cpu/cpu5  --
    affected_cpus : 5
    related_cpus : 0 1 2 3 4 5 6 7
  --  d=/sys/devices/system/cpu/cpu6  --
    affected_cpus : 6
    related_cpus : 0 1 2 3 4 5 6 7
  --  d=/sys/devices/system/cpu/cpu7  --
    affected_cpus : 7
    related_cpus : 0 1 2 3 4 5 6 7

So it is for me until now not possible to set the governor for all cpus with one cpufreq-set statement for Intel Core Quad Q9650 and AMD Phenom. I can survive this, but it would be handy to have such a command. And as Dominik told, the comming cpupower command will have such a option.
Comment 19 Matt Turner gentoo-dev 2011-08-30 20:47:44 UTC
(In reply to comment #18)
> 'mat cpufreq-set' says about option '-r':
>       -r --related
>               modify all hardware-related CPUs at the same time
> 
> What means 'hardware-related CPUs'? I assumed, that the Phenom X6 1090T has six
> hardware-related CPUs, the  Phenom X4 965 has four hardware-related CPUs and
> Intel Core Quad Q9650 has four hardware-related CPUs. At least the command:

Right. I'm not sure why some CPUs' cores are controlled independently and others together.

Whatever the case is, it seems that cpufrequtils is only doing what it's told. This could mean that we misunderstand what exactly it's supposed to be doing, or there could be a bug in the kernel.

If previous kernels caused cpufrequtils to act differently, then it may be a bug.

I'm going to close this bug until a time when we have some better idea that this is actually a bug.