Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Fire the fox.
Date: Sun, 19 Sep 2010 09:05:06
Message-Id: 4C95D222.3000407@gmail.com
In Reply to: Re: [gentoo-user] Re: Fire the fox. by Alan McKinnon
1 Alan McKinnon wrote:
2 > Apparently, though unproven, at 07:45 on Sunday 19 September 2010, Lie Ryan
3 > did opine thusly:
4 >
5 >
6 >> On 09/19/10 09:22, Hilco Wijbenga wrote:
7 >>
8 >>> On 18 September 2010 15:14, Kevin O'Gorman<kogorman@×××××.com> wrote:
9 >>>
10 >>>> Is it just me? Or does Firefox get slower every release? And less
11 >>>> stable.
12 >>>>
13 >>> Indeed. But FF4 is *much* faster. And much more stable. At least, that
14 >>> was my experience when I tried it out. I had to go back to 3.6 because
15 >>> some of the plugins that I need were not yet supported for FF4. At
16 >>> least the later 3.6 releases aren't as unstable as the previous ones.
17 >>>
18 >> Firefox 4 indeed is smoother (probably due to the new animations,
19 >> probably because none of the plugins I used are compatible yet, but
20 >> maybe it is just faster); but it is definitely more memory hungrier than
21 >> before. In Fx3, it usually took around ~20-25% of my 1GB RAM and that's
22 >> with opening a bunch lot of pages; Fx4 generally takes around ~25-30%.
23 >>
24 >> While taking 30% of my RAM is fine when I'm not multitasking, the main
25 >> problem is I am always multitasking. With Thunderbird taking another
26 >> 15-20%, emerge ranging from 5-30%, and X about 5-10%, my computer is
27 >> becoming unbearably slow when memory starved.
28 >>
29 >> I've been thinking about adding -Os (optimize-size) to my CFLAGS, does
30 >> anyone knows if doing that will possibly bring down memory usage and
31 >> speed up the computer?
32 >>
33 > No it will not.
34 >
35 > It's the size of the binary code image that is reduced, you may find that the
36 > firefox *code* in memory is smaller too. But it will do nothing for the data
37 > structures firefox creates to do it's job.
38 >
39 > Think of it this way:
40 >
41 > You have a MySQL instance taking up say 20MB in memory. You use it to access a
42 > 500G database so it uses a whopping amount of memory for the indexes. You
43 > somehow optimize MySQL so that the code is now 19MB. What effect does that
44 > have on the 500G database? Answer: none whatsoever.
45 >
46 > And you conclusions about memory usage are wrong too. When free says you have
47 > 1G or RAM (this is true) and top says Thunderbird uses 150M and Firefox 180M,
48 > together they do not use 330M. Much of that memory is shared.
49 >
50 > top tells you "amount of memory that this process can access"
51 > top does not tell you "amount of memory that this process owns and that
52 > nothing else can access"
53 >
54 >
55
56 Yep. I use Seamonkey which is browser and email all in one. It doesn't
57 use much when I first start it up. The amount it accumulates as time
58 goes on depends on the websites I go to. If I go to sites that have a
59 lot of flash, pictures and gifs, then it starts to using a lot more
60 memory. If I go to say the gentoo forums which is mostly text, it
61 doesn't change much.
62
63 Just like the example Alan gave, it's not the program itself that is
64 using the memory, it's what you are doing with it that uses memory. I
65 have found that the weather radar site and youtube are the biggest
66 memory hogs. One is flash and the other is video, both of which need a
67 good bit of memory. Changing the compile flags isn't going to stop you
68 from going to certain sites so it won't help on memory usage.
69
70 This is my Seamonkey with email also open and I have only visited a
71 couple forums sites:
72
73 7493 dale 20 0 253m 133m 28m S 0.7 6.6 1:59.65 seamonkey-bin
74
75 This is the same after going to the weather radar and one youtube music
76 clip:
77
78 7493 dale 20 0 331m 177m 33m S 8.6 8.8 3:18.65 seamonkey-bin
79
80 If I were to visit other sites, it would go up a lot more. If you want
81 to decrease memory usage, don't go to sites that use flash, have a lot
82 of pics and gifs and other things that use a lot of memory. You could
83 do like I do, if it is using a good bit of memory, just close it, wait a
84 few seconds and open it back up again. Nice clean fresh start and
85 unlike windoze, no reboot needed. ;-)
86
87 I have Firefox 3.6 on here as well. It does about the same as
88 Seamonkey. Starts out not using a lot but builds up as I visit other
89 sites and things start to load up. I can't tell any difference in speed
90 tho. I don't use it a whole lot tho so I may not have noticed it.
91
92 Dale
93
94 :-) :-)

Replies

Subject Author
[gentoo-user] Re: Fire the fox. Lie Ryan <lie.1296@×××××.com>