🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6041

Re: How to Make Sure that Buffer use ONLY memory

#6041
From: Alan Bellingham
Date: Sun, 12 Jun 2005 23:54
28 lines
2524 bytes
Alan Bellingham <alanb@episys.com> wrote:

>Entirely the opposite - it allows you to ask the operating system to
>pretend the disk is RAM - but at the same time, to use its best caching
>algorithms to ensure disk is only read or written when it can't avoid
>it.

As an aside: many years ago, I went to a presentation on the design of
Windows NT. What surprised me was that the whole OS is designed to work
in paged memory, and it was theoretically possible to run it in (I think
it was) 12K of RAM.

Yes, that was kilobytes, not megabytes. Nearly an order of magnitude
less memory than the then current DOS systems required.

Admitted, it would be catastrophically slow with that little RAM. But
what happened when you added more RAM was that more of the disk was
getting cached. About the only  part of the OS that couldn't be swapped
out to disk was the code that ... swapped the chunks of OS out to disk.
Once you had as much RAM as the 'working set', it had reached full speed
and couldn't get any faster, simply because by then it never reached the
conditions when it need to save memory to disk any more.

Alan Bellingham
-- 
Me <url:mailto:alanb@episys.com> <url:http://www.doughnut.demon.co.uk/>
ACCU - C, C++ and Java programming               <url:http://accu.org/>
The 2004 Discworld Convention                   <url:http://dwcon.org/>
Technical Details
Message-ID: <k9ipa1he30utktbjr65eaeb5i3g32gjaub@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42ab3793$1@newsgroups.borland.com> <gjmna117s71qnpihpbtg7sqmbbvaob90q6@4ax.com> <42abfa21$1@newsgroups.borland.com> <kdqoa11nmfhki6qcdmue2vt9poh235d958@4ax.com> <42ac9598$1@newsgroups.borland.com> <hagpa11u0qdbo5mk1qj7nrael23qn36kig@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,93efc3d53d15c3e4
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Alan Bellingham <alanb@episys.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to Make Sure that Buffer use ONLY memory 
Date: Mon, 13 Jun 2005 00:54:46 +0100
Reply-To: alanb@episys.com
Message-ID: <k9ipa1he30utktbjr65eaeb5i3g32gjaub@4ax.com>
References: <42ab3793$1@newsgroups.borland.com> <gjmna117s71qnpihpbtg7sqmbbvaob90q6@4ax.com> <42abfa21$1@newsgroups.borland.com> <kdqoa11nmfhki6qcdmue2vt9poh235d958@4ax.com> <42ac9598$1@newsgroups.borland.com> <hagpa11u0qdbo5mk1qj7nrael23qn36kig@4ax.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.49.31.105
X-Trace: newsgroups.borland.com 1118620484 62.49.31.105 (12 Jun 2005 16:54:44 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail