Re: high cpu utilization

From: Willy Tarreau <w#1wt.eu>
Date: Sun, 17 Feb 2008 11:16:30 +0100


On Sun, Feb 17, 2008 at 08:16:13AM +0100, Aleksandar Lazic wrote:
> On Son 17.02.2008 00:04, Marc Breslow wrote:
> >I ran the commands you said and learned that I'm not using epoll :( The
> >make file says it's automatic on Linux 2.6 and my kernel is 2.6.9-55.
> >I just rebuilt actually specifying target=linux26 and now epoll is
> >enabled. I think I just misunderstood what "automatic" meant. The
> >Makefile clearly says "you should build with TARGET=os" but after
> >reading further and seeing "enable epoll on Linux 2.6. Automatic" I
> >didn't think I needed to. My bad.
> >
> >I ran the -vv switch on the binary you have on the haproxy site but it
> >looks like you compiled with some options that require kernel patches
> >that I probably don't have (USE_TCPSPLICE and USE_TCPSPLICE) - are
> >those key? What would that help with?
> >
> >So now I've rebuilt haproxy and ran your test config and see the same
> >output that you saw where as with the build I had been running I saw:
> >Available polling systems :
> > poll : pref=200, test result OK
> > select : pref=150, test result OK
> >Total: 2 (2 usable), will use poll.
> >Using poll() as the polling mechanism.
> >
> >Knowing how big an improvement epoll has over poll, I'm sure this will
> >work wonders.
>
> I'am normal not the fun killer but this can't be the output of the
> program shon in top.

Yes because Mark said that he did not explicitly build with TARGET=linux26. That explains the massive CPU usage in the first 'top' report. The new one was made with the new version and is OK.

Cheers,
Willy Received on 2008/02/17 11:16

This archive was generated by hypermail 2.2.0 : 2008/02/17 11:30 CET