mbufs erhöhen im laufenden Betrieb

From: Oliver Schneider <oliver(at)freeware.de>
Date: Wed, 24 Oct 2001 18:30:49 +0200 (CEST)

Hallo,

> netstat -m
 328/1280/4096 mbufs in use (current/peak/max):
         327 mbufs allocated to data
         1 mbufs allocated to packet headers
 246/1024/1024 mbuf clusters in use (current/peak/max)
 2368 Kbytes allocated to network (77% of mb_map in use)
 4334279 requests for memory denied
 0 requests for memory delayed
 0 calls to protocol drain routines

246 ist gerade ein niedriges Beispiel, ich hab auch schon öfters
aktuelle Werte über 600 gesehen.

gefunden habe ich das:

 IP packets are queued in data structures known as mbufs. The default
 number of mbufs in your system is controlled by the "maxusers" option
 in your config file. The default number of mbuf clusters,
 NMBCLUSTERS, is defined to be 512 + MAXUSERS * 16, and the number
 of mbufs is 4 times the number of mbuf clusters. To increase the
 number of mbufs in your system, you can either increase maxusers, or
 you can explicitly set "options NMBCLUSTERS" in your configuration.
 See the LINT config for details.

Die Option in LINT habe ich gesehen, aber eine neuen Kernel möchte ich
Moment wegen des notwendigen Reboots vermeiden. Also wäre ja die Lösung
den Wert für kern.maxusers zu erhöhen. Wieso geht das nicht im laufenden
Betrieb?

 ddf-gw1:/usr/src/sys/i386/conf # sysctl -w kern.maxusers=64
 sysctl: oid 'kern.maxusers' is read only
 ddf-gw1:/usr/src/sys/i386/conf # sysctl -a | grep secure
 kern.securelevel: -1

Problem ist das der Router zuviel Pakte verliert.

Danke und Gruß
Oliver

-- 
------------------------------------------------------------------
   Wie man weiss, ist "Windows" ebenfalls indianisch und heisst
      ,,Weisser Mann starren durch Glasscheibe auf Sanduhr``
------------------------------------------------------------------
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 24 Oct 2001 - 18:30:59 CEST

search this site