Hi,
I've replaced select() based code in tpop3d server [1] with libevent code to
avoid problems with FD_SETSIZE limit. Patch:
http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/tpop3d-libevent.patch?rev=1.1
Unfortunately now tpop3d server is eating much more cpu resources than with
select() based
Hannah,
What results do you get if you profile your server program (compile
and
link with -pg, run it, terminate it, run
gprof binary gmon.out profile.txt
and look at the output)?
The high CPU usage is happening inside event_dispatch() -- basically,
it seems to be doing a busy wait
Which version of libevent are you using and where is the code that
makes use of it?
Niels.
On 4/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hannah,
What results do you get if you profile your server program (compile
and
link with -pg, run it, terminate it, run
gprof binary