Re: [Coder-Com] Re: PROBLEM: high system usage / poor SMPnetwork performance

2002-02-04 Thread Daniel Phillips
On February 4, 2002 01:59 am, Aaron Sethman wrote: > On Sun, 3 Feb 2002, Dan Kegel wrote: > > > Kev wrote: > > > > > > > The /dev/epoll patch is good, but the interface is different enough > > > > from /dev/poll that ircd would need a new engine_epoll.c anyway. > > > > (It would look like a cross

Re: [Coder-Com] Re: PROBLEM: high system usage / poor SMPnetworkperformance

2002-02-04 Thread Aaron Sethman
On Mon, 4 Feb 2002, Daniel Phillips wrote: > In an effort to somehow control the mushrooming number of IO interface > strategies, why not take a look at the work Ben and Suparna are doing in aio, > and see if there's an interface mechanism there that can be repurposed? When AIO no longer sucks o

Re: [Coder-Com] Re: PROBLEM: high system usage / poor SMPnetwork performance

2002-02-04 Thread Kev
> > If I'm reading Poller_sigio::waitForEvents correctly, the rtsig stuff at > > least tries to return a list of which sockets have become ready, and your > > implementation falls back to some other interface when the signal queue > > overflows. It also seems to extract what state the socket's in

Re: [Coder-Com] Re: PROBLEM: high system usage / poor SMPnetworkperformance

2002-02-04 Thread Aaron Sethman
On Sun, 3 Feb 2002, Dan Kegel wrote: > Kev wrote: > > If that's true, I confess I can't quite see your point even still. Once > > the event is generated, ircd should read or write as much as it can, then > > not pay any attention to the socket until readiness is again signaled by > > the generat

Re: [Coder-Com] Re: PROBLEM: high system usage / poor SMPnetwork performance

2002-02-04 Thread Daniel Phillips
On February 4, 2002 07:26 am, Aaron Sethman wrote: > On Mon, 4 Feb 2002, Daniel Phillips wrote: > > In an effort to somehow control the mushrooming number of IO interface > > strategies, why not take a look at the work Ben and Suparna are doing in aio, > > and see if there's an interface mechanism

Re: [Coder-Com] Re: PROBLEM: high system usage / poor SMPnetworkperformance

2002-02-04 Thread Aaron Sethman
On Mon, 4 Feb 2002, Daniel Phillips wrote: > On February 4, 2002 07:26 am, Aaron Sethman wrote: > > On Mon, 4 Feb 2002, Daniel Phillips wrote: > > > In an effort to somehow control the mushrooming number of IO interface > > > strategies, why not take a look at the work Ben and Suparna are doing i

RE: [Coder-Com] Re: PROBLEM: high system usage / poor SMP network performance

2002-02-04 Thread Darren Smith
Hi I've been testing the modified Undernet (2.10.10) code with Vincent Sweeney based on the simple usleep(10) addition to s_bsd.c PRI NICE SIZERES STATE C TIME WCPUCPU | # USERS 2 0 96348K 96144K poll 0 29.0H 39.01% 39.01% | 1700 <- Without Patch 10 0 77584K 77336K na

RE: [Coder-Com] Re: PROBLEM: high system usage / poor SMP networkperformance

2002-02-04 Thread Aaron Sethman
On Mon, 4 Feb 2002, Darren Smith wrote: > Hi > > I've been testing the modified Undernet (2.10.10) code with Vincent > Sweeney based on the simple usleep(10) addition to s_bsd.c > > PRI NICE SIZERES STATE C TIME WCPUCPU | # USERS > 2 0 96348K 96144K poll 0 29.0H 39.01% 39

Re: [Coder-Com] Re: PROBLEM: high system usage / poor SMP network performance

2002-02-04 Thread Kev
> > I mean I added a usleep() before the poll in s_bsd.c for the undernet > > 2.10.10 code. > > > > timeout = (IRCD_MIN(delay2, delay)) * 1000; > > + usleep(10); <- New Line > > nfds = poll(poll_fds, pfd_count, timeout); > Why not just add the additional delay into the poll() timeout? It j

Re: [Coder-Com] Re: PROBLEM: high system usage / poor SMP networkperformance

2002-02-04 Thread Aaron Sethman
On Mon, 4 Feb 2002, Kev wrote: > Wouldn't have the effect. The original point was that adding the usleep() > gives some time for some more file descriptors to become ready before calling > poll(), thus increasing the number of file descriptors poll() can return > per system call. Adding the time

[Coder-Com] Invite lines (was Re: [User-Com] Question)

2002-02-04 Thread rob
> >From: "Dennis Masselink" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Subject: [User-Com] Question > >Hello, > > > >I'm in the process of seting up a chatbox on a website using a java applet > >called Jpilot. So far this looks great and has worked like a charm for me, > >but when we start

RE: [Coder-Com] Re: PROBLEM: high system usage / poor SMP networkperformance

2002-02-04 Thread Aaron Sethman
On Mon, 4 Feb 2002, Darren Smith wrote: > I mean I added a usleep() before the poll in s_bsd.c for the undernet > 2.10.10 code. > > timeout = (IRCD_MIN(delay2, delay)) * 1000; > + usleep(10); <- New Line > nfds = poll(poll_fds, pfd_count, timeout); Why not just add the additional delay int

RE: [Coder-Com] Re: PROBLEM: high system usage / poor SMP network performance

2002-02-04 Thread Darren Smith
I mean I added a usleep() before the poll in s_bsd.c for the undernet 2.10.10 code. timeout = (IRCD_MIN(delay2, delay)) * 1000; + usleep(10); <- New Line nfds = poll(poll_fds, pfd_count, timeout); And now we're using 1/8th the cpu! With no noticeable effects. Regards Darren. -Origi

Re: [Coder-Com] Re: PROBLEM: high system usage / poor SMP network performance

2002-02-04 Thread Doug McNaught
Aaron Sethman <[EMAIL PROTECTED]> writes: > On Mon, 4 Feb 2002, Darren Smith wrote: > > > I mean I added a usleep() before the poll in s_bsd.c for the undernet > > 2.10.10 code. > Why not just add the additional delay into the poll() timeout? It just > seems like you were not doing enough of a