Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After tried Ubuntu 6.06
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
ufoderek
n00b
n00b


Joined: 04 Mar 2006
Posts: 12
Location: Taiwan

PostPosted: Wed Aug 16, 2006 2:54 am    Post subject: After tried Ubuntu 6.06 Reply with quote

I've installed Ubuntu 6.06 on my computer and it is nearly perfect. The programs on Ubuntu runs faster and smoother then my Gentoo. Don't tell me that it's my CFLAGS' problem. I've tried very basic CFLAGS like O2, Os, -march and LDFLAGS, gcc3.x, gcc4...., but nomatter how I try, Ubuntu is FASTER. Can anyone tell me why? I love Gentoo, I love emerge, I love to control everything on my computer, but I hate that there's something faster but I can't do it.
What makes Ubuntu fast? Special CFLAGS or programs? Give me an answer, please.


PS: Sorry for my poor English.
PS2: I hope someone who HAVE TRIED Ubuntu 6.06 and his/her Gentoo is faster then Ubuntu 6.06 can tell me.
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Wed Aug 16, 2006 3:02 am    Post subject: Reply with quote

Most probably it is harddisk fragmentation. Was the gentoo installation always slow or began gradually to slow down?
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
ufoderek
n00b
n00b


Joined: 04 Mar 2006
Posts: 12
Location: Taiwan

PostPosted: Wed Aug 16, 2006 5:34 am    Post subject: Reply with quote

I believe it is not. My Gentoo installation is new.
Back to top
View user's profile Send private message
runningwithscissors
Guru
Guru


Joined: 21 Apr 2006
Posts: 454
Location: the third world

PostPosted: Wed Aug 16, 2006 5:48 am    Post subject: Reply with quote

I haven't ever used Ubuntu, but lots of people on these forums have. And they do not find a speed difference as great as you are suggesting either way.

Your system can produce bloat and slow down if you use insane CFLAGS. Keep it simple. -O2, -march and -pipe should be enough.
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Wed Aug 16, 2006 8:55 am    Post subject: Reply with quote

Ok, what does "faster" mean?

1. Faster boot time?
2. Programs start faster?
3. Windows move faster/smoother?
4. Processor finishes tasks faster?
etc.

You have to be more specific.
Back to top
View user's profile Send private message
Iced-Tux
Apprentice
Apprentice


Joined: 14 Apr 2004
Posts: 183
Location: Germany, Cologne

PostPosted: Wed Aug 16, 2006 9:03 am    Post subject: Reply with quote

When you say runs smoother & faster you probably mean in X?

Perhaps you haven't configured your graka right? In my experience Ubuntu is as fast/slow as my gentoo ;) I have two machines, which are nearly the same only difference one has 2GB RAM one only 512MB* but BOTH run smooth, the startup differneces can be explained by the differnce in RAM. As for that .... not a great deal different in Speed/Smoothness.
_________________
!! The road to hell is full of good intentions !!
Back to top
View user's profile Send private message
ufoderek
n00b
n00b


Joined: 04 Mar 2006
Posts: 12
Location: Taiwan

PostPosted: Wed Aug 16, 2006 9:47 am    Post subject: Reply with quote

"Faster" means programs(eg: X, gdm, firefox) start faster.

PS: I have tried very simple CFLAGS like "-march=pentium4 O2 -pipe -fomit-frame-pointer" or "-march=pentium4 Os -pipe -fomit-frame-pointer". But the result is the same.
PS2: What CFLAGS Ubuntu use?
Back to top
View user's profile Send private message
SirYes
Apprentice
Apprentice


Joined: 15 Jan 2006
Posts: 282
Location: Lodz, Poland

PostPosted: Wed Aug 16, 2006 9:59 am    Post subject: Reply with quote

It's not only CFLAGS. It's also LDFLAGS="-Wl,-O1" (see this topic).
Don't know if they use prelinking as well.

