netstat -M and netstat -N

2009-03-15 Thread cip...@gmail.com

While looking at the netstat man pages, I saw an interesting option:

 -MExtract values associated with the name list from the specified
   core instead of the default /dev/kmem.

 -NExtract the name list from the specified system instead of the
   default, which is the kernel image the system has booted from.
what do these two options mean? Does it tell netstat to load its values 
from

somewhere else? This seems to exist only in FreeBSD's version of netstat.
Thanks in advance.

Cipta
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Detecting network memory leaks using netstat -m

2008-12-14 Thread Yony Yossef
Hi All,
 
I'm trying to find out whether my ethernet driver is leaking.
I just found out about netstat -m, but I don't understand some of it's
output.
 
Can somebody explain me what is "mbuf+clusters out of packet secondary zone
in use" ?
My output shows it raised significantly during equilibrium after several
stress runs:
 
BEFORE
 
16641/217734/234375 mbufs in use (current/cache/total)
16640/217766/234406/262144 mbuf clusters in use (current/cache/total/max)
256/1664 mbuf+clusters out of packet secondary zone in use (current/cache)
 
AFTER
 
625083/86562/711645 mbufs in use (current/cache/total)
180264/81880/262144/262144 mbuf clusters in use (current/cache/total/max)
160420/311 mbuf+clusters out of packet secondary zone in use (current/cache)
 
Thanks
Yony
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Detecting network memory leaks using netstat -m

2008-12-14 Thread Yehonatan Yossef
Hi All,

I'm trying to find out whether my ethernet driver is leaking.
I just found out about netstat -m, but I don't understand some of it's
output.

Can somebody explain me what is "mbuf+clusters out of packet secondary
zone in use" ?
My output shows it raised significantly during equilibrium after several
stress runs:

BEFORE

16641/217734/234375 mbufs in use (current/cache/total)
16640/217766/234406/262144 mbuf clusters in use
(current/cache/total/max)
256/1664 mbuf+clusters out of packet secondary zone in use
(current/cache)

AFTER

625083/86562/711645 mbufs in use (current/cache/total)
180264/81880/262144/262144 mbuf clusters in use
(current/cache/total/max)
160420/311 mbuf+clusters out of packet secondary zone in use
(current/cache)

Thanks
Yony
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


little lost with my netstat -m output

2005-07-16 Thread Justin Robertson


I have a couple of issues that I'm somewhat concerned about based on
some netstat output results.

I have a few boxes running 4.11-STABLE that provide this;

FreeBSD 4.11-STABLE #0: Wed May  4 09:49:52 PDT 2005 (i386)

# netstat -m
netstat: sysctl: retrieving mbstat: Cannot allocate memory



And then two boxes running 5.4-STABLE that provide this;



FreeBSD 5.4-STABLE #0: Wed May 18 11:51:30 PDT 2005 (amd64)

# netstat -m
1358787 mbufs in use
18446744073709476645/32768 mbuf clusters in use (current/max)
0/0/0 sfbufs in use (current/peak/max)
189754 KBytes allocated to network
0 requests for sfbufs denied
0 requests for sfbufs delayed
4735 requests for I/O initiated by sendfile
300 calls to protocol drain routines



FreeBSD 5.4-STABLE #0: Wed May 18 11:51:18 PDT 2005 (amd64)

# netstat -m
740238 mbufs in use
131702/32768 mbuf clusters in use (current/max)
0/0/0 sfbufs in use (current/peak/max)
448463 KBytes allocated to network
0 requests for sfbufs denied
0 requests for sfbufs delayed
10981 requests for I/O initiated by sendfile
492 calls to protocol drain routines


  Now, the 4.11 boxes failing to report and rather giving me a memory
error are somewhat troubling, but what's more troubling is the 5.4 boxes
showing current usage beyond the max limitations. Not to mention
consuming between 190 and 450mb for net traffic. The output just seems
so out of touch... While all the machines are frequented with attacks,
none are in progress at the moment, and the machines rarely suffer
anything more than lag due to network saturation... If this spike was
the result of an attack, why were they never released? I'm generally
confused by what I'm seeing here, what gives?




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


