Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2006 14:46:09 +0800
From:      LI Xin <delphij@delphij.net>
To:        Nikolay Pavlov <quetzal@zone3000.net>, LI Xin <delphij@delphij.net>,  freebsd-stable@FreeBSD.org, Robert Watson <rwatson@FreeBSD.org>
Subject:   Re: deadlock in "zoneli" state on 6.2-PRERELEASE
Message-ID:  <457E5031.6000103@delphij.net>
In-Reply-To: <20061211205238.GA5733@zone3000.net>
References:  <20061122195549.GA57018@zone3000.net> <338b359d969e9c68deaf49096aa91995@mail.geekcn.org> <20061123160208.GA62732@zone3000.net> <456662F4.6000306@delphij.net> <20061125103755.GA78288@zone3000.net> <456887CD.50606@delphij.net> <20061125212004.GA22786@zone3000.net> <457D0FC7.6010808@delphij.net> <20061211180817.GA4557@zone3000.net> <457DAA99.60605@delphij.net> <20061211205238.GA5733@zone3000.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig16FA9D95BD88E40747ED4DE3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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?
>>>>
>>>> http://people.freebsd.org/~delphij/misc/patch-zonelim-drain
>>>>
>>>> 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 a=
nd
>>> my server managed to overcome the "magic" number 65550 mbufs. But ver=
y
>>> soon the server reached another limit - 131072 mbuf clusters =20
>> Do you still get squid stuck in "zoneli" state and the server became
>> unresponsive?
>=20
> 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:

http://people.freebsd.org/~delphij/misc/patch-zonelim-drain-20061212

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.

Thanks!

Cheers,
--=20
Xin LI <delphij@delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!


--------------enig16FA9D95BD88E40747ED4DE3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFflAxOfuToMruuMARAxjYAJwIt/nAbkr6dmz5GeJxE7RzbAm6WQCeNcjc
iStPtjgPgZkuAJT7ZYhH5YM=
=ovK2
-----END PGP SIGNATURE-----

--------------enig16FA9D95BD88E40747ED4DE3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?457E5031.6000103>