Using PCLinuxOS occasionally I sometimes have a similar feeling that some programs start faster. So it's not only Ubuntu's thing.
_________________
My blog: In search for ultimate programming language
Back to top
View user's profile Send private message
Varean
Guru
Guru


Joined: 03 Jul 2005
Posts: 436
Location: California, USA

PostPosted: Wed Aug 16, 2006 5:26 pm    Post subject: Reply with quote

From what I know, if you were using a different Window Manager than DE(Say fluxbox w/KDE apps) starting a KDE application requires initializing KDE's services, perhaps Ubuntu is fater becuase the entire OS is pretty much intertwined with Gnome.
_________________
Registered Linux User #387568
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Wed Aug 16, 2006 5:28 pm    Post subject: Reply with quote

ufoderek wrote:
"Faster" means programs(eg: X, gdm, firefox) start faster.

PS: I have tried very simple CFLAGS like "-march=pentium4 O2 -pipe -fomit-frame-pointer" or "-march=pentium4 Os -pipe -fomit-frame-pointer". But the result is the same.
PS2: What CFLAGS Ubuntu use?

:!: :!: :!: Did you copy that wrong or are you missing the "-" in -O2/-Os?
If so, you're running with no optimizations!!!
_________________
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Back to top
View user's profile Send private message
vipernicus
Veteran
Veteran


Joined: 17 Jan 2005
Posts: 1462
Location: Your College IT Dept.

PostPosted: Wed Aug 16, 2006 6:15 pm    Post subject: Reply with quote

KDE Desktop set up like this and prelinked will be faster than any Ubuntu setup:

Code:
Portage 2.1.1_pre5-r1 (!../usr/local/overlays/emission/profiles/default-linux/x86/emission-3.0, gcc-4.1.1/vanilla, glibc-2.4.90.20060805-r1, 2.6.18-rc4-viper1 i686)
=================================================================
System uname: 2.6.18-rc4-viper1 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.12.4
Last Sync: Wed, 16 Aug 2006 11:30:06 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17.50.0.3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fno-ident"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fno-ident -fvisibility-inlines-hidden -fno-enforce-eh-specs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/emission /usr/local/portage /usr/local/overlays/toolchain_overlay /usr/local/overlays/xgl-coffee /usr/local/overlays/vmware"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa apm arts avi berkdb bitmap-fonts bzip2 cddb cli crypt cups dlloader dri elibc_glibc emboss encode foomaticdb fortran gdbm gif glibc-omitfp gpm gtk2 hal imlib input_devices_evdev input_devices_keyboard input_devices_mouse insecure-savers isdnlog jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux libg++ libwww lm_sensors mad mikmod mmx motif mp3 mpeg ncurses nptl nptlonly offensive ogg opengl oss pam pcre pdflib perl pertty pic png pppd python qt qt3 quicktime rdesktop readline reflection sdl session spell spl sse ssl svg tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_radeon video_cards_vesa vorbis xcomposite xine xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS

_________________
Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog
Back to top
View user's profile Send private message
ufoderek
n00b
n00b


Joined: 04 Mar 2006
Posts: 12
Location: Taiwan

PostPosted: Thu Aug 17, 2006 3:23 am    Post subject: Reply with quote

1. Here's my CFLAGS: "-march=pentium4 -O2 -pipe -fomit-frame-pointer" or "-march=pentium4 -Os -pipe -fomit-frame-pointer". I forgot to type "-" before O. = =
2. I didn't emerge any kde-based packages(but while I emerge system, portage emerges qt). I always use gnome.
3. Here's my LDFLAGS: "-Wl,-O1 -Wl,--sort-common"
4. I have prelink installed and will type 'prelink -amR' after emerge -uD world.
Back to top
View user's profile Send private message
palatin
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2004
Posts: 113
Location: Paris

PostPosted: Thu Aug 17, 2006 6:58 am    Post subject: Reply with quote

