home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!scott.skidmore.edu!psinntp!psinntp!curly.appmag.com!pa
- From: pa@curly.appmag.com (Pierre Asselin)
- Newsgroups: comp.unix.aix
- Subject: Re: AIX malloc and fault tolerance
- Message-ID: <1258@curly.appmag.com>
- Date: 8 Sep 92 19:54:32 GMT
- References: <1992Sep3.135156.9166@medtron.medtronic.com>
- Organization: Applied Magnetics, Goleta, CA
- Lines: 43
-
- In <1992Sep3.135156.9166@medtron.medtronic.com>
- sh0001@israel (Scott Hansohn) writes:
-
- [He bumped into the malloc virtual allocation nonsense again.
- I still get mad just thinking about it.]
-
- >I have questions:
- > 1) Has anyone seen a system where static memory may not really be
- > there, or where a nonzero malloc doesn't guarantee the successful
- > usage of the memory?
-
- Alas, yes. When this thread started about 18 months ago, I tried a
- malloc-touch loop on a DG aviion. No NULLS from malloc, processes
- get killed. Damned! I didn't try large static arrays.
-
- DG has been reasonably good at not reinventing the wheel; this
- wonderful feature may come to us from AT&T; netters confirmed this.
- I was told, however, that it is not a part of the SVID.
-
- > 2) Has anyone heard of SIGDANGER before?
-
- It's an IBM innovation.
-
- > 4) Even if I use this malloc wrapper everywhere in my own code,
- > how do I deal with third-party code I purchase that calls the
- > unwrapped malloc?
-
- Or with the pre-linked code in libc.a?
- Get your money back. (Hah! right.)
-
- Some arguments to the effect that vapour-memory was a good thing were:
- -Lets you use gigantic sparse arrays.
- -Lets vendors ship Fortran binaries with static arrays dimensioned
- to maximum size, and yet have them run on small machines for small
- problems that use only part of the arrays.
-
- I'm skeptical. Sparse arrays at 4kB/page? As for the Fortran bit, it
- only makes sense on machines dedicated to a single application. That
- sure isn't the way we use ours.
- --
-
- --Pierre Asselin, Magnetoresistive Head Engineering, Applied Magnetics.
- pa@appmag.com the usual disclaimers apply.
-