Today I noticed that the main lshttpd.2.0RC2 process was using around 1% CPU consantly, which I thought was wierd since I know nobody was using the web server at the moment.
A truss on the process shows:
Received signal #14, SIGALRM, in pollsys() [caught]
pollsys(0x0022F258, 3, 0xFFBFF628, 0x00000000) Err#4 EINTR
lwp_sigmask(SIG_SETMASK, 0x00002000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
setcontext(0xFFBFEFF0)
time()
Received signal #14, SIGALRM, in pollsys() [caught]
pollsys(0x0022F258, 3, 0xFFBFF628, 0x00000000) Err#4 EINTR
lwp_sigmask(SIG_SETMASK, 0x00002000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
setcontext(0xFFBFEFF0)
time()
over and over and over.
Should the process really be alarm()'ing so many times a second? This seems inefficient to me.
Thanks,
-Dustin
A truss on the process shows:
Received signal #14, SIGALRM, in pollsys() [caught]
pollsys(0x0022F258, 3, 0xFFBFF628, 0x00000000) Err#4 EINTR
lwp_sigmask(SIG_SETMASK, 0x00002000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
setcontext(0xFFBFEFF0)
time()
Received signal #14, SIGALRM, in pollsys() [caught]
pollsys(0x0022F258, 3, 0xFFBFF628, 0x00000000) Err#4 EINTR
lwp_sigmask(SIG_SETMASK, 0x00002000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
setcontext(0xFFBFEFF0)
time()
over and over and over.
Should the process really be alarm()'ing so many times a second? This seems inefficient to me.
Thanks,
-Dustin