Date: Thu, 21 Jun 2007 01:35:58 +0100 From: Thomas Hurst <tom.hurst@clara.net> To: Vlad GURDIGA <gurdiga@gmail.com> Cc: freebsd-fs@freebsd.org Subject: Re: fs cache Message-ID: <20070621003558.GA55731@voi.aagh.net> In-Reply-To: <da7069940706192330j19e98ed0sfc154b7fdc13fa4c@mail.gmail.com> References: <da7069940706170024p6dc692al62f71a2d7bbcece6@mail.gmail.com> <da7069940706192330j19e98ed0sfc154b7fdc13fa4c@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* Vlad GURDIGA (gurdiga@gmail.com) wrote: > The only difference I can see is that on Ubuntu, after first start of > Firefox the memory use for cache is 22% vs. 0% on FreeBSD. My guess is > that this is the cause of slower startups on FreeBSD. If you mean the "Cache" value in top, that's quite normal; "Cache" in FreeBSD doesn't mean quite the same as it does in Linux -- it's just one of several queues VM pages churn through depending on usage patterns and memory pressure. Most cached data will tend to reside in "Inact", where it's ready for quick use and modification, and it only cycles to "Cache" when the VM decides it's worth making clean (flushing to backing store if necessary) and marking read-only so it can be reused quickly (i.e. without touching a disk). And yes, Ubuntu doubtless does fancy prelinking/binding magic. This is a project idea listed on http://www.freebsd.org/projects/ideas/ and has had several attempts in the past from the look of it. -- Thomas 'Freaky' Hurst http://hur.st/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070621003558.GA55731>