Re: [PATCH 0/3] Fadvise: Directory level page cache cleaning support

From: Andreas Dilger
Date: Mon Dec 30 2013 - 14:40:19 EST

On Dec 30, 2013, at 12:18, Dave Hansen <dave.hansen@xxxxxxxxx> wrote:
> Why is this necessary to do in the kernel? Why not leave it to
> userspace to walk the filesystem(s)?

I would suspect that trying to do it in userspace would be quite bad. It would require traversing the whole directory tree to issue cache flushed for each subdirectory, but it doesn't know when to stop traversal. That would mean the "cache flush" would turn into "cache pollute" and cause a lot of disk IO for subdirectories not in cache to begin with.

Cheers, Andreas--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at