Re: high cpu utilization

From: Aleksandar Lazic <al-haproxy#none.at>
Date: Sun, 17 Feb 2008 08:16:13 +0100


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.

I have build haproxy on

uname -a
Linux 2.6.8-3-686-smp #1 SMP Tue Dec 5 23:17:50 UTC 2006 i686 GNU/Linux

with

make TARGET=linux26

and get

./haproxy -f examples/haproxy.cfg -dVD
Available polling systems :

      sepoll : pref=400,  test result OK
       epoll : pref=300,  test result OK
        poll : pref=200,  test result OK
      select : pref=150,  test result OK
Total: 4 (4 usable), will use sepoll.
Using sepoll() as the polling mechanism.

dand a -vv show me

./haproxy -vv
HA-Proxy version 1.3.14.2 2008/01/21
Copyright 2000-2007 Willy Tarreau <w#1wt.eu>

Build options :

   TARGET  = linux26
   CPU     = generic
   CC      = gcc
   CFLAGS  = -O2 -g
   OPTIONS = 

jm2c

Cheers

Aleks Received on 2008/02/17 08:16

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