1 |
Apparently, though unproven, at 07:45 on Sunday 19 September 2010, Lie Ryan |
2 |
did opine thusly: |
3 |
|
4 |
> On 09/19/10 09:22, Hilco Wijbenga wrote: |
5 |
> > On 18 September 2010 15:14, Kevin O'Gorman <kogorman@×××××.com> wrote: |
6 |
> >> Is it just me? Or does Firefox get slower every release? And less |
7 |
> >> stable. |
8 |
> > |
9 |
> > Indeed. But FF4 is *much* faster. And much more stable. At least, that |
10 |
> > was my experience when I tried it out. I had to go back to 3.6 because |
11 |
> > some of the plugins that I need were not yet supported for FF4. At |
12 |
> > least the later 3.6 releases aren't as unstable as the previous ones. |
13 |
> |
14 |
> Firefox 4 indeed is smoother (probably due to the new animations, |
15 |
> probably because none of the plugins I used are compatible yet, but |
16 |
> maybe it is just faster); but it is definitely more memory hungrier than |
17 |
> before. In Fx3, it usually took around ~20-25% of my 1GB RAM and that's |
18 |
> with opening a bunch lot of pages; Fx4 generally takes around ~25-30%. |
19 |
> |
20 |
> While taking 30% of my RAM is fine when I'm not multitasking, the main |
21 |
> problem is I am always multitasking. With Thunderbird taking another |
22 |
> 15-20%, emerge ranging from 5-30%, and X about 5-10%, my computer is |
23 |
> becoming unbearably slow when memory starved. |
24 |
> |
25 |
> I've been thinking about adding -Os (optimize-size) to my CFLAGS, does |
26 |
> anyone knows if doing that will possibly bring down memory usage and |
27 |
> speed up the computer? |
28 |
|
29 |
No it will not. |
30 |
|
31 |
It's the size of the binary code image that is reduced, you may find that the |
32 |
firefox *code* in memory is smaller too. But it will do nothing for the data |
33 |
structures firefox creates to do it's job. |
34 |
|
35 |
Think of it this way: |
36 |
|
37 |
You have a MySQL instance taking up say 20MB in memory. You use it to access a |
38 |
500G database so it uses a whopping amount of memory for the indexes. You |
39 |
somehow optimize MySQL so that the code is now 19MB. What effect does that |
40 |
have on the 500G database? Answer: none whatsoever. |
41 |
|
42 |
And you conclusions about memory usage are wrong too. When free says you have |
43 |
1G or RAM (this is true) and top says Thunderbird uses 150M and Firefox 180M, |
44 |
together they do not use 330M. Much of that memory is shared. |
45 |
|
46 |
top tells you "amount of memory that this process can access" |
47 |
top does not tell you "amount of memory that this process owns and that |
48 |
nothing else can access" |
49 |
|
50 |
-- |
51 |
alan dot mckinnon at gmail dot com |