event-handler in opensolaris
Subject: event-handler in opensolaris
Newsgroups: gmane.comp.web.lighttpd
Date: 2007-11-26 21:17:42 GMT
what should server.event-handler be for opensolaris box? in linux i had linux-sysepoll
thanks
what should server.event-handler be for opensolaris box? in linux i had linux-sysepoll
thanks
2007-11-26 21:20:59: (server.c.1429) fdevent_poll failed: Invalid argument
i get this error if i use solaris-devpoll
what should i use here?
what should server.event-handler be for opensolaris box? in linux i had linux-sysepoll
thanks
Have you tried poll? On Nov 26, 2007 4:21 PM, rkmr.em <at> gmail.com <rkmr.em <at> gmail.com> wrote: > 2007-11-26 21:20:59: (server.c.1429) fdevent_poll failed: Invalid argument > > i get this error if i use solaris-devpoll > > what should i use here? > > > > On Nov 26, 2007 1:17 PM, rkmr.em <at> gmail.com <rkmr.em <at> gmail.com> wrote: > > what should server.event-handler be for opensolaris box? in linux i had > linux-sysepoll > > thanks > > > > > > -- -- Kevin Worthington
On Solaris/OpenSolaris, if you are starting lighttpd as a non-root user and using solaris-devpoll as the event-handler then you'll hit the issue that you describe. Until a fix is in place I'd suggest starting Lighttpd as root and specifying the user/group to run as in the Lighttpd config file. When you do this, Lighttpd does all of it's initialization as root and then starts the Web Server process and any worker processes as the user that you specify. You can then use "solaris-devpoll" as the event-handler which is the recommended option for Solaris. This is a better option than falling back to using "poll" as the event-handler.
Are you using SMF to start Lighttpd? I'm just curious as I started looking into this in response to a problem seen when starting Lighttpd via SMF.
Amanda
what should server.event-handler be for opensolaris box? in linux i had linux-sysepoll
thanks
On Tue, Nov 27, 2007 at 12:44:06AM +0000, Amanda Waite wrote: > You can then use "solaris-devpoll" as the > event-handler which is the recommended option for Solaris. This is a > better option than falling back to using "poll" as the event-handler. if you have 1 single worker (the default) or a few of them, poll and devpoll should be equivalent IMHO; do you have any data to back up the benefits of devpoll over poll in solaris for 1 or a low number of filehandles? I am running lighttpd in Solaris 10 SPARC (v490, 8 x 1350Mhz) with server.max-worker = 128 and doing 900 QPS using poll and 60% CPU idle. for Solaris 10 I would warn against using server.network-backend = sendfilev as there is a bug on it which will lock some of transactions in the kernel and that hasn't been yet fixed AFAIK (I think it was fixed already in OpenSolaris but haven't tested it); server.network-backend = "writev" could be used instead even if it is not the "preferred" method. Carlo
i was not starting lighttpd as a root!!! i will try to start the app as root..
what is SMF? is it a better way to start lighttpd?
On Solaris/OpenSolaris, if you are starting lighttpd as a non-root user and using solaris-devpoll as the event-handler then you'll hit the issue that you describe. Until a fix is in place I'd suggest starting Lighttpd as root and specifying the user/group to run as in the Lighttpd config file. When you do this, Lighttpd does all of it's initialization as root and then starts the Web Server process and any worker processes as the user that you specify. You can then use "solaris-devpoll" as the event-handler which is the recommended option for Solaris. This is a better option than falling back t o using "poll" as the event-handler.
Are you using SMF to start Lighttpd? I'm just curious as I started looking into this in response to a problem seen when starting Lighttpd via SMF.
AmandaOn 26/11/2007, rkmr.em <at> gmail.com <rkmr.em <at> gmail.com> wrote:what should server.event-handler be for opensolaris box? in linux i had linux-sysepoll
thanks
Service Management Facility: http://en.wikipedia.org/wiki/Service_Management_Facility On Nov 27, 2007 1:45 PM, rkmr.em <at> gmail.com <rkmr.em <at> gmail.com> wrote: > i was not starting lighttpd as a root!!! i will try to start the app as > root.. > what is SMF? is it a better way to start lighttpd? > > > > On Nov 26, 2007 4:44 PM, Amanda Waite < mandy.waite2007 <at> googlemail.com> > wrote: > > On Solaris/OpenSolaris, if you are starting lighttpd as a non-root user > and using solaris-devpoll as the event-handler then you'll hit the issue > that you describe. Until a fix is in place I'd suggest starting Lighttpd as > root and specifying the user/group to run as in the Lighttpd config file. > When you do this, Lighttpd does all of it's initialization as root and then > starts the Web Server process and any worker processes as the user that you > specify. You can then use "solaris-devpoll" as the event-handler which is > the recommended option for Solaris. This is a better option than falling > back to using "poll" as the event-handler. > > > > Are you using SMF to start Lighttpd? I'm just curious as I started looking > into this in response to a problem seen when starting Lighttpd via SMF. > > > > Amanda > > > > > > > > > > > > > > > > On 26/11/2007, rkmr.em <at> gmail.com <rkmr.em <at> gmail.com> wrote: > > > what should server.event-handler be for opensolaris box? in linux i had > linux-sysepoll > > > thanks > > > > > > > > > > > > -- -- Kevin Worthington
RSS Feed