Date: Mon, 4 Mar 1996 07:19:30 +0000 () From: "John S. Dyson" <toor@dyson.iquest.net> To: bde@zeta.org.au (Bruce Evans) Cc: julian@ref.tfs.com, rashid@rk.ios.com, hackers@FreeBSD.ORG Subject: Re: pwd_mkdb - really slow :( Message-ID: <199603040719.HAA01155@dyson.iquest.net> In-Reply-To: <199603041002.VAA05866@godzilla.zeta.org.au> from "Bruce Evans" at Mar 4, 96 09:02:38 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > same block is written many times. db often does this. I think it can > be programmed to do more buffering in memory, but often isn't. kvm_mkdb > was speeded up by a factor of about 5 by rewriting it to use mmap and > more buffering; now it is only about twice as slow as the old version > would be with a working disk cache ;-). > > >it might also be quicker to build the entire databse in ram > >and bang it out to disk as a single write.. :) > > Not much, if write() is suitably buffered. > Ahh... Come on, you know that the disk cache works, it simply does not write-behind as much as you would like. It read-caches very nicely. John
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603040719.HAA01155>