lshttpd.2.0RC2 process using CPU

Discussion in 'Bug Reports' started by jailbird, Oct 19, 2004.

  1. jailbird

    jailbird New Member

    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
  2. mistwang

    mistwang LiteSpeed Staff

    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

Share This Page