Your message dated Sun, 31 Jan 2010 11:25:45 +1100
with message-id <[email protected]>
and subject line w is as fast as it goes
has caused the Debian Bug report #540085,
regarding procps: w is quite slow with a lot of processes
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 [email protected]
immediately.)
--
540085: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540085
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: procps
Version: 1:3.2.8-1
Severity: minor
We have a busy imap server and w takes quite some time to report back:
# time /usr/bin/w.procps
17:28:19 up 7:28, 3 users, load average: 6,36, 4,21, 3,71
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
uwp pts/0 ...
hildeb pts/1 ... 10:12 21.00s 32.48s 1.15s /usr/bin/python
/usr/bin/reportbug procps
root pts/2 ... 17:27 5.00s 3.80s 3.75s
/usr/bin/w.procps
real 0m4.101s
user 0m2.224s
sys 0m1.732s
# strace -c /usr/bin/w.procps
17:32:14 up 7:32, 3 users, load average: 2,36, 3,22, 3,42
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
uwp pts/0 ... 11:30 6.00s 2.63s 0.15s sshd: uwp
[priv]
hildeb pts/1 ... 10:12 51.00s 32.57s 1.19s /usr/bin/python
/usr/bin/reportbug procps
root pts/2 ... 17:27 5.00s 4.97s 0.77s strace -c
/usr/bin/w.procps
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
90.98 0.142963 283 506 munmap
3.38 0.005319 2 2794 close
2.22 0.003482 2 2321 read
1.96 0.003079 1 2790 open
0.57 0.000901 1 1000 _llseek
0.35 0.000550 0 1148 stat64
0.23 0.000356 1 526 mmap2
0.16 0.000247 0 517 fstat64
0.09 0.000134 22 6 mprotect
0.07 0.000108 5 23 getdents
0.00 0.000000 0 5 write
0.00 0.000000 0 1 execve
0.00 0.000000 0 7 time
0.00 0.000000 0 2 lseek
0.00 0.000000 0 102 alarm
0.00 0.000000 0 10 10 access
0.00 0.000000 0 8 brk
0.00 0.000000 0 1 ioctl
0.00 0.000000 0 68 rt_sigaction
0.00 0.000000 0 70 fcntl64
0.00 0.000000 0 1 set_thread_area
0.00 0.000000 0 6 socket
0.00 0.000000 0 6 6 connect
------ ----------- ----------- --------- --------- ----------------
100.00 0.157139 11918 16 total
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-1-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages procps depends on:
ii libc6 2.9-12 GNU C Library: Shared libraries
ii libncurses5 5.7+20090523-1 shared libraries for terminal hand
ii lsb-base 3.2-22 Linux Standard Base 3.2 init scrip
Versions of packages procps recommends:
ii psmisc 22.7-1 utilities that use the proc file s
procps suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
The w progtam will be slow on some larger installations with many users
and/or processes. This is because the /proc filesystem has no easy way
of finding certain processes the programs are interested in.
- 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
--- End Message ---