hns - 日記自動生成システム - Version 2.19.9

先月 2009年02月 来月
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2009年02月08日() 旧暦 [n年日記] [更新:"2009/02/09 08:30:04"]

#1 [NetBSD] 結局 NFS server は 4.0 に戻した

5.0_BETA が入っていたが、netboot して 4.0.1 に入直し。
libc.so.12 がないとか言われたし、まだ postfix-script が変 だけれど、多分とりあえず、動いていると思う 以前に 4.0 GENERIC-raid-pckbc を作った時の記録が見つからないので 今回分を書いておく
cvs:
   109  21:44   cvs -d /e/cvsync/cvsync co -r netbsd-4 src
tools:
pts/1:makoto@t-105 22:39:47/090208(/export)> cd src-4
pts/1:makoto@t-105 22:39:56/090208(/export/src-4)> time sudo ./build.sh -j 8 -m amd64 tools >& log-tools
Password:
426.842u 68.159s 7:04.83 116.5% 0+0k 517+79185io 1321pf+0w
kernel
pts/1:makoto@t-105 23:15:08/090208(/export/src-4)> \
time sudo ./build.sh -m amd64 -j 8 \
-T /export/src-4/tooldir.NetBSD-5.0_BETA-i386 \
kernel=GENERIC.MP-raid-pckbc > & log-GENERIC.MP-raid-pckbc3
360.857u 37.707s 1:50.96 359.1% 0+0k 0+35368io 0pf+0w
I am getting 'malloc out of space kmem map', and
vmstat -m |tail -2
 In use 53503K, total allocated 54964K; utilization 97.3%
makoto@t-105 22:56:51/090208(/export/src-4)> cat sys/arch/amd64/conf/GENERIC.MP-raid-pckbc
#       $NetBSD: GENERIC.MP,v 1.2 2005/12/27 00:46:38 chs Exp $

include "arch/amd64/conf/GENERIC"

options         MULTIPROCESSOR
no config       netbsd
config          netbsd  root on raid0a type ?
options         NKMEMPAGES_MAX=393216 
pckbc local fix for ML-115 long wait while booting (device auto-configuration)
pts/1:makoto@t-105 22:58:26/090208(/export/src-4)> cvs diff sys/dev/ic/pckbc.c
Index: sys/dev/ic/pckbc.c
===================================================================
RCS file: /e/cvsync/cvsync/src/sys/dev/ic/pckbc.c,v
retrieving revision 1.35
diff -u -r1.35 pckbc.c
--- sys/dev/ic/pckbc.c  11 Dec 2005 12:21:28 -0000      1.35
+++ sys/dev/ic/pckbc.c  8 Feb 2009 13:48:31 -0000
@@ -143,7 +143,7 @@
        struct pckbc_slotdata *q = t->t_slotdata[slot];
        int s;
        u_char stat, c;
-       int i = 100000; /* if 1 port read takes 1us (?), this polls for 100ms */
+       int i = 1000; /* if 1 port read takes 1us (?), this polls for 100ms */
        int checkaux = t->t_haveaux;
 
        s = splhigh();
pts/1:makoto@t-105 22:58:32/090208(/export/src-4)> 
uname -a
NetBSD u 4.0_STABLE NetBSD 4.0_STABLE (GENERIC.MP-raid-pckbc) #1: \
Sun Feb  8 23:17:13 JST 2009  \
root@t-105:/export/src-4/sys/arch/amd64/compile/obj/GENERIC.MP-raid-pckbc amd64
pts/0:makoto@u 22:34:28/090208(~)> vmstat -m |tail -2
vmstat: Kmem statistics are not being gathered by the kernel.
In use 9025K, total allocated 10022K; utilization 90.1%

pts/0:makoto@u 22:34:41/090208(~)> sysctl -a |grep nkmem
vm.nkmempages = 393216
参考:
pts/1:makoto@t-105 23:25:17/090208(/export/src-4)> grep NKMEM sys/arch/amd64/include/param.h 
#define NKMEMPAGES_MIN_DEFAULT  ((8 * 1024 * 1024) >> PAGE_SHIFT)
#define NKMEMPAGES_MAX_DEFAULT  ((1 *1024 * 1024 * 1024) >> PAGE_SHIFT)
PAGE_SHIFT は 4k = 2^12 ということで 12 なので最後の行は
2^30/2^12 = 2^18 = 262144
ということだ
options DDB_ONPANIC=0 も書いておけば良かった。でもそれは /etc/sysctl.conf でも可能



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)