[lkml]   [2009]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 00/32] VFS based Union Mount (V3)
On Tue, 19 May 2009, Valerie Aurora wrote:
> As Jan said, readdir() of read-only unioned file systems works with a
> tmpfs top layer. If you think about it, this is the exact equivalent
> of the version of union mounts which used the in-kernel caching
> approach - except that it's better, because it reuses existing code
> and caches between readdir() calls. Cool, huh?

Yeah... OTOH tmpfs is probably a way too heavyweight solution for
cases where memory is short, and union mounts would typically be used
on such systems.

The big reason why kernel impementation of readdir is hard is that
unswappable kernel memory needs to be used for caching directory
contents while the directory is open. Well, tmpfs does the same,
dentries and inodes are _not_ swappable, and they gobble up memory.

So where's the advantage over implementing a thin deduplicating and
caching layer for union mounts?


 \ /
  Last update: 2009-05-20 11:07    [W:0.091 / U:0.076 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site