🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.powerpc
Article #2297

Re: Ask yourself these before you choosing a 32bit OS...

#2297
From: Moises Lejter
Date: Sat, 23 Sep 1995 04:04
25 lines
2235 bytes
In article <43qh32INN3hl@keats.ugrad.cs.ubc.ca>, c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:

  Kazimir> Once you allocate a certain number of pages which are made
  Kazimir> to appear as a linear block, you still face the possiblity
  Kazimir> of wastefully fragmenting the space. The underlying VM
  Kazimir> system doesn't know about your used and unused areas.
  Kazimir> Library functions like malloc() will typically _not_ free a
  Kazimir> frame of memory that is completely within an allocation
  Kazimir> chunk that has just been freed.

I think this is mostly (perhaps only ;-) ) because UNIX systems do not
typically let you "unallocate" a page totally within the process'
virtual memory space (no function is provided that does so).  The only
function available to manipulate memory is sbrk(), which can request
more (or sometime? return) memory at the end of the current process vm
space.  The GNU allocator, for example, will return to the system
pages of vm at the end of the heap, if all allocated blocks within
those pages are freed.

Moises
--
-----------------------------------------------------------------------------
Internet/CSnet:   Moises_Lejter@brown.edu	BITNET:  mlm@browncs.BITNET
UUCP:    ...!uunet!cs.brown.edu!mlm		Phone:	 (401)863-7671
USmail:  Moises Lejter, Box 1910 Brown University, Providence RI 02912
Technical Details
Message-ID: <MLM.95Sep23040448@vegas.cs.brown.edu>
Path: arc1-ca.pugleaf.net!news.brown.edu!mlm
References: <3vh2hc$9dd@falcon.ccs.uwo.ca> <43n5maINNep0@keats.ugrad.cs.ubc.ca> <43nlc8$sll@orion.cybercom.net> <FAT.95Sep20185920@fat.cnit.nsk.su> <43qh32INN3hl@keats.ugrad.cs.ubc.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.brown.edu!mlm
From: mlm@cs.brown.edu (Moises Lejter)
Newsgroups: comp.sys.powerpc,comp.os.linux.advocacy,comp.sys.mac.advocacy,comp.os.os2.advocacy,comp.sys.amiga.advocacy,comp.sys.intel,comp.os.ms-windows.advocacy
Subject: Re: Ask yourself these before you choosing a 32bit OS...
Date: 23 Sep 95 04:04:48
Organization: Dept. of Computer Science, Brown University
Message-ID: <MLM.95Sep23040448@vegas.cs.brown.edu>
References: <3vh2hc$9dd@falcon.ccs.uwo.ca> <43n5maINNep0@keats.ugrad.cs.ubc.ca>
 <43nlc8$sll@orion.cybercom.net> <FAT.95Sep20185920@fat.cnit.nsk.su>
 <43qh32INN3hl@keats.ugrad.cs.ubc.ca>
Reply-To: mlm@cs.brown.edu
NNTP-Posting-Host: vegas.cs.brown.edu
Mime-Version: 1.0
Content-Type: text/plain
In-reply-to: c2a192@ugrad.cs.ubc.ca's message of 20 Sep 1995 19:02:10 -0700
X-Md4-Signature: 8faed50d2d6eb09226b0ef82bedb5a72