Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2002 16:16:46 +0100
From:      Stijn Hoop <stijn@win.tue.nl>
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>
In-Reply-To: <20021030074814.3e3c43ea.kabaev@bellatlantic.net>
References:  <2570443.1035916854787.JavaMail.wshttp@emss03g01.ems.lmco.com> <p05111704b9e49bd4f317@[128.113.24.47]> <20021030091356.GC94770@pcwin002.win.tue.nl> <20021030074814.3e3c43ea.kabaev@bellatlantic.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021030151646.GK95942>