Big ram disc
Chris Gransden (337) 1207 posts |
I managed to set a 3GB ram disc but the free space only goes up to 2GB. ChangeDynamicArea -RamFsSize 524288K Apart from that it seems to work OK. |
David Pitt (3386) 1248 posts |
I only managed 928MB.
But that did setup straight away at boot. 4GB RPi4B. Nice bit of progress, many thanks. |
André Timmermans (100) 655 posts |
Probably needs to register to something like Free64 instead of Free. |
Ronald (387) 195 posts |
Nice bit of progress Is this something new in RISC OS 5.28? I can get a 508Mbyte Ramdisc0 on my 1Gb Iyonix now.
|
David Pitt (3386) 1248 posts |
There are two different things. The 508MB RamDisc has been around for a while now, sizes larger than that are currently under development with the sources on git. |
Chris Gransden (337) 1207 posts |
It’s defined in RiscOS.Sources.Kernel.s.ChangeDyn. |
David Feugey (2125) 2709 posts |
We would need a few Jeffrey to make the Ramdisc running in the other 4GB of a 8GB Pi4 :) |
David Pitt (3386) 1248 posts |
I only managed 928MB. Found it, just search for 928. I can configure a 3GB RAM disc but configuring 2048k and above results in no RAM disc at all at start up. Less that 2048k is OK. |
Chris Gransden (337) 1207 posts |
Workaround is to manually edit DiscSetup and define it twice. The first one creates it. The second can then extend it to 2GB. ChangeDynamicArea -RamFsSize 524288K |
David Pitt (3386) 1248 posts |
Using a build of the latest Long Descriptor source and the Big RAM source on an 8GB RPi4 I can get a 4GB RAM disc with a drag in the Task Manager. (The Free space and Configuration tools both max out at 2048MB.) Only briefly tested! |
Jeffrey Lee (213) 6048 posts |
Note that although you can make the RAM disc DA bigger than 2GB, the filesystem will only use up to 2GB. There are a few other bits which need fixing for >2GB to work (and a few more for >4GB), so the first set of changes to get merged are likely to add support for sizes up to 2GB, and support for the larger sizes will come later. https://gitlab.riscosopen.org/RiscOS/Sources/FileSys/RAMFS/RAMFS/-/merge_requests/3#note_2741 |
Martin Avison (27) 1494 posts |
Using today’s v2.29 ROM, the bigger RAM disc works a treat for me. Before boot it was 518MB: After boot it was immediately 600M (which is where it had been configured). As I ‘only’ have 2GB memory I can cause other things to run out of memory if I go too high, but I have had no problems with the larger sizes. Congratulations and thanks to Julie and others who have experimented, implemented or tested this. |