DragonFly BSD
DragonFly kernel List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: lwbuf allocation question?


From: "Samuel J. Greear" <sjg@xxxxxxxxxxxx>
Date: Sun, 4 Apr 2010 09:08:30 -0600

What version are you looking at?

http://gitweb.dragonflybsd.org/dragonfly.git/blob/HEAD:/sys/cpu/i386/misc/lwbuf.c

Latest doesn't sleep at all, it relies entirely on objcache, which may
sleep internally since objcache_get is being called with M_WAITOK.

Sam


On Sun, Apr 4, 2010 at 8:28 AM, Venkatesh Srinivas
<me@endeavour.zapto.org> wrote:
> Hi,
> Is there any reason that the lwbuf allocation code is back to tsleep(... ,
> hz) if it can't get an lwbuf from the objcache? Perhaps the tsleep should be
> without a timeout and lwbuf_free should wakeup a waiter, as it did in past
> revisions?
> Thanks,
> -- vs
>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]