Package: wmmemload
Version: 0.1.5-2
Severity: normal

Hi,

Wmmemload fails to calculate free memory sizes when tries to
ignore buffers and cached pages.  According to src/mem_linux.c,
wmmemload seems to assume that /proc/meminfo has the following
consecutive lines:

MemTotal:  xxxxxx kb
MemFree:   xxxxxx kb
MemShared: xxxxxx kb
Buffers:   xxxxxx kb
Cached:    xxxxxx kb

while mine has, for example,

MemTotal:  1554068 kb
MemFree:    128576 kb
Buffers:    237008 kb
Cached:     693792 kb
SwapChaced:      0 kb

which leads to the miscalculation above: that is, "wmmemload -b -c"
should report 1-((128576+237008+693792)/1554068)=32% used, though it
reports 1-((128576+693792+0)/1554068)=47% used.

I'm not sure why my /proc/meminfo does not have "MemShared" entry and
whether it stems from my kernel configuration.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing-proposed-updates
  APT policy: (110, 'testing-proposed-updates'), (105, 'testing'), (90, 
'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)

Versions of packages wmmemload depends on:
ii  libc6            2.3.2.ds1-22    GNU C Library: Shared libraries an
ii  xlibs            4.3.0.dfsg.1-14 X Keyboard Extension (XKB) configu

wmmemload recommends no packages.

-- no debconf information

--
Masaki Oita <[EMAIL PROTECTED]>


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to