Page 1 of 1

Increase Ram Disk

Posted: 29 May 2013, 21:38
by lukaluki
Hello,

my RAM-Only Mini-PC has 4GB of Ram, when I use porteus in copy2ram mode, the virtual disk only seems to have 2,2 GB available - so how can this be increased because there seems more ram been unused ?

kind regards

Re: Increase Ram Disk

Posted: 29 May 2013, 21:39
by Hamza
Use ramsize cheatcode.

Re: Increase Ram Disk

Posted: 29 May 2013, 21:46
by lukaluki
Does it will cause probelms if I set the Disk Size to 3,5GB when the PC has 4GB available ?

Re: Increase Ram Disk

Posted: 30 May 2013, 07:44
by Hamza
There shouldn't any problems but please be careful as your system may needs some MB for "shared memory".

Re: Increase Ram Disk

Posted: 30 May 2013, 10:09
by hypomania
there is alternative solution for RAM , you can make new Swap device or new Swap file.

Code: Select all

#mkswap /mnt/sdb1 1 GB
or
#mkswap /mnt/sda1/temp.swp 3 GB
if you make swap file, then you can mount it and delete it.

Re: Increase Ram Disk

Posted: 30 May 2013, 18:57
by Ahau
You can also experiment with the "zram" cheatcode, it creates a virtual block device inside your RAM that acts as swap, with the data being compressed.

You mentioned this is a RAM-only machine, does it have a USB port or card reader? You could add a usb flash drive or SD card for storage and reduce the amount of RAM you allocate for changes, or you could even create a swap partition on your flash media and activate it for additional RAM. This is slower (usually much slower than having swap on a hard drive) and it's not good for the flash media because it gets written and erased a lot, but it does work in a pinch for the right situations. I do this when I'm compiling stuff for ARM - my tablet only has 1GB of RAM and several programs require up to 3 GB in order to compile, so I stick in a USB flash drive with a swap partition on it :)