Your message dated Mon, 06 Apr 2009 07:29:56 +0200
with message-id <1238995796.6813.4.ca...@hidalgo>
and subject line Re: [Pkg-xfce-devel] Bug#522711: xfce4-systemload-plugin: CPU 
monitor overstates CPU usage
has caused the Debian Bug report #522711,
regarding xfce4-systemload-plugin: CPU monitor overstates CPU usage
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
522711: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522711
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: xfce4-systemload-plugin
Version: 0.4.2-2
Severity: normal

The plugin often reports 100% usage when other system monitors (top, htop,
gnome-system-monitor) show much lower usage (often below 30%).  This seems to
occur when a process that is both disk and CPU intensive, such as a systemwide
'find' or an rsync based backup, is running.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-wl-lizzie
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xfce4-systemload-plugin depends on:
ii  libatk1.0-0                   1.24.0-2   The ATK accessibility toolkit
ii  libc6                         2.9-6      GNU C Library: Shared libraries
ii  libcairo2                     1.8.6-2+b1 The Cairo 2D vector graphics libra
ii  libglib2.0-0                  2.20.0-2   The GLib library of C routines
ii  libgtk2.0-0                   2.14.7-5   The GTK+ graphical user interface 
ii  libpango1.0-0                 1.24.0-2   Layout and rendering of internatio
ii  libxfce4util4                 4.6.0-2    Utility functions library for Xfce
ii  libxfcegui4-4                 4.4.2-4    Basic GUI C functions for Xfce4
ii  xfce4-panel                   4.4.2-6    The Xfce4 desktop environment pane

xfce4-systemload-plugin recommends no packages.

xfce4-systemload-plugin suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
On dim, 2009-04-05 at 23:07 -0400, Celejar wrote:
> Package: xfce4-systemload-plugin
> Version: 0.4.2-2
> Severity: normal
> 
> The plugin often reports 100% usage when other system monitors (top, htop,
> gnome-system-monitor) show much lower usage (often below 30%).  This seems to
> occur when a process that is both disk and CPU intensive, such as a systemwide
> 'find' or an rsync based backup, is running.

That's perfectly normal. The cpu monitor uses the system load (hence the
name) to calculate the load, with the following formula:

gulong read_cpuload()
{
    FILE *fd;
    gulong used, total;

    fd = fopen(PROC_STAT, "r");
    if (!fd) {
        g_warning(_("File /proc/stat not found!"));
        return 0;
    }
    fscanf(fd, "%*s %ld %ld %ld %ld", &fresh.load[0], &fresh.load[1],
           &fresh.load[2], &fresh.load[3]);
    fclose(fd);

    used = fresh.load[0] + fresh.load[1] + fresh.load[2];
    total = fresh.load[0] + fresh.load[1] + fresh.load[2] + fresh.load[3];
    if ((total - oldtotal) != 0)
    {
        cpu_used = (100 * (double)(used - oldused)) / (double)(total -          
oldtotal);
    }
    else
    {
        cpu_used = 0;
    }
    oldused = used;
    oldtotal = total;

    return cpu_used;
}

So yes, IO will be taken into account because they account in load, and
the calcul will be done based on current load and previous load.

Nothing to worry about.

Cheers,
-- 
Yves-Alexis

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
_______________________________________________
Pkg-xfce-devel mailing list
Pkg-xfce-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-xfce-devel

Reply via email to