How to move linux executables to a ramdisk?
Posted
by
alfa64
on Server Fault
See other posts from Server Fault
or by alfa64
Published on 2012-06-18T22:09:35Z
Indexed on
2012/06/19
3:17 UTC
Read the original article
Hit count: 628
i've made a ramdisk this way:
mkdir -p /media/ramdisk
mount -t tmpfs -o size=512M tmpfs /media/ramdisk/
The reason for this is because i run a lot of node.js scripts and their execution time is very small, but i suspect that the time overhead is because it reloads the node.js executable from disk and destroys it on each subsecuent run. So i think this might be the solution to gain a bit, if not much, performance. How can i move a program like node to the ramdisk and run it from there? The idea is to have a startup script that creates the ramdisk and puts the node files inside of it. Note that i'm currently using fedora 16 for what's it's worth. Thanks in advance.
© Server Fault or respective owner