*BSD News Article 69590


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!newsfeed.internetmci.com!in1.uu.net!brighton.openmarket.com!wizard.pn.com!Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!usenet
From: j@ida.interface-business.de (J Wunsch)
Newsgroups: comp.unix.bsd.misc
Subject: Re: Why does this program panic 4.4BSD?
Date: 28 May 1996 12:34:06 GMT
Organization: interface business GmbH, Dresden
Lines: 29
Message-ID: <4oerru$a15@innocence.interface-business.de>
References: <4o2kn3$21u@panix2.panix.com>
  <4o4eu1$mr6@innocence.interface-business.de> <4o5rck$etb@panix2.panix.com>
Reply-To: joerg_wunsch@interface-business.de (Joerg Wunsch)
NNTP-Posting-Host: ida.interface-business.de
X-Newsreader: knews 0.9.6
X-Phone: +49-351-31809-14
X-Fax: +49-351-3361187
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

tls@panix.com (Thor Lancelot Simon) wrote:

> >Your code wasn't compilable on my FreeBSD system ...

> I didn't test it using mmap for memory allocation under any 4.4
> variant.  Does FreeBSD define "sun" in its C preprocessor, on the
> i386?!

Of course not.  I've misread your program (ifdef/ifndef), since the
original post was somewhat mangled.

> What happens if you allocate the memory with malloc()?  That's what blew up
> NetBSD, BSDI, and OpenBSD.

As Nate also explained, nothing happens.  I can bump MEGS up to 48 on
a 32 MB system without ill side-effects, regardless of whether i'm
running as root or not.  Bumping it to 64 apparently resulted in some
unchecked failure, since RSS and VSZ remained fairly low then.  I
continued to work normally on this machine while the process held > 48
MB of virtual memory (my boss asked me for some Web page, so i've
switched windows and used the running Netcrap without even noticing
the memory hogging process).

Of course, FreeBSD's VM system is quite different from 4.4BSD.

-- 
J"org Wunsch					       Unix support engineer
joerg_wunsch@interface-business.de       http://www.interface-business.de/~j