Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Is there a way to force more usage of the swap file area to obtain better performance with memory hungry applications like Firefox?
I would like to be able to start Firefox while opening 20 tabs. Also, believing strongly in multitasking, I like being able to run multiple large or sometimes complex applications and having the ability to simply switch between and not having to start and stop applications from running just to realize having significant power and control within a app at any given time.
believing strongly in multitasking, I like being able to run multiple large or sometimes complex applications and having the ability to simply switch between and not having to start and stop applications from running just to realize having significant power and control within a app at any given time.
wow, sounds like you're a power user.
certainly your beliefs reflect in your choice of hardware?
joking aside, there's something called 'swappiness' (kernel command line option i guess) which would answer your question but i don't think it will help.
You can change the swappiness value. 60 tends to be the default. 20 is more performant if you AVOID swap. So maybe 90 for your intentions? And probably some other tricks like don't load a tab until it's active type settings in firefox.
# echo 85 > /proc/sys/vm/swappiness
Although with the price of hardware being cheap these days. Perhaps get more ram and stop caring about that particular aspect. A fitlet-H with 16GB ram and some storage would only run you about $500 and spec similar to a macbook pro these days. Sort of.
I would like to be able to start Firefox while opening 20 tabs.
Does Firefox give any error message when you try to open 20 tabs, or does it just crash? If it just crashes, try running Firefox from the Terminal to get detailed output. Either way, please copy and paste the error messages here if you want any meaningful help.
A few more thoughts:
Have you tried a different browser like Chrome?
What is your graphics chipset (GPU) and have you installed the correct drivers for it if necessary?
Can you increase the RAM on your computer or is it maxed out?
Distribution: Linux Mint, Manjaro, FreeBSD, Android
Posts: 99
Rep:
Quote:
Is there a way to force more usage of the swap file area to obtain better performance with memory hungry applications like Firefox?
Generally forcing RAM to SWAP is like robbing Peter to pay Paul. And I doubt you will get the performance gains that you are desiring. As others have already said, it would be best to add more RAM and SSD if possible for increased performance.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.