reopen 217841 found 217841 1:3.2.7-9 tags 217841 + lenny thanks This bug is still present. Tested with procps 1:3.2.7-9 (lenny) on amd64.
> /sbin/swapon -s Filename Type Size Used Priority /dev/sda2 partition 1975984 0 -3 > free total used free shared buffers cached Mem: 2029520 1957272 72248 0 74124 458768 -/+ buffers/cache: 1424380 605140 Swap: 1975984 0 1975984 top output: top - 10:01:59 up 8 days, 17:31, 9 users, load average: 0.19, 0.14, 0.13 Tasks: 134 total, 2 running, 132 sleeping, 0 stopped, 0 zombie Cpu(s): 3.3%us, 0.7%sy, 0.0%ni, 95.7%id, 0.0%wa, 0.2%hi, 0.2%si, 0.0%st Mem: 2029520k total, 1957072k used, 72448k free, 74220k buffers Swap: 1975984k total, 0k used, 1975984k free, 458780k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND 3734 cruvolo 20 0 1623m 884m 25m S 4 44.6 810:35.54 739m xulrunner-stub 3383 root 20 0 203m 97m 11m S 1 4.9 229:43.07 105m Xorg ^^^^ On Fri, Jan 09, 2009 at 05:57:03AM +0000, Debian Bug Tracking System wrote: > #217841: procps: top shows SWAP in use when it isn't > > It has been closed by Craig Small <csm...@debian.org>. > > Their explanation is attached below along with your original report. > If this explanation is unsatisfactory and you have not received a > better one in a separate message then please contact Craig Small > <csm...@debian.org> by > replying to this email. > > > -- > 217841: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=217841 > Debian Bug Tracking System > Contact ow...@bugs.debian.org with problems > Date: Fri, 9 Jan 2009 16:54:14 +1100 > From: Craig Small <csm...@debian.org> > To: 217841-d...@bugs.debian.org > Subject: Would of been fixed in 3.2.7 > Content-Type: text/plain; charset=us-ascii > User-Agent: Mutt/1.5.18 (2008-05-17) > > Package: procps > Version: 1:3.2.7-1 > > This would of been fixed in the new top and procps, its an old bug. > > - Craig > -- > Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5 > http://www.enc.com.au/ csmall at : enc.com.au > http://www.debian.org/ Debian GNU/Linux, software should be Free > > Date: Mon, 27 Oct 2003 09:46:20 -0800 > From: Chris Ruvolo <chris+deb...@ruvolo.net> > To: sub...@bugs.debian.org > Subject: procps: top shows SWAP in use when it isn't > Content-Type: text/plain > User-Agent: Mutt/1.3.28i > > Package: procps > Version: 1:3.1.14-1 > Severity: normal > > > There seems to be a problem in how top computes the amount of per-process > SWAP being used. Even though both free, swapon -s, and the top header > report 0 bytes of swap in use, the per-process SWAP field is non-zero. > > Under 2.6.0-test9, the SWAP field is multiple megabytes. Under 2.4.20, the > SWAP field is usually near zero (but still non-zero) except in the case of > XFree86 (mmaped frame buffer?). > > > Example for 2.6.0-test9: > > # uname -a > Linux hork.localnet 2.6.0-test9 #1 Sun Oct 26 00:50:16 PDT 2003 i686 GNU/Linux > > # swapon -s > Filename Type Size Used > Priority > /swap file 262136 0 -3 > /swap2 file 131064 0 -4 > > # free > total used free shared buffers cached > Mem: 127604 123508 4096 0 6220 54064 > -/+ buffers/cache: 63224 64380 > Swap: 393200 0 393200 > > > > top - 09:34:18 up 30 min, 6 users, load average: 0.00, 0.09, 0.10 > Tasks: 60 total, 1 running, 59 sleeping, 0 stopped, 0 zombie > Cpu(s): 0.7% us, 0.7% sy, 0.0% ni, 98.7% id, 0.0% wa, 0.0% hi, 0.0% si > Mem: 127604k total, 123492k used, 4112k free, 6248k buffers > Swap: 393200k total, 0k used, 393200k free, 54068k cached > > PID USER PR NI VIRT RES SHR SWAP S %CPU %MEM TIME+ COMMAND > > 449 molotov 15 0 44428 24m 28m 18m S 0.0 19.7 0:17.62 galeon-bin > > 458 molotov 16 0 44428 24m 28m 18m S 0.0 19.7 0:00.00 galeon-bin > > 459 molotov 16 0 44428 24m 28m 18m S 0.0 19.7 0:00.02 galeon-bin > > 460 molotov 16 0 44428 24m 28m 18m S 0.0 19.7 0:00.00 galeon-bin > > 462 molotov 15 0 44428 24m 28m 18m S 0.0 19.7 0:00.05 galeon-bin > > 388 root 15 0 90404 21m 68m 66m S 0.3 17.4 0:19.33 XFree86 > > 436 molotov 16 0 13456 7232 9428 6224 S 0.0 5.7 0:01.29 panel > > 391 molotov 16 0 8532 6272 4452 2260 S 0.0 4.9 0:02.97 > enlightenmen > 435 molotov 15 0 8656 4072 7396 4584 S 0.3 3.2 0:03.20 gkrellm > > 443 molotov 16 0 9928 3824 9060 6104 S 0.0 3.0 0:00.37 > tasklist_app > 445 molotov 15 0 9708 3504 8836 6204 S 0.3 2.7 0:01.71 > asclock_appl > 454 molotov 16 0 4716 2088 3752 2628 S 0.0 1.6 0:00.16 gconfd-2 > > 478 molotov 15 0 3208 1736 2660 1472 S 0.0 1.4 0:00.44 ssh > > 485 molotov 16 0 3124 1668 2588 1456 S 0.0 1.3 0:00.24 ssh > > 356 molotov 16 0 2804 1584 1932 1220 S 0.0 1.2 0:00.10 tcsh > > > > > Example for 2.4.20: > > # uname -a > Linux hork.localnet 2.4.20 #3 Sat Jun 21 17:40:29 PDT 2003 i686 GNU/Linux > > # swapon -s > Filename Type Size Used Priority > /swap file 262136 0 5 > /swap2 file 131064 0 1 > > # free > total used free shared buffers cached > Mem: 127952 123772 4180 0 10288 58624 > -/+ buffers/cache: 54860 73092 > Swap: 393200 0 393200 > > > > top - 09:44:04 up 6 min, 5 users, load average: 0.01, 0.08, 0.05 > Tasks: 62 total, 1 running, 61 sleeping, 0 stopped, 0 zombie > Cpu(s): 1.3% user, 1.0% system, 0.0% nice, 97.7% idle > Mem: 127952k total, 123904k used, 4048k free, 10360k buffers > Swap: 393200k total, 0k used, 393200k free, 58628k cached > > PID USER PR NI VIRT RES SHR SWAP S %CPU %MEM TIME+ COMMAND > > 436 molotov 9 0 20196 19m 13m 4 S 0.0 15.8 0:02.74 galeon-bin > > 445 molotov 9 0 20196 19m 13m 4 S 0.0 15.8 0:00.00 galeon-bin > > 446 molotov 9 0 20196 19m 13m 4 S 0.0 15.8 0:00.00 galeon-bin > > 447 molotov 9 0 20196 19m 13m 4 S 0.0 15.8 0:00.00 galeon-bin > > 448 molotov 9 0 20196 19m 13m 4 S 0.0 15.8 0:00.00 galeon-bin > > 449 molotov 9 0 20196 19m 13m 4 S 0.0 15.8 0:00.00 galeon-bin > > 346 root 19 0 84552 18m 1964 64m S 1.0 14.7 0:06.25 XFree86 > > 394 molotov 10 0 7852 7852 3584 0 S 0.0 6.1 0:01.29 panel > > 349 molotov 11 0 6240 6240 2208 0 S 0.3 4.9 0:01.61 > enlightenmen > 393 molotov 8 0 4564 4560 3364 4 S 0.0 3.6 0:01.34 gkrellm > > 401 molotov 9 0 4148 4148 3024 0 S 0.0 3.2 0:00.41 > tasklist_app > 403 molotov 9 0 3872 3872 2808 0 S 0.0 3.0 0:00.23 > asclock_appl > 441 molotov 9 0 2560 2556 1776 4 S 0.0 2.0 0:00.17 gconfd-2 > > 412 molotov 10 0 1904 1900 1352 4 S 0.0 1.5 0:00.45 ssh > > > > > -- System Information > Debian Release: testing/unstable > Kernel Version: Linux hork.localnet 2.6.0-test9 #1 Sun Oct 26 00:50:16 PDT > 2003 i686 GNU/Linux > > Versions of the packages procps depends on: > ii libc6 2.3.2-4 GNU C Library: Shared libraries and Timezone > ii libncurses5 5.3.20030510-2 Shared libraries for terminal handling > > --- Begin /etc/sysctl.conf (modified conffile) > net/ipv4/ip_local_port_range = 60000 65000 > net/ipv4/ip_forward = 1 > > --- End /etc/sysctl.conf > > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org