creat all the dentry objects in memory when mount a fs?

Mulyadi Santosa mulyadi.santosa at gmail.com
Mon Mar 18 11:21:28 EDT 2013


On Mon, Mar 18, 2013 at 12:42 PM, RS <tinyshrimp at 163.com> wrote:
> when a new unlike-Unix filesystem mounted on my Linux system , will it creat
> all the dentry objects in the meory , or will it creat only needed,  and is
> the same to inode objects ?
> So , if all the dentry objects created ,  I think it must consume a large
> memory.

to the best I know, dentry is created only when it is accessed, be it
native filesystem like ext2/3/4 or FUSE based etc.

NB: IMHO you were referring to dcache and icache, because dentry and
inode are the ones which reside on disk

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list