Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-18-2017, 10:57 PM
|
#1
|
LQ Newbie
Registered: Jan 2017
Location: Costa Mesa, Ca
Distribution: Ubuntu 16.10 64-bit
Posts: 5
Rep: 
|
Trying to overcome memory management issue
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.
Last edited by Datamac; 01-18-2017 at 11:04 PM.
|
|
|
01-18-2017, 11:14 PM
|
#2
|
Member
Registered: Dec 2016
Distribution: arch
Posts: 668
Rep: 
|
I'm not sure why you would want to force swap usage but you might find this relevant
Are you actually running out of memory or suffering performance hits when starting firefox?
Last edited by TheEzekielProject; 01-18-2017 at 11:18 PM.
|
|
|
01-20-2017, 02:18 PM
|
#3
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Hi Datamac - what is your physical memory config and current usage metrics when running your multiple applications ?
|
|
|
01-21-2017, 04:07 AM
|
#4
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by Datamac
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.
oh and do post those hardware specs, will you?
also post the ouput of this command:
|
|
|
01-21-2017, 09:11 PM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,381
|
xyproblem.
Show us evidence you actually have a problem - as in metrics, not (perceived) symptoms. Then maybe we can offer advice.
|
|
|
01-21-2017, 11:18 PM
|
#6
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
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.
|
|
|
01-22-2017, 10:38 AM
|
#7
|
Senior Member
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,952
|
If you should succeed in forcing memory out to your swap partition
you can guarantee that everything will run much slower.
|
|
|
01-22-2017, 11:20 AM
|
#8
|
Senior Member
Registered: Feb 2009
Posts: 4,667
|
Quote:
Originally Posted by Datamac
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?
|
|
|
01-22-2017, 11:41 AM
|
#9
|
Member
Registered: Jun 2002
Location: Idaho
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.
|
|
|
All times are GMT -5. The time now is 08:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|