Re: Slow-down every 30 secs

From: Arjan de Vet <Arjan.deVet@dont-contact.us>
Date: Wed, 25 Feb 1998 15:52:26 +0100 (CET)

In article <888330142.00462.0@office.demon.net> you write:

>Try
>
>'sysctl kern.update'
>
>Should this give the value '30' try
>
>'sysctl -w kern.update=2'

On FreeBSD-current (to become 3.0) there is a sysctl variable
vfs.numdirtybuffers which tells you the current number of dirty buffers (I
patched the systat program to show it in the -vmstat display).

There are two other variables vfs.lodirtybuffers and vfs.hidirtybuffers
which can be tuned to avoid all dirty buffers being flushed to disk only
each X seconds by update. Flushing starts when numdirtybuffers >
hidirtybuffers and flushing ends when numdirtybuffers < lodirtybuffers. By
carefully choosing these values you can avoid that only update does sync()s
which can take multiple seconds to complete.

Arjan
Received on Wed Feb 25 1998 - 06:55:50 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:38:58 MST