CS FundamentalsHardGATE CS

A slab allocator is used inside many kernels. Which statement explains its main advantage?

  1. A. It lets user processes share kernel memory
  2. B. Caches of pre-initialised objects of one size remove internal fragmentation for those objects and make allocation and free very fast
  3. C. It uses buddy splitting to reduce external fragmentation of the disk
  4. D. It avoids the need for paging

Correct answer: B. Caches of pre-initialised objects of one size remove internal fragmentation for those objects and make allocation and free very fast

Each cache holds slabs of objects of exactly one kernel type (e.g. inodes, PCBs); objects are reused without re-initialisation, there is no rounding to powers of two, and allocation is a list pop.

More Operating Systems questions

Exams that ask this topic