Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 1995 14:58:29 +0300
From:      kallio@jyu.fi (Seppo Kallio)
To:        freebsd-questions@freefall.cdrom.com
Subject:   ** mlock test -> panic, cannot mount partitions - please help **
Message-ID:  <v01510125ac0db671a8a2@[130.234.41.39]>

next in thread | raw e-mail | index | archive | help

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               -- +





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v01510125ac0db671a8a2>