From owner-freebsd-current@FreeBSD.ORG Sat Oct 9 03:46:46 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F0B016A4CE; Sat, 9 Oct 2004 03:46:46 +0000 (GMT) Received: from ms-smtp-03-eri0.ohiordc.rr.com (ms-smtp-03-smtplb.ohiordc.rr.com [65.24.5.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A14343D5D; Sat, 9 Oct 2004 03:46:45 +0000 (GMT) (envelope-from marc.ramirez@bluecirclesoft.com) Received: from www.bluecirclesoft.com (cpe-024-165-114-048.cinci.rr.com [24.165.114.48])i993kMwZ008955; Fri, 8 Oct 2004 23:46:22 -0400 (EDT) Received: from www.bluecirclesoft.com (localhost [127.0.0.1]) i993kLYw036598; Fri, 8 Oct 2004 23:46:21 -0400 (EDT) (envelope-from marc.ramirez@bluecirclesoft.com) Received: from localhost (localhost [[UNIX: localhost]]) by www.bluecirclesoft.com (8.12.11/8.12.11/Submit) id i993kJIN036597; Fri, 8 Oct 2004 23:46:19 -0400 (EDT) (envelope-from marc.ramirez@bluecirclesoft.com) X-Authentication-Warning: www.bluecirclesoft.com: mrami set sender to marc.ramirez@bluecirclesoft.com using -f From: Marc Ramirez Organization: Blue Circle Software Corp. To: freebsd-current@freebsd.org Date: Fri, 8 Oct 2004 23:46:11 -0400 User-Agent: KMail/1.7 References: <4164BFA4.80105@unisa.edu.au> <41657D63.1050605@FreeBSD.org> <1097290576.836.20.camel@dirk.no.domain> In-Reply-To: <1097290576.836.20.camel@dirk.no.domain> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart25519301.uADGCq12CJ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200410082346.16570.marc.ramirez@bluecirclesoft.com> X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: Benjamin Close cc: Scott Long cc: Sam Lawrance Subject: Re: Noticable Delays Since Beta 3 (possible cause) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2004 03:46:46 -0000 --nextPart25519301.uADGCq12CJ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 08 October 2004 10:56 pm, Sam Lawrance wrote: > I think I've found the cause of the delays. > > The problem was consistently reproducible with getty processes which are > swapped out (ie 'ps' shows RSS=3D0 and state=3DIWs+). > > Since the problem was identifiable when starting to type at a vty, I > traced the problem back through: > > ttyinput() : tty.c > ttwakeup() : tty.c > wakeup() : kern_synch.c > sleepq_broadcast() : subr_sleepq.c > sleepq_resume_thread() : subr_sleepq.c > setrunnable() : kern_synch.c > > Notice in setrunnable() how wakeup(&proc0) is wrapped by #ifndef SMP? > This means that scheduler() : vm/vm_glue.c, which tsleeps on proc0, is > not awoken to traverse the process list and swap the process in. > > scheduler() tsleeps for a maximum of maxslp * hz / 2. maxslp on all > archs appears to be 20, so the actual wakeup intended by ttwakeup() may > not occur for up to 10 seconds. I think I agree, FWIW. Marc. =2D-=20 Marc Ramirez Blue Circle Software Corporation 513-688-1070 (main) 513-382-1270 (direct) http://www.bluecirclesoft.com http://www.mrami.com (personal) --nextPart25519301.uADGCq12CJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBZ18Ig1EgpGw750IRAtAqAKC4yHxE4T7Lc1d5THNTirkxaleeHACbBHnl Hf/xn42IsBg/GpaiZilUiL8= =MEMW -----END PGP SIGNATURE----- --nextPart25519301.uADGCq12CJ--