deadlock in "zoneli" state on 6.2-PRERELEASE

LI Xin delphij at
Mon Dec 11 22:46:56 PST 2006

Hi, Nikolay,

Nikolay Pavlov wrote:
> On Tuesday, 12 December 2006 at  2:59:37 +0800, LI Xin wrote:
>> Hi, Nikolay,
>> Nikolay Pavlov wrote:
>>> On Monday, 11 December 2006 at 15:59:03 +0800, LI Xin wrote:
>>>> Hi,
>>>> Would you please give the following patch a try?
>>>> Note: Please revert my previous patch against sys/kern/kern_mbuf.c.
>>>> This patch should be applied against sys/vm/ [RELENG_6 or RELENG_6_2],
>>>> it schedules a drain of uma zones when they are low on memory.
>>> This time things worked out a bit better, there was no Kernel panic and
>>> my server managed to overcome the "magic" number 65550 mbufs. But very
>>> soon the server reached another limit - 131072 mbuf clusters  
>> Do you still get squid stuck in "zoneli" state and the server became
>> unresponsive?
> Yes. No panic, but still idle in zoneli and the server become
> unresponsive via network.

I am not quite sure but please let me know if the patch:

would help the situation.  You can also modify wakeup_one(keg); to
wakeup(keg); manually, at sys/vm/uma_core.c:2507.

Note that this would be a (potentially) a pessimization for zonelim
case, where all zonelim'ed threads would be waken rather than only one.
 However, confirming whether this would help your situation, would help
to narrow down the issue so we can think about a better solution for it.


Xin LI <delphij at>
FreeBSD - The Power to Serve!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-stable mailing list