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

2002-02-08 Thread James Antill
"Darren Smith" <[EMAIL PROTECTED]> writes: > 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 cp

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

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

2002-02-04 Thread Darren Smith
Darren. -Original Message- From: Aaron Sethman [mailto:[EMAIL PROTECTED]] Sent: 04 February 2002 17:41 To: Darren Smith Cc: 'Andrew Morton'; 'Dan Kegel'; 'Vincent Sweeney'; [EMAIL PROTECTED]; [EMAIL PROTECTED]; 'Kevin L. Mitchell' Subject: RE: [Coder-Com] R

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 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 network performance

2002-02-03 Thread Arjen Wolfs
> > >So I dunno if I'm going to go ahead and do that myself, but at least I've >scoped out the situation. Before I did any work, I'd measure CPU >usage under a simulated load of 2000 clients, just to verify that >poll() was indeed a bottleneck (ok, can't imagine it not being a >bottleneck, but i