From owner-freebsd-questions Wed Jun 21 04:56:30 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id EAA16366 for questions-outgoing; Wed, 21 Jun 1995 04:56:30 -0700 Received: from cc.jyu.fi (root@cc.jyu.fi [130.234.0.6]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id EAA16360 for ; Wed, 21 Jun 1995 04:56:27 -0700 Received: from [130.234.41.39] (zaphod.maccc.jyu.fi) by cc.jyu.fi with SMTP id AA26215 (5.67a/IDA-1.4.4 for freebsd-questions@freefall.cdrom.com); Wed, 21 Jun 1995 14:58:08 +0300 X-Sender: kallio@pop.jyu.fi Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 21 Jun 1995 14:58:29 +0300 To: freebsd-questions@freefall.cdrom.com From: kallio@jyu.fi (Seppo Kallio) Subject: ** mlock test -> panic, cannot mount partitions - please help ** Sender: questions-owner@FreeBSD.org Precedence: bulk I did try to reserve out of use 32MB of my 64MB memory for test purposes with the program main() { char *p; int i; p = malloc(10000000); i = mlock(p,10000000); sleep(1200); exit; } (Maybe not 100% same, I cannot use the disk at this moment :-( ) And intended to run it 3 times. I did run it as root one time! This got the whole machine down. At boot root mount OK, but fsck: /dev/sd0s1f. No such file or directory Can't stat /dev/sd0s1f same with /dev/sd01e mount -a: /dev/sd01f on /home: no such file or directory same with /dev/sd01e procfs: I/O error I have /home and /usr I did run same program with 1MB memory area and had no problems. It seemed to reserve the 1MB of RAM. I promise never to try this again. ;-) Can I somehow get these partitions mounted? Seppo PS. Is there some other safer method to disable big parts of RAM? I wanted to compare one 32MB Linux machine to my 64MB FreeBSD machine. I think, I cannot disable RAM in hardware, I have 2*32MB SIMMs. -- +-- Seppo Kallio ----- kallio@jyu.fi ---+ ! Computing Center ! Fax +358-41-603611 Phone +358-41-603606 ! ! University of Jyvaskyla ! http://www.jyu.fi/~kallio ! +-- Finland --+-- 62.14N 25.44E -- +