"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(100000); <- New Line > nfds = poll(poll_fds, pfd_count, timeout); > > And now we're using 1/8th the cpu! With no noticeable effects.
Note that something else you want to do is call poll() with a 0 timeout first (and if that doesn't return anything call again with the timeout), this removes all the wait queue manipulation inside the kernel when something is ready (most of the time). -- # James Antill -- [EMAIL PROTECTED] :0: * ^From: .*james@and\.org /dev/null