migrating proc from zone to objcache

Jeffrey Hsu hsu at dragonflybsd.org
Tue Apr 1 00:29:00 PDT 2008


  >> Well, the zone allocator is MP-safe.  It's not hard to lock up the places
  >> that manipulate the linked-list of free items. Look for uses of the zlock
  >> field.

  > Well it is documented as MP-safe but it isn't actually and is deprecated:

  > http://leaf.dragonflybsd.org/mailarchive/kernel/2008-01/msg00045.html

I think you misread that post.  The zone allocator itself is MP-safe.
(Again, look for the zlock spinlock in the zone allocator code to
see for yourself that it's MP-safe.)  The post is refering to the
subsystems that use the zone allocators as being not MP-safe.

							Jeffrey






More information about the Kernel mailing list