Article View: comp.sys.powerpc
Article #2314Re: Ask yourself these before you choosing a 32bit OS...
From: Kazimir Kylheku
Date: Sun, 24 Sep 1995 17:36
Date: Sun, 24 Sep 1995 17:36
30 lines
2259 bytes
2259 bytes
In article <MLM.95Sep23040448@vegas.cs.brown.edu>, Moises Lejter <mlm@cs.brown.edu> wrote: >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. That's not quite true. In addition to sbrk(), UNIX can allocate memory anywhere in your address space using anonymously mapped segments. Mapped segments can represent an underlying file, or they can just be pure virtual memory. Mapping is rarely done page by page, though. :) -- PGP key id is 0xD3C7995D. Molybdenum 95! Got your ounce of fission byproduct yet?
Technical Details
Message-ID:
<4444ugINNm6f@keats.ugrad.cs.ubc.ca>Path:
arc1-ca.pugleaf.net!keats.ugrad.cs.ubc.ca!not-for-mailReferences:
<3vh2hc$9dd@falcon.ccs.uwo.ca> <FAT.95Sep20185920@fat.cnit.nsk.su> <43qh32INN3hl@keats.ugrad.cs.ubc.ca> <MLM.95Sep23040448@vegas.cs.brown.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!keats.ugrad.cs.ubc.ca!not-for-mail From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) 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: 24 Sep 1995 10:36:16 -0700 Organization: Computer Science, University of B.C., Vancouver, B.C., Canada Message-ID: <4444ugINNm6f@keats.ugrad.cs.ubc.ca> References: <3vh2hc$9dd@falcon.ccs.uwo.ca> <FAT.95Sep20185920@fat.cnit.nsk.su> <43qh32INN3hl@keats.ugrad.cs.ubc.ca> <MLM.95Sep23040448@vegas.cs.brown.edu> NNTP-Posting-Host: keats.ugrad.cs.ubc.ca