little lost with my netstat -m output

2005-07-16 Thread Justin Robertson


I have a couple of issues that I'm somewhat concerned about based on 
some netstat output results.


I have a few boxes running 4.11-STABLE that provide this;

FreeBSD 4.11-STABLE #0: Wed May  4 09:49:52 PDT 2005 (i386)

# netstat -m
netstat: sysctl: retrieving mbstat: Cannot allocate memory



And then two boxes running 5.4-STABLE that provide this;



FreeBSD 5.4-STABLE #0: Wed May 18 11:51:30 PDT 2005 (amd64)

# netstat -m
1358787 mbufs in use
18446744073709476645/32768 mbuf clusters in use (current/max)
0/0/0 sfbufs in use (current/peak/max)
189754 KBytes allocated to network
0 requests for sfbufs denied
0 requests for sfbufs delayed
4735 requests for I/O initiated by sendfile
300 calls to protocol drain routines



FreeBSD 5.4-STABLE #0: Wed May 18 11:51:18 PDT 2005 (amd64)

# netstat -m
740238 mbufs in use
131702/32768 mbuf clusters in use (current/max)
0/0/0 sfbufs in use (current/peak/max)
448463 KBytes allocated to network
0 requests for sfbufs denied
0 requests for sfbufs delayed
10981 requests for I/O initiated by sendfile
492 calls to protocol drain routines


  Now, the 4.11 boxes failing to report and rather giving me a memory 
error are somewhat troubling, but what's more troubling is the 5.4 boxes 
showing current usage beyond the max limitations. Not to mention 
consuming between 190 and 450mb for net traffic. The output just seems 
so out of touch... While all the machines are frequented with attacks, 
none are in progress at the moment, and the machines rarely suffer 
anything more than lag due to network saturation... If this spike was 
the result of an attack, why were they never released? I'm generally 
confused by what I'm seeing here, what gives?




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: netstat -m 'cannot allocate memory'

2004-07-29 Thread Dan Nelson
In the last episode (Jul 29), lists said:
> Is it possible to rebuild these without doing a complete make world
> and if so without rebooting ?

Yes:

cd /usr/src/lib/libkvm && make obj && make depend && make && make install
cd /usr/src/usr.bin/netstat && make obj && make depend && make && make install

You may also need to rebuild systat, sockstat, netstat, lsof, and possibly
other programs, which is why a buildworld is usually recommended.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: netstat -m 'cannot allocate memory'

2004-07-29 Thread lists
Is it possible to rebuild these without doing a complete make world
and if so without rebooting ?
Dan Nelson wrote:
In the last episode (Jul 29), lists said:
 

Hello,
On 2 of my systems I get the following error while doing netstat -m:
$ netstat -m
netstat: sysctl: retrieving mbstat: Cannot allocate memory
This is a PIV 2ghz, with 1,5 GB of memory
   

That means you have rebuilt your kernel and now kernel and world are out of
sync.  At minimum, rebuild libkvm and netstat.
 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: netstat -m 'cannot allocate memory'

2004-07-29 Thread Dan Nelson
In the last episode (Jul 29), lists said:
> Hello,
> 
> On 2 of my systems I get the following error while doing netstat -m:
> 
> $ netstat -m
> netstat: sysctl: retrieving mbstat: Cannot allocate memory
> 
> This is a PIV 2ghz, with 1,5 GB of memory

That means you have rebuilt your kernel and now kernel and world are out of
sync.  At minimum, rebuild libkvm and netstat.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: netstat -m 'cannot allocate memory'

2004-07-29 Thread lists
/var/log/messages gives:
Jul 29 01:55:56 server /kernel: All mbuf clusters exhausted, please see 
tuning(7).

