>>Single Point of Failure >>

§ Home § CV § Blog Photography Divagações §

Calendar

June 2010
M T W T F S S
« May   Aug »
 123456
78910111213
14151617181920
21222324252627
282930  


Popular Tags


Recent Entries



Categories


Archives

RAM Disk: A Very Interesting Idea…

Ξ June 29th, 2010 | → |
Tools |, , , |

Simply run:

$ mkfs -q /dev/ram1 8192   # 8192 = 8MB disk capacity
$ mkdir -p /mnt/ramcache
$ mount /dev/ram1 /mnt/ramcache
$ df -H | grep ramcache

to mount your own mini ramdisk.

For more details, here and here are some references I found on the subject.

You might ask yourself “Why does this guy needs a ramdisk?… What a geek!”, and wouldn’t mind. It was kind of a epiphany, when I remembered to use a ramdisk to run a “‘Lack of space’ Test Case” on the application I’m building right now.
After running the application, I just had to copy a mp3 album to occupy the remaining disk space… et voilá, welcome the expected “error message”. No, not a SIGSEGV, a real error dialog!…

 

Leave a reply



On the nightstand...



Entries | Comments