It's perhaps only a matter of font cache. It halved the launch time of some programs for me :
Code:
fc-cache

as root and then as user.
_________________
fumo~
Back to top
View user's profile Send private message
Drac
n00b
n00b


Joined: 09 Aug 2006
Posts: 36

PostPosted: Thu Aug 17, 2006 3:08 pm    Post subject: Reply with quote

My XGL/KDE installation with some pretty agressive cflags and LDFLAGS as well as prelinking is noticeably faster then Ubuntu on the same machine.
_________________
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Thu Aug 17, 2006 4:44 pm    Post subject: Reply with quote

Optimilizations usually matter almost nothing with most applications - O2, O3, Os... (Well, too agressive oplimitalions make the code unstable and slow, but anyway).

Most slowness comes from HD activity which is the result of totally different configuration - not CFLAGS. Like palatin wrote, the number of fonts might have a big impact on loading times.
Back to top
View user's profile Send private message
vipernicus
Veteran
Veteran


Joined: 17 Jan 2005
Posts: 1462
Location: Your College IT Dept.

PostPosted: Thu Aug 17, 2006 7:04 pm    Post subject: Reply with quote

Paapaa wrote:
Optimilizations usually matter almost nothing with most applications - O2, O3, Os... (Well, too agressive oplimitalions make the code unstable and slow, but anyway).

Most slowness comes from HD activity which is the result of totally different configuration - not CFLAGS. Like palatin wrote, the number of fonts might have a big impact on loading times.


Very true, the smaller the code, the faster the load time. Make small code + faster linking = more interactive gui.
_________________
Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog
Back to top
View user's profile Send private message
filterpunk
n00b
n00b


Joined: 18 Jun 2006
Posts: 71
Location: Portland, OR

PostPosted: Fri Aug 18, 2006 1:01 am    Post subject: Reply with quote

Ubuntu suits people who don't get hung up on control over their system, how it runs, and what's installed. Gentoo is. End of story.

You think Ubuntu is perfect and fast, that's great for you... but why is this something you felt the need to post here? Why not post it over in their forums, since they'd probably get a warm fuzzy feeling or whatever over it?
_________________
Gentoo 2.6.17-r4 AMD64 | AMD Athlon64 3200+ Manchester, 1GB Mushkin PC-3500 Black Hi-Perf Level II, Asus V9999GT 128MB
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Fri Aug 18, 2006 8:05 am    Post subject: Reply with quote

filterpunk wrote:
Ubuntu suits people who don't get hung up on control over their system, how it runs, and what's installed. Gentoo is. End of story.


What crap is this? OP wanted to know why his Ubuntu seems to be faster than Gentoo. This has nothing to do with the fact that Gentoo is a control freak distro and Ubuntu is a It-Just-Works distro. If Ubuntu is constantly faster than Gentoo it would be nice to know why.


Last edited by Paapaa on Fri Aug 18, 2006 11:44 am; edited 1 time in total
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Fri Aug 18, 2006 8:22 am    Post subject: Reply with quote

filterpunk wrote:
Ubuntu suits people who don't get hung up on control over their system, how it runs, and what's installed. Gentoo is. End of story.

You think Ubuntu is perfect and fast, that's great for you... but why is this something you felt the need to post here? Why not post it over in their forums, since they'd probably get a warm fuzzy feeling or whatever over it?


Ummm... He said he loved gentoo, emerge, and having control but he just wanted to find out why he saw ubuntu seeming like it was faster. One would imagine that he would love gentoo EVEN MORE if he figured out how to make it faster. So far he has a gentoo install that he has lots of control over but is "medium-speed" and he wants to figure out how to increase the speed to "fast."

Also, why would his post be appropriate in their forums? Wouldn't it be "out of place" to post saying "How do I make gentoo faster?"
Back to top
View user's profile Send private message
filterpunk
n00b
n00b


Joined: 18 Jun 2006
Posts: 71
Location: Portland, OR

