However with the current kernel 2.6.24 I get : tfoerste@n22 ~ $ sar -A | grep CPU -A4 14:20:02 CPU %user %nice %system %iowait %steal %idle 14:21:02 all 12.12 86.45 1.43 0.00 0.00 0.00 14:21:02 0 12.12 86.45 1.43 0.00 0.00 0.00 14:21:02 1 0.00 0.00 0.00 0.00 0.00 0.00 14:22:02 all 27.82 69.38 2.80 0.00 0.00 0.00 -- 14:20:02 CPU i000/s i001/s i002/s i009/s i011/s i012/s i014/s i015/s 14:21:02 0 1000.18 0.00 0.00 1.05 86.91 0.00 206.77 0.00 14:21:02 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 14:22:02 0 1000.17 0.33 0.00 1.05 55.03 0.00 184.93 0.00 14:22:02 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 with kernel 2.6.23 instead is sar works fine. tfoerste@n22 ~ $ uname -a Linux n22 2.6.24-gentoo #6 Sat Jan 26 22:41:00 CET 2008 i686 Intel(R) Pentium(R) M processor 1700MHz GenuineIntel GNU/Linux tfoerste@n22 ~ $ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 9 model name : Intel(R) Pentium(R) M processor 1700MHz stepping : 5 cpu MHz : 600.000 cache size : 1024 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe bts est tm2 bogomips : 1196.50 clflush size : 64 Reproducible: Always tfoerste@n22 ~ $ emerge --info Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo i686) ================================================================= System uname: 2.6.24-gentoo i686 Intel(R) Pentium(R) M processor 1700MHz Timestamp of tree: Mon, 28 Jan 2008 12:16:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mneisen.org/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://212.219.56.133/sites/www.ibiblio.org/gentoo/" LINGUAS="de en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa apache2 arts berkdb bitmap-fonts bluetooth bzip2 cairo cddb clamav cli cracklib crypt css cups dri dvd dvdr dvdread dynamicplugin encode exif fam fastbuild fortran gdbm gif gpm gtk iconv ipv6 isdnlog jai java javascript jimi joystick jpeg kde logrotate mad madwifi mbox midi mikmod mmap mmx mmxext mp3 mp4 mpeg mudflap mysql ncurses nls nntp nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png pppd python readline real reflection session spl sse sse2 ssl subversion svg tcpd tiff tk truetype truetype-fonts type1-fonts unicode userlocales vorbis wifi win32codecs wmf workbench x264 x86 xcomposite xml xorg xpm zlib" ALSA_CARDS="intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="vga radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Could you post your 2.6.24 kernel config as well, please? I am not at all sure this is a sysstat bug yet.
Created attachment 142040 [details] kernel .config
(In reply to comment #2) > Created an attachment (id=142040) [edit] > kernel .config Thanks. Nothing weird there. One thing though: did you clear out the old 8.0.2 generated files in /var/log/sa/? There may have been a format change that 8.0.3 didn't take into account. In other words, could you delete or move the old files and test again, please.
I run /etc/init.d/sysstat at default level which do this. I contacted upstream already both for this bug (and BTW some more times in the past for some problems I had handling sysstat files got from AIX sysstems with kSar). The only thing I'm wondering is that these settings : n22 /var/log/sa # cat /etc/sysconfig/sysstat # How long to keep log files (in days). # If value is greater than 28, then log files are kept in # multiple directories, one for each month. HISTORY=7 # Compress (using gzip) sa and sar files older than (in days): COMPRESSAFTER=10 seems not be be recognozed b/c I had more than the specified 7 files : n22 /var/log/sa # l sa09 sa10 sa11 sa12 sa13 sa14 sa15 sa16 sa17 sa18 sa19 sa20 sa21 sa22 sa23 sa24 sa25 sa26 sa27 sa28 sa29
Got from upstream: Toralf Förster wrote: > > tfoerste@n22 ~ $ cat /proc/stat > cpu 39432 218600 5652 2271 3931 261 85 0 0 > cpu0 39432 218600 5652 2271 3931 261 85 0 0 > intr 3025952 2654713 3720 0 0 0 0 0 0 0 4770 0 226949 648 0 135097 55 > ctxt 1508631 > btime 1201538786 > processes 15564 > procs_running 3 > procs_blocked 0 > tfoerste@n22 ~ $ mpstat -P ALL > Linux 2.6.24-gentoo-fgcs (n22) 01/28/08 > > 21:33:23 CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s > 21:33:23 all 14.57 80.92 2.09 1.45 0.10 0.03 0.00 0.84 222.68 > 21:33:23 0 14.57 80.92 2.09 1.45 0.10 0.03 0.00 0.84 222.68 > 21:33:23 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 > tfoerste@n22 ~ $ sar -P ALL 0 > Linux 2.6.24-gentoo-fgcs (n22) 01/28/08 > > 21:33:27 CPU %user %nice %system %iowait %steal %idle > 21:33:27 all 14.55 80.94 2.22 1.45 0.00 0.84 > 21:33:27 0 14.55 80.94 2.22 1.45 0.00 0.84 > 21:33:27 1 0.00 0.00 0.00 0.00 0.00 0.00 > > IMO, if you look into your /sys/devices/system/cpu/ directory, you will see two subdirectories named cpu0 and cpu1, which means that your machine actually has two processors. But as you can notice, the lines printed by mpstat and sar for processor 1 display only null statistics. Sar and mpstat manual pages say that "On SMP machines a processor that does not have any activity at all (0.00 for every field) is a disabled (offline) processor." So to put it in a nutshell : your machine has 2 processors, and one of them has been set offline. Regards, -- Sébastien Godard (sysstat <at> orange.fr) Help support sysstat...! Visit http://pagesperso-orange.fr/sebastien.godard/
Created attachment 142182 [details] content of /sys/devices/system/cpu/
(In reply to comment #6) > Created an attachment (id=142182) [edit] > content of /sys/devices/system/cpu/ Er, so are you saying that this bug is invalid or that Sébastien is wrong?
Got this reply from upstream: >OK, I had never seen such a configuration ;-) >Please can you try this version of sysstat which should fix the bug? > >Thanks. and version 8.0.4.1, but can't test it today.
tested upstream version 8.0.4.1 successfully :-)
reopening for 8.0.4.1 inclusion in portage please also try and get this marked stable before 2.6.24 goes stable
(In reply to comment #10) > reopening for 8.0.4.1 inclusion in portage > please also try and get this marked stable before 2.6.24 goes stable 1) This is a minor issue. 2) 8.0.4.1 was never published.