Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2006 02:59:37 +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:  <457DAA99.60605@delphij.net>
In-Reply-To: <20061211180817.GA4557@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>

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

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.
>=20
>=20
> 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 =20

Do you still get squid stuck in "zoneli" state and the server became
unresponsive?

> (This is my limit for kern.ipc.nmbclusters).
> And server started to drop the packets. After I've =20
> removed the overload I found my server responding but when I actually=20
> accessed it I found out that although the number of connections has=20
> reduces considerably, the memory allocated for the net did not become
> free. So I believe that there is still a mbufs leak somewhere.

This looks weird to me...  Would you please try to add some load to the
server and remove afterwards, to see if the 'current' mbuf clusters
keeps increasing or not?

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


--------------enig8960901BD63976C283198D09
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

iD8DBQFFfaqZOfuToMruuMARA0tdAJ9cgWd99MdfQrzYdAhuQVwIkHJu3QCfcO67
R5qTI0EJnf+rRLl15yY8iRs=
=wPBV
-----END PGP SIGNATURE-----

--------------enig8960901BD63976C283198D09--



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