* how get dentry cache to swap
@ 2002-09-02 9:09 Molbo
2002-09-02 10:54 ` Ingo Oeser
0 siblings, 1 reply; 2+ messages in thread
From: Molbo @ 2002-09-02 9:09 UTC (permalink / raw)
To: linux-kernel
if I try to create on tmpfs 100k nodes, this kills all my free 25Mb
Ram.
question is can be dentry cache made swap cachable
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how get dentry cache to swap
2002-09-02 9:09 how get dentry cache to swap Molbo
@ 2002-09-02 10:54 ` Ingo Oeser
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Oeser @ 2002-09-02 10:54 UTC (permalink / raw)
To: Molbo; +Cc: linux-kernel
On Mon, Sep 02, 2002 at 01:09:38PM +0400, Molbo wrote:
> if I try to create on tmpfs 100k nodes, this kills all my free 25Mb
> Ram.
> question is can be dentry cache made swap cachable
Yes, by providing a real inode-like entity in swap.
This is overkill. Use a real file system for your use case.
I think tmpfs is not suited for your need.
Tmpfs is for machines where hitting swap is unlikely but
possible. So creating all temporary FS structures in memory only
makes sense.
For your use case it doesn't make sense and you should use a
normal file system that writes out all its state, if memory gets
thight (or the state is getting too old).
Regards
Ingo Oeser
--
Science is what we can tell a computer. Art is everything else. --- D.E.Knuth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-02 11:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-02 9:09 how get dentry cache to swap Molbo
2002-09-02 10:54 ` Ingo Oeser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®