Package: superkaramba
Version: 0.35-2
Severity: normal
I noticed that SuperKaramba reports memory usage differently to the free and
vmstat commands when you select the format="%umb" option (described as "Used
memory in megabytes (cache and buffers excluded)." on the SuperKaramba
sensors page [1]).
The memory usage appears to be considerably lower than that reported by the
free command. For example, at the moment free outputs the following:
total used free shared buffers cached
Mem: 386948 383360 3588 0 26488 105076
-/+ buffers/cache: 251796 135152
Swap: 562232 355856 206376
whereas my SuperKaramba theme reports the used memory excluding cache and
buffers to be 210Mb (instead of 251796/1024=246Mb).
I had a look at the source code in the Debian package. The memory usage is
found by parsing the /proc/meminfo file. The MemSensor::getCached() function
calculates the amount of cache as the total "Cached" and "SwapCached" memory
and the free memory is calculated using this value. This means that the
reported free memory is lower than that reported by "free" by the amount of
SwapCached memory. I'm pretty sure that this is wrong as SwapCached relates to
the swap partition rather than the physical memory.
[1] http://netdragon.sourceforge.net/ssensors.html
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-1-k7
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Versions of packages superkaramba depends on:
ii kdelibs4 4:3.3.2-5 KDE core libraries
ii libart-2.0-2 2.3.17-1 Library of functions for 2D graphi
ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an
ii libfam0c102 2.7.0-6 client library to control the FAM
ii libgcc1 1:3.4.3-12 GCC support library
ii libglib1.2 1.2.10-9 The GLib library of C routines
ii libgtk1.2 1.2.10-17 The GIMP Toolkit set of widgets fo
ii libice6 4.3.0.dfsg.1-12.0.1 Inter-Client Exchange library
ii libidn11 0.5.13-1.0 GNU libidn library, implementation
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii libqt3c102-mt 3:3.3.4-3 Qt GUI Library (Threaded runtime v
ii libsm6 4.3.0.dfsg.1-12.0.1 X Window System Session Management
ii libstdc++5 1:3.3.5-12 The GNU Standard C++ Library v3
ii libx11-6 4.3.0.dfsg.1-12.0.1 X Window System protocol client li
ii libxext6 4.3.0.dfsg.1-12.0.1 X Window System miscellaneous exte
ii libxi6 4.3.0.dfsg.1-12.0.1 X Window System Input extension li
ii libxpm4 4.3.0.dfsg.1-12.0.1 X pixmap library
ii libxrender1 0.8.3-7 X Rendering Extension client libra
ii python2.3 2.3.5-2 An interactive high-level object-o
ii xlibs 4.3.0.dfsg.1-12 X Keyboard Extension (XKB) configu
ii xmms 1.2.10+cvs20050209-2 Versatile X audio player that look
ii zlib1g 1:1.2.2-4 compression library - runtime
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]