Hi,
I've got a couple of doubts about the memory management of BSD, and in general of the vm layer. First of all I'm not sure I understood the aim of the slab allocator. If I'm getting right the slab allocator pre-allocates a set of often used objects, I suspect the vm_ set of structures are part of such objects, is it right?
Second, I guess parts of the kernel cannot be paged out, and I guess the vm layer is in such part, so the kernel must keep a set of resident pages. What happens if the physical memory is smaller than the size of the resident pages of the kernel? And is such resident part tunable in its size?
Thanks
I've got a couple of doubts about the memory management of BSD, and in general of the vm layer. First of all I'm not sure I understood the aim of the slab allocator. If I'm getting right the slab allocator pre-allocates a set of often used objects, I suspect the vm_ set of structures are part of such objects, is it right?
Second, I guess parts of the kernel cannot be paged out, and I guess the vm layer is in such part, so the kernel must keep a set of resident pages. What happens if the physical memory is smaller than the size of the resident pages of the kernel? And is such resident part tunable in its size?
Thanks