Subject: Re: Adding sysctl options to syncfs
To: Juan RP <juan@xtrarom.org>
From: Rui Paulo <rpaulo@NetBSD.org>
List: tech-kern
Date: 09/05/2005 17:32:29
--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2005.09.05 17:24:22 +0200, Juan RP wrote:
|=20
| Hi, the following patch will add:
|=20
| ftp://ftp.NetBSD.org/pub/NetBSD/misc/xtraeme/syncfs_sysctl.diff
|=20
| [juan@Nocturno][~]> sysctl -a|grep syncfs
| kern.syncfs.syncdelay =3D 30
| kern.syncfs.filedelay =3D 30
| kern.syncfs.dirdelay =3D 15
| kern.syncfs.metadelay =3D 10
| [juan@Nocturno][~]>
|=20
| It will modify the values defined in sys/miscfs/syncfs/sync_subr.c:
|=20
| time_t syncdelay =3D 30;   /* max time to delay syncing data */
| time_t filedelay =3D 30;     /* time to delay syncing files */=20
| time_t dirdelay  =3D 15;     /* time to delay syncing directories */
| time_t metadelay =3D 10;  /* time to delay syncing metadata */
|=20
| FYI FreeBSD has implemented that too, but with different nodes:
|=20
| kern.{dir,file,meta}_delay.
|=20
| What do you think? is it useful for anyone?

Does FreeBSD have some kind of ``strange-values checking'' ? I'm sure that=
=20
setting some of those values to 0 will render some high loads...

		-- Rui Paulo

--TB36FDmn/VVEgNH/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFDHHMdZPqyxs9FH4QRAkbZAJ9tv5LKJILnASplfzkionYBgc40ygCcC2sy
OQE9EydUQ5Jne6LAJRxUX0A=
=U3PW
-----END PGP SIGNATURE-----

--TB36FDmn/VVEgNH/--