Mob rule for dentries
Pavel Emelyanov's per-container dcache management patches are a first attempt at limiting dentry use. This patch works by organizing dentries into "mobs," being groups of dentries all of which represent names in a specific subtree of the filesystem. If the root of a mob were the root of a container's filesystem namespace, all dentries created by that container would be contained within that mob. At that point, a simple sort of resource control can be applied: adding a dentry to a mob which has hit its maximum size would require the removal of another dentry to compensate. If no dentries an be removed, attempts to add others will fail.
The patch set adds three new ioctl() calls: FIMOBROOT to
create a new mob at a given point in the filesystem, FIMOBSIZE to
set the maximum size of a mob, and FIMOBSTAT to query the current
usage of a mob. Pavel is somewhat apologetic about this interface; he
seems to think it will have to change before the work could be considered
upstream. But the first step is get some discussion of the concept; so
far, there have been no responses to Pavel's patches.
| Index entries for this article | |
|---|---|
| Kernel | Containers |
| Kernel | Dentry cache |
