LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-27-2009, 05:57 PM   #1
Chriswaterguy
Member
 
Registered: Apr 2007
Distribution: CrunchBang 10 Statler
Posts: 106

Rep: Reputation: 16
Possible to compress RAM usage by Mozilla or other programs?


Mozilla (Firefox 3 or Swiftfox 3) tends to expand its RAM usage according to how much memory is available - it can easily expand to 400 MB or more if I have a lot of windows open. However if I then open several other memory hungry programs (such as GQview in a directory with hundreds of pictures), Mozilla shrinks its RAM usage.

Is there a way of making this happen without deliberately opening other programs?

Last edited by Chriswaterguy; 01-27-2009 at 08:32 PM.
 
Old 01-27-2009, 07:01 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
You have to understand that this is the way Linux was designed. It will use as much of the resources as it needs, until it needs to share those resources. From your description your system is sharing those resources when it needs to. Why would you want to change this?
 
Old 01-27-2009, 09:01 PM   #3
Chriswaterguy
Member
 
Registered: Apr 2007
Distribution: CrunchBang 10 Statler
Posts: 106

Original Poster
Rep: Reputation: 16
Memory hogs slow things down

Quote:
Originally Posted by lazlow View Post
You have to understand that this is the way Linux was designed. It will use as much of the resources as it needs, until it needs to share those resources. From your description your system is sharing those resources when it needs to. Why would you want to change this?
Unfortunately it uses too much of the resources - when my Mozilla browser is using 450 MB RAM and I'm using 920 MB of my 1 GM RAM, my machine slows down horribly. Changing windows or tabs leads to applications - or sometimes the window manager - hanging for 10, 20 seconds or sometimes even more.

Swiftfox just crashed. Mhen I restarted and all the same pages were loaded, it was using 170 MB, instead of the 480 MB it was using before the crash. (I hadn't restarted off the browser for maybe a week - I prefer to suspend my machine rather than restarting things, especially when I'm traveling and have poor connectivity.)
 
Old 01-27-2009, 11:22 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
That sounds more like a bug in your distro (or application not behaving) than a Linux design flaw. The next time you see this slowdown post the results of top and free. This will give us a better idea of what is actually going on.
 
Old 05-02-2009, 07:18 PM   #5
Chriswaterguy
Member
 
Registered: Apr 2007
Distribution: CrunchBang 10 Statler
Posts: 106

Original Poster
Rep: Reputation: 16
Quote:
That sounds more like a bug in your distro (or application not behaving) than a Linux design flaw
I thought it was a Firefox design flaw, not a Linux design flaw.

Now I'm using CrunchBang instead of Mandriva, and the same thing happens. It even happens in when I use SwiftFox or SwiftWeasel instead of Firefox, though not as badly.

Will get back to you with the output of top and free.
 
Old 05-03-2009, 05:19 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,666
Blog Entries: 54

Rep: Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952
Firefox I think is well known for hogging memory. That must be due to design choices because Opera certainly uses way less memory lst time I checked. While in essence you should review your whole system for optimal performance (HW, kernel version, scheduler, swappiness and VM sysctls, fs choice, fs mount options) the first thing I'd do to troubleshoot problems with Firefox is create a new clean profile and use that. If that shows way less crashing or memory hogging it may be a Firefox plugin problem.
 
  


Reply

Tags
memory, mozilla, ram


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CPU and RAM usage rslinks Linux - Server 3 10-06-2008 02:39 PM
Too Much of RAM Usage !! asneed_jas Linux - Newbie 4 05-12-2007 06:28 AM
Linux RAM usage paulsiu Linux - Hardware 1 10-25-2006 09:10 PM
RAM usage Deelk Linux - General 11 03-27-2006 04:03 PM
RAM usage Serena Linux - General 1 08-12-2003 11:50 PM


All times are GMT -5. The time now is 07:44 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration