set specific application to always reside in ram, for +performance
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.