uma_zcreate and number of items to create
Ed Schouten
ed at fxq.nl
Fri Feb 8 07:38:29 UTC 2008
* Pietro Cerutti <gahr at gahr.ch> wrote:
> Before starting to hack it, I would like to know what you think about
> it. Do you find it useful or not?
I was thinking about this as well, because my TTY hackery could also use
this to preallocate cblocks to store characters from interrupts, but
then you could also just keep a free list to store them. You need to
allocate them anyway, so the space is already wasted.
Using your own per-{device,object,etc} free list should even be faster,
because uma probably has some per-zone spinlock, while you may not need
the locking in your specific situation (i.e. another lock already
protects it).
--
Ed Schouten <ed at fxq.nl>
WWW: http://g-rave.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080208/2a148118/attachment.pgp
More information about the freebsd-hackers
mailing list