Re: what to do with "too much" RAM?
From: Andrew Gabriel (andrew_at_cucumber.demon.co.uk)
Date: 07/03/05
- Next message: Alan Coopersmith: "Re: Can't Use "Update Connection Services""
- Previous message: CJT: "Re: SUN SOLARIS 10 (NOT A UFS FILE SYSTEM)"
- In reply to: Fredrik Lundholm: "Re: what to do with "too much" RAM?"
- Next in thread: Dennis Grevenstein: "Re: what to do with "too much" RAM?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 03 Jul 2005 20:38:30 GMT
In article <da9dod$9bk$1@eol.dd.chalmers.se>,
dol@ce.chalmers.se (Fredrik Lundholm) writes:
> In article <da990p$is9$1@news.urz.uni-heidelberg.de>,
> Dennis Grevenstein <dennis.grevenstein@gmail.com> wrote:
>
>>Sure, I could put the whole system into a RAM disk,
>>but is there any way to just improve write-caching?
>
> Absolutely not. Well there are file system tunables
> and such but the general rule is to NEVER cache writes.
You're in for a big disappointment -- all Unixs normally
cache writes, although it depends on the nature of the
data being written.
> Remember why you make them in the first place.
>
> You want writes to fly out to the raid controller as fast as possible
> and do the caching there.
That depends what the raid controller and disk controllers
are going to do with the data, but it isn't necessarily any
safer there than in main memory. Indeed it can cause very
bad problems if the writes get reordered when going to
non-volatile storage outside the control of the OS.
> Why dont you want to cache writes at the host?
> Think about server crash, power loss, file system integrity and do the math.
When applications require data to be secured to non-volatile
storage, they will ask for the data to be sync'ed to disk
(or non-volatile cache). Otherwise, write-behind cacheing is
the norm. (Some specialist applications may turn off the
cacheing of their data by the OS, generally because they do
it themselves and have a better idea of what's good to cache
and what isn't.)
-- Andrew Gabriel
- Next message: Alan Coopersmith: "Re: Can't Use "Update Connection Services""
- Previous message: CJT: "Re: SUN SOLARIS 10 (NOT A UFS FILE SYSTEM)"
- In reply to: Fredrik Lundholm: "Re: what to do with "too much" RAM?"
- Next in thread: Dennis Grevenstein: "Re: what to do with "too much" RAM?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|