LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Bug Reports (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=9)
-   -   lshttpd.2.0RC2 process using CPU (http://www.litespeedtech.com/support/forum/showthread.php?t=90)

jailbird 10-19-2004 11:01 AM

lshttpd.2.0RC2 process using CPU
 
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

mistwang 10-19-2004 03:28 PM

Dustin,

LiteSpeed uses a high resolution timer (10ms) in order to distribute traffic evenly during one second when throttling is enabled, the over head should be negligible on most modern system.

What kind of CPU is in your solaris box? :wink:

Thanks!

George


All times are GMT -7. The time now is 11:42 AM.