[Coco] Using that 16/32/64 MB RamDrive.

Paul T. Barton idezilla at yahoo.com
Sat Feb 7 18:49:59 EST 2004


Theodore,

--- "Theodore (Alex) Evans"
<alxevans at concentric.net> wrote:
> 
> On Feb 5, 2004, at 11:22 PM, Robert Gault
> wrote:
> 
> > Paul T. Barton wrote:
> >
> >> Robert,
> >> I get $03E000 good sectors for a full
> >> ~62mb ramdisk. For a size of
> >> ($3E000 * 256) 65,011,712 bytes.
> >
> > PS. I think that is what you should see.
> 2^25=33,554,432 and 2^26 = 
> > 67,108,864 so the power of 2 closest to 64Meg
> is really 67Meg. If that 
> > is not the size of the Nocan64 let me know.
> 
> I think his figures were accurate.  64M is
> $4000000 bytes or $40000 
> sectors, but he didn't use the whole 64M for a
> ram disk, but rather 
> $2000 (8192) sectors short of that or exactly
> 62M.  Presumably the 
> other 2M is being used for the main memory of
> OS-9.

This is correct. I didn't want to touch
the main 2MB used by Nitros9.  Today I tried
to fill up an 8MB (dmode /r0 cyl=200)
portion of the ramdrive.

" Mark, yes it took a while :) "

If I use TFM
and interrupt masking for every "move"
then no directories get trashed. Here's
what I did:

made a script file that had:

copdir /dd/cmds /r0/CMDS
copdir /dd/cmds /r0/CMDS1
copdir /dd/cmds /r0/CMDS2
etc
all the way to  /r0/CMDS20, counting in HEX.

As this was running in /W4 I "cleared" back
to /Term where I did alternately
DIR /r0 and FREE /r0.  I could see the /r0
drive filling up and the names expanding.
As it got near '15 sectors left' it got really
really really slow. It was having trouble 
finding space for the files. It got up to
CMDS1B where it started showing zero
length files (no more room!) and printing
errors, of course.

Alternately,  since all RAM has hidden 
refreshes, all data stays intact even
though I rebooted from RSDOS into NitrOS9.
Reloaded "rammer" and immediately did
a DIR /R0 where it shows all files intact.
This is good, as long as the computer stays
powered on and the RESET isn't held in too
long, the data stays intact, all of it.

I did this thing, rebooted, reloaded the
/R0 and Rammer, did a DIR (without iniz r0).
and it's all there.

Then the command 'chx /r0/CMDS1A' was issued,
the last useable directory there, and it
still worked (this after rebooting).

Hey it seems to work,
Paul


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html



More information about the Coco mailing list