From owner-freebsd-mobile Thu Jul 27 0:14:36 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from hand.dotat.at (3ff8faf3.dsl.flashcom.net [63.248.250.243]) by hub.freebsd.org (Postfix) with ESMTP id 7F05C37BAAE for ; Thu, 27 Jul 2000 00:14:29 -0700 (PDT) (envelope-from fanf@hand.dotat.at) Received: from fanf by hand.dotat.at with local (Exim 3.15 #3) id 13Hhru-000A7b-00 for freebsd-mobile@freebsd.org; Thu, 27 Jul 2000 07:14:10 +0000 From: Tony Finch To: freebsd-mobile@freebsd.org Subject: hdd sppin-down and syncer Message-Id: Date: Thu, 27 Jul 2000 07:14:10 +0000 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org My Dell Latitude-CPx spins down its hdd after 10 or 15 seconds, but a few seconds later the syncer kicks in and it spins back up again. I know it might be unwise to do this but I'd like to make the syncer run less frequently. AFAICT one would just need to frob SYNCER_MAXDELAY in vfs_subr.c to acheive this, but it will go up by powers of two. The change below would be useful to make it easier to change it in a kernel configuration file. Tony. -- f.a.n.finch fanf@covalent.net dot@dotat.at 318 butterfly appliqués on the sliding glass door of doom --- /usr/src/sys/kern/vfs_subr.c.orig Thu Jul 27 06:54:38 2000 +++ /usr/src/sys/kern/vfs_subr.c Thu Jul 27 06:55:51 2000 @@ -43,6 +43,7 @@ * External virtual filesystem routines */ #include "opt_ddb.h" +#include "opt_syncdelay.h" #include #include @@ -133,7 +134,9 @@ /* * The workitem queue. */ +#ifndef SYNCER_MAXDELAY #define SYNCER_MAXDELAY 32 +#endif static int syncer_maxdelay = SYNCER_MAXDELAY; /* maximum delay time */ time_t syncdelay = 30; /* max time to delay syncing data */ time_t filedelay = 30; /* time to delay syncing files */ --- /usr/src/sys/conf/options.orig Thu Jul 27 07:01:11 2000 +++ /usr/src/sys/conf/options Thu Jul 27 07:01:31 2000 @@ -77,6 +77,7 @@ UCONSOLE ICMP_BANDLIM VFS_AIO +SYNCER_MAXDELAY opt_syncdelay.h # POSIX kernel options P1003_1B opt_posix.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message