From 733144d91dee1e12fe01505fde0eede9f46b75c4 Mon Sep 17 00:00:00 2001 From: Sheldon Hearn Date: Wed, 26 Jul 2000 08:51:58 +0000 Subject: [PATCH] Describe the syncer(4)-related sysctls kern.filedelay, kern.dirdelay and kern.metadelay, thanks to mckusick's feedback. --- sbin/sysctl/sysctl.8 | 4 +++- share/man/man4/syncer.4 | 18 +++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8 index 0187640e395..d50b23e42df 100644 --- a/sbin/sysctl/sysctl.8 +++ b/sbin/sysctl/sysctl.8 @@ -138,7 +138,9 @@ privilege can change the value. .It kern.saved_ids integer no .It kern.boottime struct no .It kern.domainname string yes -.It kern.update integer yes +.It kern.filedelay integer yes +.It kern.dirdelay integer yes +.It kern.metadelay integer yes .It kern.osreldate string no .It kern.bootfile string yes .It kern.corefile string yes diff --git a/share/man/man4/syncer.4 b/share/man/man4/syncer.4 index 27ece74ac04..95f2246df19 100644 --- a/share/man/man4/syncer.4 +++ b/share/man/man4/syncer.4 @@ -53,14 +53,22 @@ the .Nm process forces a write out to disk of its dirty buffers. .Pp -Usually, -buffers will be written out no more than -about 30 seconds -after they are dirtied. +The usual delay between the time buffers are dirtied +and the time they are synced +is controlled by the following +.Xr sysctl 8 +tunable variables: +.Bl -column "filedelayXXXX" "DefaultXX" "DescriptionXX" +.It Em Variable Ta Em Default Ta Em Description +.It Va kern.filedelay Ta 30 Ta "time to delay syncing files" +.It Va kern.dirdelay Ta 29 Ta "time to delay syncing directories" +.It Va kern.metadelay Ta 28 Ta "time to delay syncing metadata" +.El .Sh SEE ALSO .Xr sync 2 , .Xr fsck 8 , -.Xr sync 8 +.Xr sync 8 , +.Xr sysctl 8 .Sh HISTORY The .Nm