1 |
At Wed, 24 May 2006 20:52:21 +0000 Alex <sohalt@×××××.com> wrote: |
2 |
|
3 |
> Hi, |
4 |
> |
5 |
> znx wrote: |
6 |
>> http://gentoo-wiki.com/TIP_Free_up_disk_space_in_Gentoo |
7 |
> |
8 |
> > Using CFLAGS="-Os" or CFLAGS="-O2" is much more effective on |
9 |
> > a desktop system and can shave off more than 30% of the size. This is |
10 |
> > because larger binaries (like the HUGE ones produced by -O3) |
11 |
> > take longer to load, and occupy more RAM. |
12 |
> |
13 |
> Is that always true? I mean, I'm not loading and unloading |
14 |
> applications the whole time. Additionally I've enough RAM for all |
15 |
> applications I use and so I can't imagine that (on my computer with my |
16 |
> use) applications, which are slower and smaller, can be faster than |
17 |
> applications which are bigger and faster. |
18 |
|
19 |
Often the bigger problem with large binaries is that their working |
20 |
sets exceeds the sizes of the L1 and (possibly) L2 caches. So, you |
21 |
may well be right that your gigabytes of RAM greatly reduce disk |
22 |
access to load and demand page applications, you may still get a |
23 |
slowdown due to cache misses. Central memory, which is the fast & |
24 |
small storage when considering demand paging, is the large but slow |
25 |
storage when considering caching. |
26 |
|
27 |
allan |
28 |
|
29 |
-- |
30 |
gentoo-user@g.o mailing list |