LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   set specific application to always reside in ram, for +performance (https://www.linuxquestions.org/questions/linux-general-1/set-specific-application-to-always-reside-in-ram-for-performance-813693/)

Siljrath 06-12-2010 04:50 AM

set specific application to always reside in ram, for +performance
 
how can you set specific application's data to always reside in ram, so it runs and launches super fast all the time?

i recall reading about how you could put all your libs folders into ramfs once, but it took up a lot of ram, so i never bothered, and it was really just for faster (instant) launching times.

i just want to be able to set that for specific things, like for example, the GIMP and Inkscape.

Tinkster 06-12-2010 05:36 PM

You'd have to statically link them. And you'd be facing the same problem.
Get an SSD HDD and put /usr and/or /opt on it.



Cheers,
Tink

lumak 06-13-2010 12:31 AM

Well... you could hack something together that would, at system launch or on command, copy all the program files to a ramfs or tmpfs. Both can be created using mount or fstab and both have different but similar characteristics. BUT if you are doing it only for two programs you would have to recompile them and make sure they are statically linked and that they will grab all their runtime files from wherever you mount your ram/tmpfs... Ofcourse you could also do bind mounts to an existing package but that would be really messy. In anycase, this wouldn't fully accomplish what you want as the program would essentially be in your memory twice residing as a file on the ram/tmpfs and as runtime program information in the normal ram.


All times are GMT -5. The time now is 07:02 PM.