From owner-freebsd-current Wed Oct 30 7:16:51 2002 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 0E26B37B401 for ; Wed, 30 Oct 2002 07:16:49 -0800 (PST) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 300C343E7B for ; Wed, 30 Oct 2002 07:16:48 -0800 (PST) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.6/8.12.6) with ESMTP id g9UFGkqx097755; Wed, 30 Oct 2002 16:16:47 +0100 (CET) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.6/8.12.6/Submit) id g9UFGkGv097754; Wed, 30 Oct 2002 16:16:46 +0100 (CET) Date: Wed, 30 Oct 2002 16:16:46 +0100 From: Stijn Hoop To: ak03@gte.com Cc: drosih@rpi.edu, raymond.j.kohler@lmco.com, current@freebsd.org Subject: Re: speed of -CURRENT [was: questions about the state of current] Message-ID: <20021030151646.GK95942@pcwin002.win.tue.nl> References: <2570443.1035916854787.JavaMail.wshttp@emss03g01.ems.lmco.com> <20021030091356.GC94770@pcwin002.win.tue.nl> <20021030074814.3e3c43ea.kabaev@bellatlantic.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="924gEkU1VlJlwnwX" Content-Disposition: inline In-Reply-To: <20021030074814.3e3c43ea.kabaev@bellatlantic.net> User-Agent: Mutt/1.4i X-Bright-Idea: Let's abolish HTML mail! Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --924gEkU1VlJlwnwX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 30, 2002 at 07:48:14AM -0500, Alexander Kabaev wrote: > > I am experiencing a really noticable slower startup time on my very > > recent-CURRENT laptop for almost all programs. The problem seems to be > > in getting info in the cache, because it disappears when I start the > > same program again. >=20 > This almost certainly is caused by the 'ioslow' addition to > specfs_vnops.c. Find a block in specfs_strategy function which goes into > tsleep for niced processes and comment it out. Let us know if that helps > :) Yes, that's it. -CURRENT actually feels snappier than -STABLE now :) Below is the diff that I used. Will something other than I/O for niced processes break using this? Thanks! --Stijn --- spec_vnops.c.orig Mon Oct 28 08:07:49 2002 +++ spec_vnops.c Wed Oct 30 14:22:01 2002 @@ -530,17 +530,19 @@ struct mount *mp; int error; struct cdevsw *dsw; - struct thread *td =3D curthread; +/* struct thread *td =3D curthread; */ =09 /* * Slow down disk requests for niced processes. */ +/* XXX: per Alexander Kabaev mail 2002/10/30 07:48 -5 if (td && td->td_ksegrp->kg_nice > 0) { mtx_lock(&strategy_mtx); msleep(&strategy_mtx, &strategy_mtx, PPAUSE | PCATCH | PDROP, "ioslow", td->td_ksegrp->kg_nice); } +*/ bp =3D ap->a_bp; vp =3D ap->a_vp; if (bp->b_iocmd =3D=3D BIO_WRITE) { --924gEkU1VlJlwnwX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9v/feY3r/tLQmfWcRAliLAKCKmr2gej8XpJ3pPOaj76z86zqtbwCfYI59 IDnd1+3FiGeiTIVqwbyyVoo= =DNFU -----END PGP SIGNATURE----- --924gEkU1VlJlwnwX-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message