Welcome, Guest. Please login or register.

Author Topic: help to make OWN "ram:" device  (Read 7854 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: help to make OWN "ram:" device
« on: May 09, 2004, 12:14:09 PM »
Quote

GreatLor wrote:
the WB-startup-sequence looks like a real mess ( :-D ), so can you come up with a script to take care of this problem man ?


Add the following lines between FailAt 21 and C:MakeDir RAM:T ... in S:Startup-Sequence:

delete >nil: "Sys:Ram Disk" all force quiet
assign RAM: dismount
makedir "Sys:Ram Disk"
assign RAM: "Sys:Ram Disk"

The following is optional, if you want to get your Ram Disk icon back on the desktop:

Start IconEdit, open envarc:sys/def_ram.info, change the type to Drawer and save it as Sys:Ram Disk.info.

Now open your Workbench drawer, click once on Ram Disk and choose Leave Out from the menu.

Reboot and see how much RAM you saved.

Quote

I would really be thankful If I could have say 960k+ ram when in cli  :-)


If you totally delete or rename startup-sequence, you'll directly end in the CLI window and have as much free RAM as possible.

Bye,
Thomas

Offline Thomas

Re: help to make OWN "ram:" device
« Reply #1 on: May 12, 2004, 09:55:40 AM »

It removes 999 buffers from DF0. Let's calculate. It has 10 buffers by default, in Startup-Sequence another 20 are added, then 999 are removed, so -969 are remaining. I suppose the addbuffers command has some kind of range check built in, probably the minumim required remains. Probably 5 or 1 or something like that.

One buffer needs the same amount of memory as the block size of the disk. So 10 buffers takes you 5 kb of memory (512 bytes per block).

Bye,
Thomas