2010-05-31 :-)
_ 朝ッ
0520 起床
_ [リッジレーサー7]リッジレーサー7 ARC 7月を見直した
カテゴリー2 と カテゴリー1 のみのマシンもあるので結局すべてカテゴリー1 にした。カテゴリー2 はカテゴリー1 と比べて最高速が 20km/h くらい遅いけど体感的にはあまり変わらないよね。
_ [kern.mbuf.nmbclusters][NetBSD]NetBSD kern.mbuf.nmbclusters(2)
相変わらず WARNING!! と叫ばれるので
WARNING: mclpool limit reached; increase NMBCLUSTERS WARNING: mclpool limit reached; increase NMBCLUSTERS WARNING: mclpool limit reached; increase NMBCLUSTERS WARNING: mclpool limit reached; increase NMBCLUSTERS WARNING: mclpool limit reached; increase NMBCLUSTERS WARNING: mclpool limit reached; increase NMBCLUSTERS WARNING: mclpool limit reached; increase NMBCLUSTERS WARNING: mclpool limit reached; increase NMBCLUSTERS
いまいくつだっけ
% sysctl -A | grep mbuf kern.mbuf.msize = 256 kern.mbuf.mclbytes = 2048 kern.mbuf.nmbclusters = 1024 kern.mbuf.mblowat = 16 kern.mbuf.mcllowat = 8 sysctl: kern.mbuf.stats: this type is unknown to this program
とりあえず 2 倍にするよ
% sudo sysctl -w kern.mbuf.nmbclusters=2048 sysctl: kern.mbuf.nmbclusters: sysctl() failed with Operation not permitted
怒られたよ
man 8 sysctl を眺めるよ
kern.mbuf (KERN_MBUF) Return information about the mbuf control variables. Mbufs are data structures which store network packets and other data struc- tures in the networking code, see mbuf(9). The third level names for the mbuf variables are detailed below. The changeable column shows whether a process with appropriate privilege may change the value. Third level name Type Changeable kern.mbuf.mblowat integer yes kern.mbuf.mclbytes integer yes kern.mbuf.mcllowat integer yes kern.mbuf.msize integer yes kern.mbuf.nmbclusters integer yes The variables are as follows: kern.mbuf.mblowat (MBUF_MBLOWAT) The mbuf low water mark. kern.mbuf.mclbytes (MBUF_MCLBYTES) The mbuf cluster size. kern.mbuf.mcllowat (MBUF_MCLLOWAT) The mbuf cluster low water mark. kern.mbuf.msize (MBUF_MSIZE) The mbuf base size. kern.mbuf.nmbclusters (MBUF_NMBCLUSTERS) The limit on the number of mbuf clusters. The variable can only be increased, and only increased on machines with direct-mapped pool pages.
ふうむ
man 3 sysctl を眺めるよ
[EPERM] An attempt is made to set a read-only value. [EPERM] A process without appropriate privilege attempts to set a value or to create or destroy a node. [EPERM] An attempt to change a value protected by the current kernel security level is made.
え
port-alpha: Re: Realistic NMBCLUSTERS limit?
The behavior of making NMBCLUSTERS buffer depends on which port you're using. - On ports that use direct-mapped pool pages (Alpha, MIPS, PowerPC, VAX), this merely places an upper-bound on the number of pages which can be allocated to mbuf clusters. On these platforms, the limit can be adjusted dynamically with kern.mbuf.nmbclusters. - On ports that do not use direct-mapped pool pages (everything but the platforms listed above), NMBCLUSTERS is used to size a kernel virtual memory map `mb_map'. This map CANNOT be resized at run time. Explaining why is beyond the scope of this message. Just trust me on this one.
あらやだ。
soda さんのいうとおり[ 20070306#p05 ] 素直にカーネルコンフィグします。
[ツッコミを入れる]