How to make a temporary RAM disk on Linux
Can be an interesting way to check if file accesses is killing a script's or application's performance. I have tested it and it can make things go blazingly fast. I have inserted about 8000 new record in an SQLite datbase from python, and the total speedup seems to be around a factor 20x -50x. Yes, of course it would be possible to solve this in another way, batching SQL inserts or having the db in-memory. But with a RAM disk I do not need to think about that.
$ mkdir /tmp/ramdisk; chmod 777 /tmp/ramdisk $ mount -t tmpfs -o size=256M tmpfs /tmp/ramdisk/
Read more: Link - axonxorz comments on SQLite Now Faster With Memory Mapped I/O