So I have set in /boot/loader.conf
kern.ipc.nmbclusters="32768"
And rebooted the machine but stilll got the same message with netstat -m
dmesg is not giving any weird messages
top:
last pid:  5178;  load averages:  0.22,  0.12,  0.09 
up 0+00:34:27  10:35:01
100 processes: 4 running, 96 sleeping
CPU states: 11.3% user,  0.0% nice,  2.7% system,  0.0% interrupt, 86.0% 
idle
Mem: 131M Active, 444M Inact, 180M Wired, 23M Cache, 163M Buf, 729M Free
Swap: 3072M Total, 3072M Free

# vmstat
procs  memory  pagedisks faults  cpu
r b w avmfre  flt  re  pi  po  fr  sr ad0 ad2   in   sy  cs us 
sy id
2 6 0  238980 767852  439   1   1   0 356   0   0   0  359 3718 168  4  
3 93

Steve wrote:
what does dmesg, tail /var/log/messages, vmstat, and top tell you
--
Steve Rieger
ICQ # 5956607
yahoo IM riegersteve
- Original Message - 
From: "lists" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 29, 2004 1:08 AM
Subject: netstat -m 'cannot allocate memory'

 

Hello,
On 2 of my systems I get the following error while doing netstat -m:
$ netstat -m
netstat: sysctl: retrieving mbstat: Cannot allocate memory
This is a PIV 2ghz, with 1,5 GB of memory
I couldn't find anything about this on the internet.. anyone that has
any idea whats wrong here ?
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
   

"[EMAIL PROTECTED]"
 

 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: netstat -m 'cannot allocate memory'

2004-07-29 Thread Steve
what does dmesg, tail /var/log/messages, vmstat, and top tell you
--
Steve Rieger
ICQ # 5956607
yahoo IM riegersteve
- Original Message - 
From: "lists" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 29, 2004 1:08 AM
Subject: netstat -m 'cannot allocate memory'


> Hello,
>
> On 2 of my systems I get the following error while doing netstat -m:
>
> $ netstat -m
> netstat: sysctl: retrieving mbstat: Cannot allocate memory
>
> This is a PIV 2ghz, with 1,5 GB of memory
>
>
> I couldn't find anything about this on the internet.. anyone that has
> any idea whats wrong here ?
>
> Thanks
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


netstat -m 'cannot allocate memory'

2004-07-29 Thread lists
Hello,
On 2 of my systems I get the following error while doing netstat -m:
$ netstat -m
netstat: sysctl: retrieving mbstat: Cannot allocate memory
This is a PIV 2ghz, with 1,5 GB of memory
I couldn't find anything about this on the internet.. anyone that has 
any idea whats wrong here ?

Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: netstat -m

2003-10-23 Thread S H A N
hi,
it may not be your mbufs in the first place. confirm the integrity of your 
layer 1 first.

S H A N


On Thu Oct 23, 2003 at 03:50:58AM SGT, Your Name wrote:

> 
> -- 
> Hi all
> 
> I increased the "kern.ipc.nmbclusters=129536"
> 
> but still got the memory denied
> 
> Can you help me what is the problem
> 
> netstat -m
> 41202/41440/518144 mbufs in use (current/peak/max):
> 41096 mbufs allocated to data
> 106 mbufs allocated to packet headers
> 41095/41324/129536 mbuf clusters in use (current/peak/max)
> 93008 Kbytes allocated to network (2% of mb_map in use)
> 54 requests for memory denied
> 0 requests for memory delayed
> 0 calls to protocol drain routines
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


netstat -m

2003-10-22 Thread Your Name

-- 
Hi all

I increased the "kern.ipc.nmbclusters=129536"

but still got the memory denied

Can you help me what is the problem

netstat -m
41202/41440/518144 mbufs in use (current/peak/max):
41096 mbufs allocated to data
106 mbufs allocated to packet headers
41095/41324/129536 mbuf clusters in use (current/peak/max)
93008 Kbytes allocated to network (2% of mb_map in use)
54 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"