Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jul 2000 07:14:10 +0000
From:      Tony Finch <dot@dotat.at>
To:        freebsd-mobile@freebsd.org
Subject:   hdd sppin-down and syncer
Message-ID:  <E13Hhru-000A7b-00@hand.dotat.at>

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

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 <sys/param.h>
 #include <sys/systm.h>
@@ -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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E13Hhru-000A7b-00>