About Caches
- Generally, the VFS attempts to keep caches of objects, because:
- Allocating objects (memory) takes time.
- Resolving objects takes time.
- So for each object type the VFS holds:
- A list of used (i.e. may NOT be deleted) objects.
- A list of resolved but un-used (i.e. recently resolved but may be
deleted) objects.
- A list of un-assigned and un-used (i.e. completely free) objects - by
using SLAB caches.
Originally written by
guy keren