Gentoo Archives: gentoo-performance

From: Roman Gaufman <hackeron@×××××××××.com>
To: gentoo-performance@l.g.o
Subject: Re: [gentoo-performance] How is it possible ???
Date: Sat, 26 Jun 2004 20:20:36
Message-Id: 200406262129.32305.hackeron@dsl.pipex.com
In Reply to: [gentoo-performance] How is it possible ??? by Andrea Pretto
1 Well, higher optimization (-O) number, normally means more ram is used and the
2 CPU cache is flooded more.
3
4 I bet your Athlon's core is only 256Kb cache or less. Run
5 cat /proc/cpuinfo ... -O3 seems good for 512Kb or more, but uses more ram. So
6 try recompiling gnome with -O2 or -Os ... Dont be mis-leaded by the number 2,
7 it has a lot of optimization. And -Os is like -O3 but ensures that if
8 optimization increases file size or ram usage, it isnt used, so you can lose
9 some optimization but gain a few Mb in filesize.
10
11 I find on low cache CPUs, with not much ram, -Os is the way to go, and I run
12 -Os on my Epia Via 1ghz Nehemiah core, and it runs very noticeably snappier
13 than with -O3.
14
15 Anyway, hope that helps.
16
17
18 On Saturday 26 June 2004 18:05, Andrea Pretto wrote:
19 > Hi
20 >
21 > I have a gentoo installed and it works very well.
22 > Without X it start from boot to login in 15 seconds,
23 > and it uses about 15 mb of ram.
24 > Ok. It's very fast and "cheaper" than Slackware and
25 > others......
26 >
27 > Now I have installed gnome ( 2.6.0 ) and it's very
28 > strange..........
29 > Only with GDM started (before to login) the system
30 > uses about 85mb of ram, and (the gdm) start 3-4
31 > seconds slower than slackware.........the situation is
32 > worrisome......
33 >
34 > I insert the name and password so gnome
35 > starts.................and even gnome starts 6-7
36 > seconds slower than slackware and the ram used go up
37 > to 140mb.
38 > Now the situation is disastrous....
39 >
40 > How is it possible ???
41 > Why this horrible performance ???
42 > Is it a guilt of gnome 2.6 ???
43 >
44 > My emerge info as follow:
45 >
46 > Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3,
47 > glibc-2.3.3.20040420-r0, 2.4.26)
48 > =================================================================
49 > System uname: 2.4.26 i686 AMD Athlon(tm) XP 2600+
50 > Gentoo Base System version 1.4.16
51 > Autoconf: sys-devel/autoconf-2.59-r3
52 > Automake: sys-devel/automake-1.8.3
53 > ACCEPT_KEYWORDS="x86"
54 > AUTOCLEAN="yes"
55 > CFLAGS="-O3 -march=athlon-xp -pipe
56 > -fprefetch-loop-arrays -funroll-loops -fPIC
57 > -maccumulate-outgoing-args -minline-all-stringops
58 > -mfpmath=sse "
59 > CHOST="i686-pc-linux-gnu"
60 > COMPILER="gcc3"
61 > CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb
62 > /usr/kde/2/share/config /usr/kde/3/share/config
63 > /usr/lib/mozilla/defaults/pref /usr/share/config
64 > /usr/share/texmf/dvipdfm/config/
65 > /usr/share/texmf/dvips/config/
66 > /usr/share/texmf/tex/generic/config/
67 > /usr/share/texmf/tex/platex/config/
68 > /usr/share/texmf/xdvi/ /var/qmail/control"
69 > CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo
70 > /etc/env.d"
71 > CXXFLAGS="-O3 -march=athlon-xp -pipe
72 > -fprefetch-loop-arrays -funroll-loops -fPIC
73 > -maccumulate-outgoing-args -minline-all-stringops
74 > -mfpmath=sse "
75 > DISTDIR="/usr/portage/distfiles"
76 > FEATURES="autoaddcvs ccache sandbox"
77 > GENTOO_MIRRORS="http://gentoo.oregonstate.edu
78 > http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
79 > MAKEOPTS="-j2"
80 > PKGDIR="/usr/portage/packages"
81 > PORTAGE_TMPDIR="/var/tmp"
82 > PORTDIR="/usr/portage"
83 > PORTDIR_OVERLAY=""
84 > SYNC="rsync://rsync.gentoo.org/gentoo-portage"
85 > USE="3dnow apm audiofile berkdb cdr cjk directfb doc
86 > emacs encode esd foomaticdb gdbm gnome gpm gtk gtk2
87 > guile imlib ipv6 java libg++ libwww mad memlimit
88 > mikmod mmx mozilla mpeg ncurses oggvorbis opengl oss
89 > python readline slang spell sse ssl svga tcpd tetex
90 > truetype x86 xml2 zlib"
91 >
92 > thanks in advance.
93 >
94 >
95 >
96 >
97 >
98 >
99 > ____________________________________________________________
100 > Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo!
101 > http://companion.yahoo.it
102 >
103 > --
104 > gentoo-performance@g.o mailing list
105
106 --
107 gentoo-performance@g.o mailing list

Replies

Subject Author
Re: [gentoo-performance] How is it possible ??? Andrea Pretto <prettz_it@×××××.it>