PostPosted: Fri Aug 18, 2006 2:25 pm    Post subject: Reply with quote

I have to apologize folks. I think I was a little too tired when I originally looked at this and misread the whole thing as yet another of those "screw gentoo, distro x is way better!" posts.
_________________
Gentoo 2.6.17-r4 AMD64 | AMD Athlon64 3200+ Manchester, 1GB Mushkin PC-3500 Black Hi-Perf Level II, Asus V9999GT 128MB
Back to top
View user's profile Send private message
tabanus
l33t
l33t


Joined: 11 Jun 2004
Posts: 638
Location: UK

PostPosted: Fri Aug 18, 2006 4:57 pm    Post subject: Reply with quote

I know basically nothing about Ubuntu, and don't use Gnome, but, a few things that have bitten me over the years:

Not sure if this also affects Gnome but:

The KDE Configuration HOWTO wrote:
Make sure your /etc/hosts file is correct:

* If you have a static IP address, make sure your FQDN and hostname are mentioned on that line, like 192.168.0.10 tux.mydomain tux
* If you have a dynamic IP address or you do not have any additional interfaces at all, add your hostname after the localhost statement, like 127.0.0.1 localhost tux


Have you configured your kernel to be pre-emptible?

Code:
*Processor type and features --->
        Preemption Model (Preemptible Kernel (Low-Latency Desktop))  --->


Do you have DMA properly enabled, what about swap file usage, video driver, X configuration? Do you have the same number of daemons running in Ubuntu as Gentoo? There are so many things that affect performance, that I doubt you will ever get that Ah-ha moment where your Gentoo is suddenly faster than your Ubuntu.
_________________
Things you might say if you never took Physics: "I'm overweight even though I don't overeat." - Neil deGrasse Tyson
Back to top
View user's profile Send private message
Dralnu
Veteran
Veteran


Joined: 24 May 2006
Posts: 1919

PostPosted: Fri Aug 18, 2006 7:59 pm    Post subject: Reply with quote

It could be a hardware issue, being as it might not be configured properly.

btw, thanks for the font-cache bit. I'm going to look into that myself :)
_________________
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Sun Aug 20, 2006 11:44 am    Post subject: Reply with quote

As I read the subject, I have to say that I initally thought like filterpunk: another bitching post. ufoderek, please choose a more meaningfull subject next time. Something like "My gentoo seems to run slow". Or "My Gentoo runs slower than Ubuntu?" or something like that.

Things to check:
- Are you running preemptive kernel?
- If you care about responsiveness, check ck-sources (con Kolivas scheduler for workstation)
- Is DMA enabled?
- Proper chipset support and stuff in the kernel
- Correct video card configuration
- Font chache

Also keep in mind that Firefox is a gtk app. So if you run KDE, you can expect it to start slower than in gnome.

If I were you, I'd start by measuring disk throughput, running some benchmarks, or something that might allow you to find the bottleneck.

Since Gentoo is fully configurable, in theory Gentoo could never be slower than Ubuntu...
Back to top
View user's profile Send private message
ufoderek
n00b
n00b


Joined: 04 Mar 2006
Posts: 12
Location: Taiwan

PostPosted: Sun Aug 20, 2006 12:32 pm    Post subject: Reply with quote

1. I've said that my English is poor. :( (or can I use Chinese?)
2. I've checked DMA, preemptive kernel, font cache...etc, and the only one thing I'm not sure is kernel configuration, but how to know whether my configuration is correct or not? (I compile the kernel by myself)
3. I use pure gnome, that means I didn't use any qt applications.
4. My hardwares:
CPU: Pentium4 1.7 GHz (Willamette)
Chipset: Intel i845
RAM: 512MB SDRAM (PC133)
HD: WD 80GB (IDE, 8 MB cache)
Intel 82801BA/BAM AC'97 Audio Controller / USB
Geforce MX 400 (AGP 4X)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum