Re: [NTLK] Couple more newton questions

From: Paul Guyot (pguyot_at_kallisys.net)
Date: Wed Sep 11 2002 - 12:46:52 PDT


À (At) 21:38 -0400 10/09/02, Victor Rehorst écrivait (wrote) :
> > Does the newton use any virtual memory type scheme with the flash
>> cards? As far as i can see the 2100 has about 4 megs of RAM and about 4
>> megs of flash storage space. Wouldnt it be possible to use the flash as
>> sort of a virtual memory?
>
>The OS uses it all to decompress packages, provide free memory (heap) to
>NewtonScript and C++ tasks, etc etc etc.

AFAIK, it isn't exactly what happens.

Packages are compressed on flash memory and decompressed on the fly
in physical memory. This can be called virtual memory.
NewtonScript writable regular objects are always entirely in physical memory.
NewtonScript read-only objects are either in ROM or in Package, i.e.
never in physical memory.
NewtonScript soup entries are flagged as dirty when they are
modified. I think they're in physical memory anyway.
NewtonScript Virtual Binary Objects (VBO) are in some kind of virtual
memory (there is a cache of modified pages that has to be flushed to
disk). This isn't a real virtual memory per se because the OS won't
swap dirty page to disk.
NewtonOS main C++ heap is entirely in physical memory.
It seems that one can create C++ object using storage, but I haven't
seen the OS doing so and I haven't succeeded to do it either.

Paul

-- 
NPDS: http://newton.kallisys.net:8080/
Apache: http://www.kallisys.com/
-- 
Read the List FAQ/Etiquette: http://www.newtontalk.net/faq.html
Read the Newton FAQ: http://www.chuma.org/newton/faq/
This is the NewtonTalk mailing list - http://www.newtontalk.net/


This archive was generated by hypermail 2.1.5 : Mon May 26 2003 - 12:59:21 PDT