struct thread allocation

Nicolas Thery nthery at gmail.com
Sat May 17 00:07:20 PDT 2008


Hello,

Instances of struct thread are allocated using a custom object caching
mechanism (per-cpu list of free structures (gd_tdffreeq) backed up by
zone).

Why doing so instead of using the objcache or kmalloc?  Was the lwkt
s/system implemented before objcache?

Cheers,
Nicolas





More information about the Kernel mailing list