LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-18-2017, 10:57 PM   #1
Datamac
LQ Newbie
 
Registered: Jan 2017
Location: Costa Mesa, Ca
Distribution: Ubuntu 16.10 64-bit
Posts: 5

Rep: Reputation: Disabled
Question 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.
 
Old 01-18-2017, 11:14 PM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
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.
 
Old 01-20-2017, 02:18 PM   #3
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi Datamac - what is your physical memory config and current usage metrics when running your multiple applications ?
 
Old 01-21-2017, 04:07 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Datamac View Post
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:
Code:
free -h
 
Old 01-21-2017, 09:11 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
xyproblem.
Show us evidence you actually have a problem - as in metrics, not (perceived) symptoms. Then maybe we can offer advice.
 
Old 01-21-2017, 11:18 PM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.
 
Old 01-22-2017, 10:38 AM   #7
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
If you should succeed in forcing memory out to your swap partition
you can guarantee that everything will run much slower.
 
Old 01-22-2017, 11:20 AM   #8
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Quote:
Originally Posted by Datamac View Post
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?
 
Old 01-22-2017, 11:41 AM   #9
crazypenguin
Member
 
Registered: Jun 2002
Location: Idaho
Distribution: Linux Mint, Manjaro, FreeBSD, Android
Posts: 99

Rep: Reputation: 11
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel - Memory Management - Copy Virtual Memory Area shankur90 Programming 1 06-07-2016 11:07 PM
LXer: Can Lawyers 'Overcome' The Bogus Copyright On 'We Shall Overcome' And Free It To The Public Domain? LXer Syndicated Linux News 0 04-17-2016 08:45 AM
Out of memory (OOM killer) - what is causing my memory issue? gombi Linux - Server 21 06-10-2015 03:42 PM
Linux memory management: Real memory or Cached buffers? gubbu Linux - Server 2 10-01-2010 01:58 AM
Memory Page Scanning and Reclaim/Memory Management ilfantomas Linux - Kernel 1 03-02-2010 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration