Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 4 Feb 2002 13:49:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 4 Feb 2002 13:48:51 -0500 Received: from FORT-POINT-STATION.MIT.EDU ([18.7.7.76]:60650 "EHLO fort-point-station.mit.edu") by vger.kernel.org with ESMTP id ; Mon, 4 Feb 2002 13:48:41 -0500 Message-Id: <200202041848.NAA04094@coleco-sidewinder.mit.edu> X-Mailer: exmh version 2.1.1 10/15/1999 To: Aaron Sethman cc: Darren Smith , "'Andrew Morton'" , "'Dan Kegel'" , "'Vincent Sweeney'" , linux-kernel@vger.kernel.org, coder-com@undernet.org, "'Kevin L. Mitchell'" Subject: Re: [Coder-Com] Re: PROBLEM: high system usage / poor SMP network performance In-Reply-To: Your message of "Mon, 04 Feb 2002 13:30:40 EST." Date: Mon, 04 Feb 2002 13:48:21 -0500 From: Kev Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > > 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); > Why not just add the additional delay into the poll() timeout? It just > seems like you were not doing enough of a delay in poll(). 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 to timeout would have no effect. -- Kevin L. Mitchell - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/