*BSD News Article 12649


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!howland.reston.ans.net!gatech!concert!sas!mozart.unx.sas.com!torpid.unx.sas.com!sastdr
From: sastdr@torpid.unx.sas.com (Thomas David Rivers)
Subject: VM problems w/unlimited memory?
Sender: news@unx.sas.com (Noter of Newsworthy Events)
Message-ID: <C3qpIH.Is9@unx.sas.com>
Date: Thu, 11 Mar 1993 19:44:40 GMT
Nntp-Posting-Host: torpid.unx.sas.com
Organization: SAS Institute Inc.
Lines: 73


 I was following the thread about compiling large arrays and the
memory limits; so I thought I would try out something.

 Since I use the sh (actually bash) there is no limit command; so
I thought to myself - I'll just run csh; reset the limit and crank
up a sh...

  Ok, Here's the result:

[puddles]$ csh
% limit
cputime         unlimited
filesize        unlimited
datasize        6144 kbytes
stacksize       512 kbytes
coredumpsize    unlimited
memoryuse       6916 kbytes
memorylocked    unlimited
maxproc         40
openfiles       64
% unlimit
% limit
cputime         unlimited
filesize        unlimited
datasize        32768 kbytes
stacksize       32768 kbytes
coredumpsize    unlimited
memoryuse       6916 kbytes
memorylocked    unlimited
maxproc         unlimited
openfiles       unlimited
% sh 

   < Reboot... no panic or nothin'>

I was doing this on an 8-meg, 386SX w/ 30 megs of swap space, using a
kernel patched up to 83 (not 84-110.)  My fstab looks like:


/dev/wd0b       none    swap sw 0 0
/dev/wd0a       /       ufs rw 1 1
/dev/wd0h       /usr    ufs rw 1 2

And the label on wd0 is:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    40800        0    4.2BSD      512  4096    16   # (Cyl.    0 - 149)
  b:    61200    40800      swap                        # (Cyl.  150 - 374)
  c:   253776        0    unused        0     0         # (Cyl.    0 - 932)
  d:   253776        0    unused        0     0         # (Cyl.    0 - 932)
  h:   151776   102000    4.2BSD      512  4096    16   # (Cyl.  375 - 932)

And, there is a "swapon -a" command in my /etc/rc (just before the
mounts of the nonfs file systems.)


I do notice a *lot* of disk activity, just before the machine reboots, 
as if the machine was trying to seek to the correct sector.  This is an
IDE drive, so it shouldn't have any bad sectors, and my disklabel doesn't
enable badsectors.  I imagine it's something to do with swaping, but I 
don't know what...

Also, if I simply do "csh", then "sh" - I don't get the reboot, and
everything works fine...

Finally, since I didn't see a panic message, I thought I'd look at
/var/log/messages, but nothing is in there either....

	- Dave Rivers -
	(rivers@ponds.uucp (home))
	(sastdr@unx.sas.com (work))
-- 
UPDATE ALL INFORMATION AND POD INTO COSMOS - Federal Express