Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Dec 1999 10:37:12 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Tom <tom@uniserve.com>
Cc:        freebsd-stable@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG
Subject:   Re: softupdates and debug.max_softdeps
Message-ID:  <199912301837.KAA76049@apollo.backplane.com>
References:   <Pine.BSF.4.02A.9912291838230.25423-100000@shell.uniserve.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
    Well, in general I would not mess with max_softdeps - softupdates gets
    very inefficient if it hits its limits.  I think you may have found a
    flaw in the code, though.  Softupdates reschedules its vnode sync whenever
    it does something to the vnode.  Postmark must be operating on the same
    set of files for very long periods of time, including truncating and 
    extending them, for softupdates to get that far behind!  Kirk may have
    to modify the vnode scheduling to not reschedule the vnode beyond a 
    certain aggregate delay in order to ensure that things get synchronized 
    in a reasonable period of time.

    Softupdates biggest problem are with overly-long delays in block 
    reclamation - several people have commented on it.  I think what you
    are seeing is a special case of this problem that causes it to be much 
    worse then normal.

    In the mean time you have a couple of choices.  You can try running
    'sync' every so often, or you can write a small C program to fsync()
    the files postfix messes with every so often.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>

:  I'm trying to find some information on reasonable settings for
:debug.max_softdeps on a recent FreeBSD-stable system.
:
:  It seems that if you have a machine that is able to generate disk IO
:much faster than can be handled, has a large amount of RAM (and therefore
:debug.max_softdeps is large), and the filesystem is very large (about
:80GB), filesystem metadata updates can get _very_ far behind.
:
:  For instance, on a test system running 4 instances of postmark
:continuously for 24 hours, "df" reports that 40 GB of disk space is being
:used, even though only about 5 GB is actually used.  If I kill the
:postmark processes, the metadata is eventually dribbled out and "df"
:reports 5GB in use.  It takes about 20 minutes for the metadata to be
:updated on a completely ideal system.
:
:  On this particular system, it doesn't seem to stabilize either.  If the
:4 postmark instances are allowed to run, disk usage seems to climb
:indefinitely (at 40GB it was still climbing), until eventually the machine
:silently reboots.
:
:  debug.max_softdeps is by default set to 523,712 (1 GB of RAM).  Is that
:a resonable value?  I see some tests in the docs with max_softdeps set to
:4000 or so.
:
:
:Tom



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912301837.KAA76049>