From owner-freebsd-bugs Sat Feb 5 6:19:39 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by builder.freebsd.org (Postfix) with ESMTP id 5C04944C5 for ; Sat, 5 Feb 2000 06:19:36 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA40370; Sat, 5 Feb 2000 06:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Sat, 5 Feb 2000 06:20:02 -0800 (PST) Message-Id: <200002051420.GAA40370@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Jeroen Ruigrok/Asmodai Subject: Re: kern/1533: Machine can be panicked by a userland program. Reply-To: Jeroen Ruigrok/Asmodai Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/1533; it has been noted by GNATS. From: Jeroen Ruigrok/Asmodai To: FreeBSD Gnats Cc: Subject: Re: kern/1533: Machine can be panicked by a userland program. Date: Sat, 5 Feb 2000 15:18:01 +0100 [resend due to hub/builder mail problems] This PR which details an old mmap() seems to be fixed in CURRENT at least, and I suspect Matthew Dillon is guilty for that. =) My results: [asmodai@celestial] (17) $ find /usr/src -type f -print | ./a.out warning: this program uses gets(), which is unsafe. [512] .. [1024] .. [1536] .. [2048] .. [2560] .. [3072] .. [3584] .. [4096] .. [4608] .. [5120] .. [5632] .. [6144] .. [6656] .. [7168] .. [7680] .. [8192] .. [8704] .. [9216] .. [9728] .. [10240] .. [10752] .. [11264] .. [11776] .. [12288] .. [12800] .. [13312] .. [13824] .. [14336] .. [14848] .. [15360] .. [15872] .. [16384] .. [16896] .. [17408] .. [17920] .. [18432] .. [18944] .. [19456] .. [19968] .. [20480] .. [20992] .. [21504] .. [22016] .. [22528] .. [23040] .. [23552] .. [24064] .. [24576] .. [25088] .. [25600] .. [26112] .. [26624] .. [27136] .. [27648] .. [28160] .. [28672] .. [29184] .. [29696] .. [30208] .. [30720] .. [31232] .. [31744] .. [32256] .. [32768] .. [33280] .. [33792] .. [34304] .. [34816] .. [35328] .. [35840] .. [36352] .. [36864] .. [37376] .. [37888] .. [38400] .. [38912] .. mmap: Cannot allocate memory mmap: Cannot allocate memory mmap: Cannot allocate memory mmap: Cannot allocate memory mmap: Cannot allocate memory mmap: Cannot allocate memory mmap: Cannot allocate memory ((ad inifitum I guess)) One funny thing is that systat -vmstat reported freevnodes of between the 20 and 30 every time, but when mmap was spewing the Cannot allocate memory warnings it suddenly rose: Mem:KB REAL VIRTUAL VN PAGER SWAP PAGER Tot Share Tot Share Free in out in out Act 3120 664 5104 680 45400 count All 81372 1288 2689648 1472 pages Interrupts Proc:r p d s w Csw Trp Sys Int Sof Flt cow 100 total 4 3 14 100 1 1 41624 wire ata-pci0 i 5944 act mux irq18 0.3%Sys 0.0%Intr 0.0%User 0.0%Nice 99.7%Idl 33788 inact fdc0 irq6 | | | | | | | | | | 16 cache atkbd0 irq 45384 free sio0 irq4 daefr sio1 irq3 Namei Name-cache Dir-cache prcfr 100 clk irq0 Calls hits % hits % react pdwake zfod pdpgs Disks ad0 ad4 fd0 md0 ofod intrn KB/t 0.00 0.00 0.00 0.00 %slo-z 10939 buf tps 0 0 0 0 tfree 5 dirtybuf MB/s 0.00 0.00 0.00 0.00 8966 desiredvnodes % busy 0 0 0 0 43102 numvnodes 35659 freevnodes ^^^^^ Poul-Henning and Matthew, I'd love to hear your conclusions on this so that I can either close this PR with a ``fixed in CURRENT/4.0'' notice or get you guys to wonder about the results I pasted above. =) -- Jeroen Ruigrok vd W/Asmodai asmodai@[wxs.nl|bart.nl|freebsd.org] Documentation nutter/B-rated Coder BSD: Technical excellence at its best The BSD Programmer's Documentation Project Cogito, ergo sum... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message