Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Mar 1999 14:29:28 -0800 (PST)
From:      Jesse <j@lumiere.net>
To:        Bill Fumerola <billf@chc-chimes.com>
Cc:        freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG
Subject:   Re: 3.1-STABLE dies on 40+ connects
Message-ID:  <Pine.BSF.4.05.9903251417420.530-100000@leaf.lumiere.net>
In-Reply-To: <Pine.HPP.3.96.990325163030.7134I-100000@hp9000.chc-chimes.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> Definitely. Could you get some statistics on mbuf/client, for instance,
> which we could use to determine if the climb is linear or exponential.

Okay, I got my stats. Keep in mind that in each case, the mbuf's would
vary +-200 but I tried to get an average value. Also, particularly in
icecast's case, the number of mbuf's used would be higher in the first 20
seconds of connection, then drop down some.

I also compared shoutcast, another program which does the same thing. It
spawns a child for each client through (as opposed to a single process).

ICECAST -- 10 Clients
281/1752/4096 mbuf clusters in use (current/peak/max)
3760 Kbytes allocated to network (16% in use)

ICECAST -- 20 Clients
513/1752/4096 mbuf clusters in use (current/peak/max)
3760 Kbytes allocated to network (29% in use)

ICECAST -- 30 Clients
860/1752/4096 mbuf clusters in use (current/peak/max)
3760 Kbytes allocated to network (48% in use)

ICECAST -- 40 Clients
1023/1620/4096 mbuf clusters in use (current/peak/max)
3464 Kbytes allocated to network (62% in use)

ICECSAT -- 50 Clients  
3340/3884/4096 mbuf clusters in use (current/peak/max)
8268 Kbytes allocated to network (85% in use)

ICECAST -- 60 Clients (crash at 56)
4564/4604/4096 mbuf clusters in use (current/peak/max)
9796 Kbytes allocated to network (99% in use)

SHOUTCAST -- 40 Clients
435/702/4096 mbuf clusters in use (current/peak/max)  
1528 Kbytes allocated to network (61% in use)

SHOUTCAST -- 60 Clients
843/980/4096 mbuf clusters in use (current/peak/max)
2112 Kbytes allocated to network (86% in use)

SHOUTCAST -- 100 Clients
1717/1752/4096 mbuf clusters in use (current/peak/max)
3760 Kbytes allocated to network (97% in use)

> > Is it normal for something to use mbuf's so quickly? Each client is being
> > sent a 128kbps stream. I know sites like ftp.cdrom.com transfer MUCH more
> > than this per second.. soo..
> 
> This is certainly a bug of some sort.

Seeing them compared to shoutcast's, I'd tend to agree. Still, crashing
really sucks. :/

> Does the machine panic or just crash, that would at least be the first
> step is just to get FreeBSD to panic.

I don't know, the machine is remote. I think I'm going to figure out how
to get a panic core dump, then have someone watch it and record the info
when it dies.

---
Jesse <j@lumiere.net>
http://www.lumiere.net/




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9903251417420.530-100000>