[PLUG] ps delays

Ed Sawicki ed at alcpress.com
Sun Jan 19 16:43:02 UTC 2003


I have a Linux box that pauses for 5 or six seconds before
performing certain operations. One clearly defined operation
is running the ps program. I type "ps" and 5 or 6 seconds
pass before the output is displayed on the screen.

I've stripped the box down to running almost no daemons
and the problem persists. I did a strace of the ps program
and I can see the delay occurring within this section
just after the two "brk() lines: 

uname({sys="Linux", node="xxxx", ...})  = 0
open("/boot/System.map-2.4.18", O_RDONLY|O_NONBLOCK|O_NOCTTY) = -1
ENOENT (No such file or directory)
open("/boot/System.map", O_RDONLY|O_NONBLOCK|O_NOCTTY) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=515922, ...}) = 0
old_mmap(NULL, 515923, PROT_READ|PROT_WRITE, MAP_PRIVATE, 6, 0) =
0x40149000
close(6)                                = 0
brk(0x8184000)                          = 0x8184000
brk(0x8195000)                          = 0x8195000
old_mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x401c7000
mremap(0x401c7000, 135168, 266240, MREMAP_MAYMOVE) = 0x401c7000
open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a
directory)


-- 
Ed Sawicki <ed at alcpress.com>
ALC





More information about the PLUG mailing list