Firefox and YOUR ram usage.

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Koing

Elite Member <br> Super Moderator<br> Health and F
Oct 11, 2000
16,843
2
0
I'm not bothered it uses more ram. I'm just bothered that at times I am only left with 50-80mb or even down to 20mb of ram and stuff runs slow then.

I do have 'only' 512mb though.

Crazy thing is I haven't browsed for a few hrs (was in bed asleep) and now I have 293mb free! FF says it is only using 79mb in Task Manager.

Thanks a lot Drag and everyone else in this th read

Koing
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Note that Mozilla (and I believe Firefox) will force a garbage collect on their GC objects if you close a window - try opening a new window and then closing it (there are other ways to trigger a garbage collect, but this is the only manual one I know).
 

Koing

Elite Member <br> Super Moderator<br> Health and F
Oct 11, 2000
16,843
2
0
I'll try that CTho9305

Now I have 309mb of ram free. I guess it clears stuff out when not in use but last night nothing was cleared for ages.

Koing
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: Nothinman
But isn't VM usage similar to pagefile usage?

No. The problem is that MS misuses the term all over their UI and it gives a false impression about that being true. The short answer is : VM usage is just address usage, there's no correlation to physical memory or pagefile usage.

The long answer is : Virtual Memory has been discussed on this forum many times, I've probably written what it is at least a half dozen. Basically Virtual Memory is, as the name suggests, nothing more than the virutalization of memory addresses. Each process has a set VM space of 4G, 2G worth of those addresses are reserved by the Windows kernel and 2G are available to the process. Since most people don't have 4G of physical memory available those 4G worth of addresses are mapped to different real physical addresses by the OS with asstance from a hardware MMU, sometimes the VM address points to something that's shared like a library or shared memory mapping, sometimes it points to private data and sometimes it points to nothing. When it points to nothing this causes a page fault and causes the OS to either figure out what the process wanted and page it in from disk or kill the process for attempting to access invalid memory. In the common case of paging the data in from disk, it could be on a normal file like the executable itself or in the pagefile or any other place the OS could be setup to page in from.

Everything causes VM usage, running an app causes VM to be used because the process needs a new VM for it's instance, it needs addresses for the executable, it needs addresses for any libararies it requires whether they're in memory already or not, it needs addresses for any misc mmap()'d files that process uses, etc. It would be trivially easy to write an app that would startup, use 2G of VM and do absolutely nothing.
So the whole task manager memory graph is useless then?
 

VirtualLarry

No Lifer
Aug 25, 2001
56,543
10,169
126
Originally posted by: kamper
With all these threads about how much memory firefox uses I wonder which numbers people report. The windows task manager gives you both "Mem Usage" and "VM Size" which are somewhat different things. You'll notice that when you minimize firefox and it cuts its memory usage way down the VM Size doesn't go down, but it's the VM number that counts towards the total PF Usage you see on the graph. I suppose we could have a discussion on which number you should report but for now I'm just curious, which number are you guys reporting?

^^ "VM Size" is the most accurate representation of the memory that any particular process would use.
 

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
WTF ? Just 1 FF window browsing this page, 0 tabs.. 71MB. :roll:
 

Koing

Elite Member <br> Super Moderator<br> Health and F
Oct 11, 2000
16,843
2
0
Originally posted by: superspacey
surf around for awhile, my memory usage gets huge! 100+ easy
oh well..

Yup I think it is that.

When you surf about everything just builds up until FF flush's it out or something. IE didn't do this but I was careful with spyware and stuff popping up. Father less so, so I have gotten him to use FF on the other pc also. No useless crap being 'accidently' installed on it

I am using 1024MB of ram now and ahve 340Mb free. FF using 202MB. I have ordered some 2x512MB to go with my 2x256MB so that should definatley be more then enough

Koing
 

AayushP

Member
Feb 19, 2005
33
0
0
Surely the RAM usage is very high, but the bigger problem is that it also consumes a lot of page file space. This causes a lot of page faults and hence hard disk access. FF is way too slow. THis is the primary reason that I have switched back to IE.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
This causes a lot of page faults and hence hard disk access. FF is way too slow.

Page faults don't necessarily mean disk access and FF is not slow on my machine.
 

AayushP

Member
Feb 19, 2005
33
0
0
Originally posted by: Nothinman
This causes a lot of page faults and hence hard disk access. FF is way too slow.

Page faults don't necessarily mean disk access and FF is not slow on my machine.

So through what other mechanism are page faults dealt with?? May be I was a bit wrong there.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Page faults can also be satisfied by data in memory. For instance, if one program loads up blah.dll then a second program starts and needs the same library it won't be mapped into that processes address space so it'll page fault, but since it's already in memory the OS will just map the original copy into the second processes address space and let it continue running. Same thing for any type of file that's being stored in the filesystem cache.
 

tami

Lifer
Nov 14, 2004
11,588
3
81
i'm bumping this thread up because i want to try to eliminate the heavy ram firefox is consuming at the present time (167MB -- it's light today)...

is there are good solution to this, or should i go here?

i want my FF performance to remain the same (or improve). but i don't want to lose FF performance by modifying my user.js file.

hints, tips, tricks -- anyone?
 

bersl2

Golden Member
Aug 2, 2004
1,617
0
0
If anybody can come up with a reproducable memory leak, by all means submit a bug report.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: tami
i'm bumping this thread up because i want to try to eliminate the heavy ram firefox is consuming at the present time (167MB -- it's light today)...

is there are good solution to this, or should i go here?

i want my FF performance to remain the same (or improve). but i don't want to lose FF performance by modifying my user.js file.

hints, tips, tricks -- anyone?

Um, what else are you going to use that ram on?
 

tami

Lifer
Nov 14, 2004
11,588
3
81
Originally posted by: n0cmonkey
Originally posted by: tami
i'm bumping this thread up because i want to try to eliminate the heavy ram firefox is consuming at the present time (167MB -- it's light today)...

is there are good solution to this, or should i go here?

i want my FF performance to remain the same (or improve). but i don't want to lose FF performance by modifying my user.js file.

hints, tips, tricks -- anyone?

Um, what else are you going to use that ram on?

when my system slows to a crawl and it's FF related (i was viewing a slideshow last night and my FF ram jumped up to 1GB), i need to do something.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |