Skip to contentSkip to conversation

how get dentry cache to swap

DISCUSSION Molbo 2 participants 2 messages Sep 2, 2002

lore
Share & tools
lore

Molbo

author
#0 lore raw

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

#1 lore raw
Quoted 3 lines · Molbo

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

Signature · 1 line
Science is what we can tell a computer. Art is everything else. --- D.E.Knuth