Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 2014 09:40:15 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Stefan Stere <icetor.is@bitmessage.ro>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, Alon Ronen <aronen@juniper.net>
Subject:   Re: [zone: Mbuf_cluster] kern.ipc.nmbclusters limit reached in Virtual machine causes downtime
Message-ID:  <CAOtMX2h=D9%2B91Um42ZysVV%2BBCEcLdJfDA4voM9LL3mcdJuR=WA@mail.gmail.com>
In-Reply-To: <1403600001.74170.YahooMailNeo@web162506.mail.bf1.yahoo.com>
References:  <1403600001.74170.YahooMailNeo@web162506.mail.bf1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--001a11c38118b10b7204fc96c60f
Content-Type: text/plain; charset=UTF-8

On Tue, Jun 24, 2014 at 2:53 AM, Stefan Stere <icetor.is@bitmessage.ro> wrote:
> Hi,
>
> I have a vmware virtual server running FreeBSD 10.0 STABLE
> The virtual server has 100mbps port.
>
> It is running a Tor router, consuming an average of 6-7 TB of monthly traffic. Its the only purpose of the server.
>
> Last night it went down, and vmware console log was saying:
> [zone: Mbuf_cluster] kern.ipc.nmbclusters limit reached
>
>
> I don't know what this means - the traffic of the server is unlimited and nothing is capped in any way. What can I do to fix this? I have read on freebsd wiki that I might need to add some lines to sysctl ? can you please confirm? Thank you in advance.

This might be related to a problem that Alon Ronen discovered.  The
kernel can leak mbufs when experiencing memory pressure, if you're
using SOCK_DGRAM or SOCK_SEQPACKET Unix domain sockets (or even
SOCK_STREAM if sending ancillary data).  You could try the attached
patch that Alon and I are working on.

Even if the patch doesn't fix your problem, it would be interesting to
see the output of "vmstat -z".

-Alan

--001a11c38118b10b7204fc96c60f
Content-Type: text/plain; charset=US-ASCII; name="uipc_send.diff"
Content-Disposition: attachment; filename="uipc_send.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_hwtdorqd0

SW5kZXg6IHN5cy9rZXJuL3VpcGNfdX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IFNCX1NUT1A7CiAJCVNP
Q0tCVUZfVU5MT0NLKCZzby0+c29fc25kKTsKIAkJVU5QX1BDQl9VTkxPQ0sodW5wMik7Ci0JCW0g
PSBOVUxMOwogCQlicmVhazsKIAogCWRlZmF1bHQ6Cg==
--001a11c38118b10b7204fc96c60f--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2h=D9%2B91Um42ZysVV%2BBCEcLdJfDA4voM9LL3mcdJuR=WA>