Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2001 00:35:08 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Jeff Behl <jeff@expertcity.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: syncer delay?
Message-ID:  <3B8360AC.559D205D@mindspring.com>
References:  <0307F3737A2AD511A42200D0B7A071919A409C@dopey.corp.expertcity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jeff Behl wrote:
> 
> thanks for info.  just to clarify a few things...
> 
> Its 'logging' is actually writing binary data to a file, of which there is
> one file per session/open socket.  The number of sessions isn't that large,
> averaging around 20, and the machine is dedicated to this app only.  The
> only reads should be from the network.  This help narrow down the issue?

Yes; you have 20 contenders fighting for your serialized access
to your IDE drive.

If you don't need the data committed to stable storage for some
reason that you aren't stating, then you would probably be much
better off caching it, and going to a sparse map on page or FS
block boundaries so that the FS doesn't have to do the extra
read-before-write to handle the writes.

> We'll see if an explicit fsync() helps; thanks.

It probably won't help as much as choosing your data carefully.

Also, if you hhave a big stable storage requirement, you might
want to consider writing your state information/log to a raw
disk device on 512b boundaries to make things a lot easier on
your I/O overhead.


-- Terry

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B8360AC.559D205D>