Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2013 20:48:41 +0200
From:      Sami Halabi <sodynet1@gmail.com>
To:        Nicolas de Bari Embriz Garcia Rojas <nbari@inbox.im>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: how to measure bandwidth per jail
Message-ID:  <CAEW%2Boga0AyCzOpbPuj_2tu5LhqTyFOX0hHnD0e75yqpn2M2ZqQ@mail.gmail.com>
In-Reply-To: <514B510F.90702@inbox.im>
References:  <6C05923E-61FE-46BF-B006-DB078AAAFAA4@inbox.im> <20130321181200.GG94452@www.jail.lambertfam.org> <514B510F.90702@inbox.im>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi
Try jnettop from ports... exactly what your looking at.

However its old, so the counters are 32 bit rather than 64 which means its
pretty effective on 100mbit links
plus its cpu consumer by design
Sami
On Mar 21, 2013 8:27 PM, "Nicolas de Bari Embriz Garcia Rojas" <
nbari@inbox.im> wrote:

> Hi, one strange behavior I notice (freeBSD 9.1) is that I don't see the
> Obytes per IP only for the bce0 interface, but I do for the cloned
> interface lo1:
>
> here is a link with the output of netstat -ib http://pastebin.com/arrRsM78
>
> any ideas ?
>
> regards.
>
> On 03/21/2013 18:12, Scott Lambert wrote:
> > On Thu, Mar 21, 2013 at 01:26:13AM +0000, Nicolas de Bari Embriz Garcia
> Rojas wrote:
> >> Hi, any tool, idea or method for measuring the bandwidth consumed per
> >> jail ? (or by IP)
> >>
> >> What about using pflow ( pseudo-device pflow) any advice ?
> > I found a thread about this topic yesterday via Google.  It was on
> > the FreeBSD-ISP@frebbsd.org mailing list sometime in 2005 if I
> > remember correctly.
> >
> > They came up with a few options
> >
> >       netflow,
> >
> >       counting rules in IPFW/pf/ipf
> >
> >       netstat -rni ( which gets you packet counts,
> >                       -rnbi gives you in-bytes and out-bytes)
> >
> >       bandwidthd (in ports I believe)
> >
> >       I suppose ntop could do similar things.
> >
> > My favorite option was netstat -rnbi | awk '{print $8,$11}' and
> > feeding that to MRTG.  I have not gotten it implemented yet.
> >
> > One consideration is that on FreeBSD 8 and older, you don't get out
> > traffic per IP address with netstat, as far as I can tell.  We're
> > moving to FreeBSD 9 pretty quickly anyway.
> >
>
> _______________________________________________
> freebsd-jail@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-jail
> To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEW%2Boga0AyCzOpbPuj_2tu5LhqTyFOX0hHnD0e75yqpn2M2ZqQ>