Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Gentoo slower than Ubuntu? Help!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Hajo Piltz
n00b
n00b


Joined: 31 Mar 2007
Posts: 23

PostPosted: Tue Apr 10, 2007 6:40 am    Post subject: [solved] Gentoo slower than Ubuntu? Help! Reply with quote

On the same machine, I run Ubuntu Feisty Fawn (with a "generic" kernel, so I'm not even sure it is i686) and the new gentoo system I was so proud setting up.

I compiled my own kernel with all the appropriet (though "safe") flags and only the minimum drivers for my hardware compiled in monolithical. I chose XFCM4 as my Desktop and XDM (with some extras such as xsri for a background and root-tail). My goal was to have a system that booted quickly and used less CPU during normal operation by customizing everything to my actual hardware. My (primitive - stop watch) benchmarks are as follows:

Boot-up (from selecting the grub entry to Log-in screen):
- Ubuntu: 45 seconds with graphical progress bar to GDM (no network)
- Gentoo: 45 seconds to XDM 8O
Starting up the desktop (from pressing return on the login screen to when it "feels" ready):
- Ubuntu: 18 seconds to GNOME :!:
- Gentoo: 21 seconds to XFCE with hardly any applications and only a handful of small plugins. 8O 8O

Totally not what I was expecting to see after tweaking config files and reading howtos for almost two weeks! :?

I definately need your help where to look for potential! Thanks.

Some more information about the system:
- I have a ndiswrapper wlan in wpa_supplicant and a built-in ethernet (not plugged in). Using netplugd to background DHCP on the ethernet.
- I did emerge --update --deep --newuse world several times already. One of the updates pulled in a new gcc as well, so that is up to date, I guess.

Will add more as requested.


Last edited by Hajo Piltz on Thu Apr 12, 2007 5:53 am; edited 1 time in total
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 778
Location: Brooklyn, New York

PostPosted: Tue Apr 10, 2007 7:04 am    Post subject: Reply with quote

emerge --info and some details on your hardware would help. also show us what that ubuntu is running compare to gentoo in terms of toolchain,kernel etc..
BTW you can't compare a Gnome vs XFCM4 load. also if you have 2GB of ram make sure it's being used by kernel with
Code:
free-m
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Apr 10, 2007 10:28 am    Post subject: Reply with quote

You definitely can improve it, my old 1.1 GHz Thinkpad (256 MB of RAM) boots to CLI login in 35 seconds - and this includes starting CUPS and mounting a network volume over wireless. XFCE4 needs ~22 seconds to load - then even weather plugin is finished.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Apr 10, 2007 2:27 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Other Things Gentoo.
Not about getting gentoo installed, so moved here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Hajo Piltz
n00b
n00b


Joined: 31 Mar 2007
Posts: 23

PostPosted: Tue Apr 10, 2007 7:40 pm    Post subject: Reply with quote

Quote:
BTW you can't compare a Gnome vs XFCM4 load. also if you have 2GB of ram

I think I can - in absolute terms: XFCM takes longer to start up (I realise that GDM plays a part in this) and is not as fully featured - in my opinion.
Unfortunately, I have *a lot* less ram: 512-32shared

Some infos about hardware / configuration:

gentoo@laptop ~ $ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : mobile AMD Athlon(tm) XP 1800 +
stepping : 0
cpu MHz : 1500.120
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow up ts fid vid
bogomips : 3002.70

gentoo@laptop ~ $ emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 mobile AMD Athlon(tm) XP 1800 +
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 04 Apr 2007 17:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python: 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
MAKEOPTS="-j1"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acpi alsa berkdb bitmap-fonts cairo cddb cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread eds encode ffmpeg firefox fortran ftp gdbm gif gpm gstreamer gtk gtk2 hal iconv icq imagemagick ipv6 isdnlog java javascript jpeg ldap libg++ lm_sensors mad maildir mbox mcal midi mmx mp3 mpeg mplayer mysql mysqli ncurses nls nptl nptlonly nsplugin offensive ogg openal opengl pam pcmcia pcre pda pdf perl png ppds pppd python quicktime readline reflection samba scanner session spell spl sqlite3 sse ssl startup-notification svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis wifi win32codecs x264 x86 xml xorg xosd xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="savage"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

gentoo@laptop ~ $ lsmod
Module Size Used by
ndiswrapper 165396 0

Quote:
what that ubuntu is running compare to gentoo in terms of toolchain,kernel etc..

I've never much cared about that - which is part of the beauty, I guess. The website states, however:
"Under the hood": GCC 4.1.2, glibc 2.5, Linux 2.6.20

Some maybe :roll: relevant lines of my messages (sorry, didn't know what to take out, really):
Code:
Apr 10 23:11:11 laptop Linux version 2.6.19-gentoo-r5 (root@laptop) (gcc version 4.1.1 (Gentoo 4.1.1-r3)) #5 SMP Fri Apr 6 02:16:23 CEST 2007
Apr 10 23:11:11 laptop BIOS-provided physical RAM map:
Apr 10 23:11:11 laptop BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
Apr 10 23:11:11 laptop BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
Apr 10 23:11:11 laptop BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
Apr 10 23:11:11 laptop BIOS-e820: 0000000000100000 - 000000001dff0000 (usable)
Apr 10 23:11:11 laptop BIOS-e820: 000000001dff0000 - 000000001dffffc0 (ACPI data)
Apr 10 23:11:11 laptop BIOS-e820: 000000001dffffc0 - 000000001e000000 (ACPI NVS)
Apr 10 23:11:11 laptop BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
Apr 10 23:11:11 laptop 0MB HIGHMEM available.
Apr 10 23:11:11 laptop 479MB LOWMEM available.
Apr 10 23:11:11 laptop Detected 1500.126 MHz processor.
Apr 10 23:11:11 laptop Local APIC disabled by BIOS -- you can enable it with "lapic"
Apr 10 23:11:11 laptop mapped APIC to ffffd000 (013ea000)
Apr 10 23:11:11 laptop Console: colour VGA+ 80x25
Apr 10 23:11:11 laptop Memory: 480572k/491456k available (3111k kernel code, 10368k reserved, 1459k data, 264k init, 0k highmem)
Apr 10 23:11:11 laptop Enabling disabled K7/SSE Support.
25x
Apr 10 23:11:11 laptop pci_get_subsys() called while pci_devices is still empty

Apr 10 23:11:11 laptop [ACPI Debug]  String: [0x09] "LINKA-SRS"
Apr 10 23:11:11 laptop [ACPI Debug]  Integer: 0x0000000B
Apr 10 23:11:11 laptop [ACPI Debug]  String: [0x0A] "LINK-A STA"
Apr 10 23:11:11 laptop [ACPI Debug]  String: [0x09] "LINKA-CRS"
Apr 10 23:11:11 laptop [ACPI Debug]  Buffer: [0x06]
Apr 10 23:11:11 laptop ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
Apr 10 23:11:11 laptop microcode: CPU0 not a capable Intel processor
Apr 10 23:11:11 laptop pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Apr 10 23:11:11 laptop Real Time Clock Driver v1.12ac
Apr 10 23:11:11 laptop Linux agpgart interface v0.101 (c) Dave Jones
Apr 10 23:11:11 laptop ACPI: AC Adapter [ADP0] (off-line)
Apr 10 23:11:11 laptop ACPI: Battery Slot [BAT0] (battery present)
Apr 10 23:11:11 laptop ACPI: Power Button (FF) [PWRF]
Apr 10 23:11:11 laptop ACPI: Lid Switch [LID]
Apr 10 23:11:11 laptop ACPI: Power Button (CM) [PBTN]
Apr 10 23:11:11 laptop ACPI: CPU0 (power states: C1[C1] C2[C2])
Apr 10 23:11:11 laptop ACPI: Processor [CPU0] (supports 16 throttling states)
Apr 10 23:11:11 laptop [ACPI Debug]  String: [0x25] "Current Temperature C is ----------- "
Apr 10 23:11:11 laptop [ACPI Debug]  Integer: 0x0000003D
Apr 10 23:11:11 laptop [ACPI Debug]  String: [0x25] "Current Temperature K is ----------- "
Apr 10 23:11:11 laptop [ACPI Debug]  Integer: 0x00000D0E
Apr 10 23:11:11 laptop [ACPI Debug]  String: [0x25] "Current Temperature C is ----------- "
Apr 10 23:11:11 laptop [ACPI Debug]  Integer: 0x0000003D
Apr 10 23:11:11 laptop [ACPI Debug]  String: [0x25] "Current Temperature K is ----------- "
Apr 10 23:11:11 laptop [ACPI Debug]  Integer: 0x00000D0E
Apr 10 23:11:11 laptop ACPI: Thermal Zone [THRM] (61 C)
Apr 10 23:11:11 laptop 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
Apr 10 23:11:11 laptop 8139cp 0000:00:0d.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
Apr 10 23:11:11 laptop 8139cp 0000:00:0d.0: Try the "8139too" driver instead.
Apr 10 23:11:11 laptop 8139too Fast Ethernet driver 0.9.28
Apr 10 23:11:11 laptop eth0: RealTek RTL8139 at 0xde81c000, 00:c0:9f:1b:5c:c2, IRQ 10
Apr 10 23:11:11 laptop eth0:  Identified 8139 chip type 'RTL-8139C'
Apr 10 23:11:11 laptop Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
Apr 10 23:11:11 laptop ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Apr 10 23:11:11 laptop Probing IDE interface ide0...
Apr 10 23:11:11 laptop hda: SAMSUNG HM080HC, ATA DISK drive
Apr 10 23:11:11 laptop Probing IDE interface ide1...
Apr 10 23:11:11 laptop ieee1394: Host added: ID:BUS[0-00:1023]  GUID[00c09f0000082ff0]
Apr 10 23:11:11 laptop hdc: QSI CD-RW/DVD-ROM SBW-161, ATAPI CD/DVD-ROM drive
Apr 10 23:11:11 laptop ieee1394: raw1394: /dev/raw1394 device initialized
Apr 10 23:11:11 laptop ieee1394: sbp2: Driver forced to serialize I/O (serialize_io=1)
Apr 10 23:11:11 laptop ieee1394: sbp2: Try serialize_io=0 for better performance
Apr 10 23:11:11 laptop Yenta: CardBus bridge found at 0000:00:0a.0 [152d:9905]
Apr 10 23:11:11 laptop Yenta O2: res at 0x94/0xD4: 00/ea
Apr 10 23:11:11 laptop Yenta O2: enabling read prefetch/write burst
Apr 10 23:11:11 laptop Yenta: ISA IRQ mask 0x0020, PCI irq 11
Apr 10 23:11:11 laptop Socket status: 30000821
Apr 10 23:11:11 laptop ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
Apr 10 23:11:11 laptop i8042.c: Detected active multiplexing controller, rev 1.1.
Apr 10 23:11:11 laptop serio: i8042 KBD port at 0x60,0x64 irq 1
Apr 10 23:11:11 laptop serio: i8042 AUX0 port at 0x60,0x64 irq 12
Apr 10 23:11:11 laptop serio: i8042 AUX1 port at 0x60,0x64 irq 12
Apr 10 23:11:11 laptop serio: i8042 AUX2 port at 0x60,0x64 irq 12
Apr 10 23:11:11 laptop serio: i8042 AUX3 port at 0x60,0x64 irq 12
Apr 10 23:11:11 laptop pccard: CardBus card inserted into slot 0
Apr 10 23:11:11 laptop mice: PS/2 mouse device common for all mice
Apr 10 23:11:11 laptop i2c /dev entries driver
Apr 10 23:11:11 laptop input: AT Translated Set 2 keyboard as /class/input/input0
Apr 10 23:11:11 laptop vt8231 0000:00:11.4: base address not set -             upgrade BIOS or use force_addr=0xaddr
Apr 10 23:11:11 laptop device-mapper: ioctl: 4.10.0-ioctl (2006-09-14) initialised: dm-devel@redhat.com
Apr 10 23:11:11 laptop Intel 810 + AC97 Audio, version 1.01, 03:44:40 Apr  4 2007
Apr 10 23:11:11 laptop Advanced Linux Sound Architecture Driver Version 1.0.13 (Tue Nov 28 14:07:24 2006 UTC).
Apr 10 23:11:11 laptop ACPI: PCI Interrupt 0000:00:11.5[C] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
Apr 10 23:11:11 laptop PCI: Setting latency timer of device 0000:00:11.5 to 64
Apr 10 23:11:11 laptop ALSA device list:
Apr 10 23:11:11 laptop #0: VIA 82C686A/B rev40 with Cx20468 at 0xe000, irq 10
Apr 10 23:11:11 laptop TCP cubic registered
Apr 10 23:11:11 laptop NET: Registered protocol family 1
Apr 10 23:11:11 laptop NET: Registered protocol family 10
Apr 10 23:11:11 laptop IPv6 over IPv4 tunneling driver
Apr 10 23:11:11 laptop NET: Registered protocol family 17
Apr 10 23:11:11 laptop powernow: PowerNOW! Technology present. Can scale: frequency and voltage.
Apr 10 23:11:11 laptop powernow: SGTC: 10000
Apr 10 23:11:11 laptop powernow: Minimum speed 500 MHz. Maximum speed 1500 MHz.
Apr 10 23:11:11 laptop acpi_processor-0740 [00] processor_preregister_: Error while parsing _PSD domain information. Assuming no coordination
Apr 10 23:11:11 laptop Using IPI Shortcut mode
Apr 10 23:11:11 laptop Time: tsc clocksource has been installed.
Apr 10 23:11:11 laptop Time: acpi_pm clocksource has been installed.
Apr 10 23:11:11 laptop Synaptics Touchpad, model: 1, fw: 5.9, id: 0x1b4cb1, caps: 0x88479b/0x0
Apr 10 23:11:11 laptop serio: Synaptics pass-through port at isa0060/serio4/input0
Apr 10 23:11:11 laptop input: SynPS/2 Synaptics TouchPad as /class/input/input1
Apr 10 23:11:11 laptop kjournald starting.  Commit interval 5 seconds
Apr 10 23:11:11 laptop EXT3-fs: mounted filesystem with ordered data mode.
Apr 10 23:11:11 laptop VFS: Mounted root (ext3 filesystem) readonly.
Apr 10 23:11:11 laptop Freeing unused kernel memory: 264k freed
Apr 10 23:11:11 laptop EXT3 FS on hda4, internal journal
Apr 10 23:11:11 laptop ndiswrapper version 1.33 loaded (preempt=no,smp=yes)
Apr 10 23:11:11 laptop ndiswrapper: driver netwg511 (NETGEAR,09/06/2004, 2.1.25) loaded
Apr 10 23:11:11 laptop PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
Apr 10 23:11:11 laptop ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
Apr 10 23:11:11 laptop PCI: Setting latency timer of device 0000:02:00.0 to 64
Apr 10 23:11:11 laptop ndiswrapper: using IRQ 11
Apr 10 23:11:11 laptop spurious 8259A interrupt: IRQ7.
Apr 10 23:11:11 laptop wlan0: ethernet device 00:0f:b5:24:aa:e0 using NDIS driver: netwg511, version: 0x20119, NDIS version: 0x501, vendor: 'NETGEAR WG511 54 Mbps Wireless PC Card', 1260:3890.5.conf
Apr 10 23:11:11 laptop wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA
Apr 10 23:11:11 laptop kjournald starting.  Commit interval 5 seconds
Apr 10 23:11:11 laptop EXT3 FS on hda6, internal journal
Apr 10 23:11:11 laptop EXT3-fs: mounted filesystem with ordered data mode.
Apr 10 23:11:11 laptop kjournald starting.  Commit interval 5 seconds
Apr 10 23:11:11 laptop EXT3 FS on hda2, internal journal
Apr 10 23:11:11 laptop EXT3-fs: mounted filesystem with ordered data mode.
Apr 10 23:11:11 laptop Adding 2096440k swap on /dev/hda5.  Priority:-1 extents:1 across:2096440k
Apr 10 23:11:17 laptop ADDRCONF(NETDEV_UP): wlan0: link is not ready
Apr 10 23:11:19 laptop rc-scripts: ERROR:  cannot start netmount as net.eth0 could not start
Apr 10 23:11:20 laptop ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Apr 10 23:11:24 laptop mtrr: no more MTRRs available
Apr 10 23:11:26 laptop eth0: link down
Apr 10 23:11:26 laptop ADDRCONF(NETDEV_UP): eth0: link is not ready
Apr 10 23:11:30 laptop wlan0: no IPv6 routers present
Apr 10 23:11:35 laptop wpa_cli: interface wlan0 CONNECTED
Back to top
View user's profile Send private message
theMerge
Apprentice
Apprentice


Joined: 01 Sep 2005
Posts: 158
Location: Little Elm, TX

PostPosted: Wed Apr 11, 2007 1:55 am    Post subject: Reply with quote

Ok, here's a couple of suggestions.

First, make sure that you optimize your system. Ubuntu does this for you. With Gentoo you need to do it yourself. Go to http://www.gentoo.org/doc/ and follow the appropriate language link then work through some of the Desktop and system documentation. Some of these things will help speed things up somewhat.

Second, gentoo uses the standard init system (startup), there are faster systems, I believe that Ubuntu uses one of those. You might want to look into init-ng or some other alternative. I stick with the standard because I don't really spend alot of time restarting.

Most important, make sure that you use hdparm. It speeds up your hard disk performance. Ubuntu sets this for you. I used this guide at gentoo-wiki.com to help me. I'm sure you can google some other neat guides for that as well.

The long and short of it is you need to spend some time in optimization of your system. Gentoo-wiki can help you with that as well as the Tips & Tricks here on this forum.

Hope that helps point you in the right direction.
_________________
[Insert favorite Ghandi quote here]
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Wed Apr 11, 2007 5:56 am    Post subject: Reply with quote

Don't forget prelink

Have a look at these:

Apr 10 23:11:11 laptop microcode: CPU0 not a capable Intel processor
Apr 10 23:11:11 laptop 8139cp 0000:00:0d.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
Apr 10 23:11:11 laptop 8139cp 0000:00:0d.0: Try the "8139too" driver instead.


And since you are using EXT3 check out Codergeeks EXT3 File system tips
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Wed Apr 11, 2007 5:51 pm    Post subject: Reply with quote

As always, check for DMA (seems like you got an ide hard disk there). Try hdparm -tT /dev/<device> to get a performance measurement.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
Hajo Piltz
n00b
n00b


Joined: 31 Mar 2007
Posts: 23

PostPosted: Wed Apr 11, 2007 7:27 pm    Post subject: Reply with quote

Code:
laptop gentoo # hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   214 MB in  2.02 seconds = 106.06 MB/sec
 Timing buffered disk reads:    6 MB in  3.31 seconds =   1.81 MB/sec


Does this suggest much can be achieved by using hdparm?

edit: I found this one:

Code:
laptop gentoo # hdparm -d /dev/hda

/dev/hda:
 using_dma    =  0 (off)
laptop gentoo # hdparm -d1 /dev/hda

/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)


answering the question. I will work through the wiki suggested by theMerge.

Thanks, will be back with an update on the performance!
Back to top
View user's profile Send private message
Hajo Piltz
n00b
n00b


Joined: 31 Mar 2007
Posts: 23

PostPosted: Wed Apr 11, 2007 7:53 pm    Post subject: Reply with quote

What does

Code:
Apr 10 23:11:11 laptop microcode: CPU0 not a capable Intel processor


mean and what can (should?) I do about it?

I tried to search for it, but as it seems to be in every second message posting, I couldn't find anything relevant...

Thanks
Hajo
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Wed Apr 11, 2007 9:29 pm    Post subject: Reply with quote

What does 'cat /proc/cpuinfo' say? If you have a VIA CPU instead of an Intel CPU, that changes everything.

OTOH, if you have an Intel CPU and a VIA motherboard chipset, you probably just didn't pick the right PCI or IDE driver in your kernel config.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Wed Apr 11, 2007 10:17 pm    Post subject: Reply with quote

The OP has already posted his /proc/cpuinfo above.

To OP: you have an Athlon XP, so I wonder why you are worried that the dmesg says you don't have an Intel CPU!
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
theMerge
Apprentice
Apprentice


Joined: 01 Sep 2005
Posts: 158
Location: Little Elm, TX

PostPosted: Wed Apr 11, 2007 10:54 pm    Post subject: Reply with quote

Hajo Piltz wrote:
What does

Code:
Apr 10 23:11:11 laptop microcode: CPU0 not a capable Intel processor


mean and what can (should?) I do about it?

I tried to search for it, but as it seems to be in every second message posting, I couldn't find anything relevant...

Thanks
Hajo


Well, it looks to me like you are running the wrong arch in your kernel. I might be wrong, but you should make sure that the arch in your kernel and the actual hardware are the same.
Code:
 Processor type and features  --->
    Processor family (***Processor Type Here***)  ---> ** Set this to the correct arch


If your arch is correct, I'm not sure why you are getting that message.
_________________
[Insert favorite Ghandi quote here]
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Wed Apr 11, 2007 11:06 pm    Post subject: Reply with quote

Hajo Piltz wrote:
Code:
laptop gentoo # hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   214 MB in  2.02 seconds = 106.06 MB/sec
 Timing buffered disk reads:    6 MB in  3.31 seconds =   1.81 MB/sec


Does this suggest much can be achieved by using hdparm?

Yes, especially at startup harddrive i/o is the main bottleneck. Your first fix should be to get dma up and going. You will probably need to enable the correct kernel setting for your chipset.
Back to top
View user's profile Send private message
Hajo Piltz
n00b
n00b


Joined: 31 Mar 2007
Posts: 23

PostPosted: Thu Apr 12, 2007 5:52 am    Post subject: Reply with quote

Sure enough selecting the right chipset driver and enabling DMA in the kernel changed everything!

Code:
laptop gentoo # hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   216 MB in  2.01 seconds = 107.49 MB/sec
 Timing buffered disk reads:   68 MB in  3.05 seconds =  22.30 MB/sec


and more importantly:
to XDM: 30s
to XFCE: 12s :D

and Firefox is starting up much quicker, too.

Thanks to everybody! Will add [solved] because now I'm happy. :D
I'm still going to tweak the ext3 some more. I'm not sure about prelinking, though. Does it break anything - for example when I reboot after an update of essential libraries without re-prelinking or will it only fall-back to resolving the symbols?
Back to top
View user's profile Send private message
Hajo Piltz
n00b
n00b


Joined: 31 Mar 2007
Posts: 23

PostPosted: Thu Apr 12, 2007 5:59 am    Post subject: Reply with quote

[quote="To OP: you have an Athlon XP, so I wonder why you are worried that the dmesg says you don't have an Intel CPU![/quote]

I was wonding about this because it said I had no capable cpu. To me that sounded like it was trying to run some instructions that didn't work.
Back to top
View user's profile Send private message
theMerge
Apprentice
Apprentice


Joined: 01 Sep 2005
Posts: 158
Location: Little Elm, TX

PostPosted: Thu Apr 12, 2007 3:26 pm    Post subject: Reply with quote

Hajo Piltz wrote:
I was wonding about this because it said I had no capable cpu. To me that sounded like it was trying to run some instructions that didn't work.
This is exactly what it's doing! Since you have the "standard x86" option compiled into your kernel (it wouldn't work otherwise) the processor is limping along on just the basic instruction sets. None of the processor specific instructions are being used because your hardware and drivers are not matched.

Find out your specific processor type, then change it in your kernel. If you don't know how to compile your own kernel, check out this guide. You can also read up on a fairly easy to use program called genkernel.
_________________
[Insert favorite Ghandi quote here]


Last edited by theMerge on Thu Apr 12, 2007 3:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
theMerge
Apprentice
Apprentice


Joined: 01 Sep 2005
Posts: 158
Location: Little Elm, TX

PostPosted: Thu Apr 12, 2007 3:29 pm    Post subject: Reply with quote

Hajo Piltz wrote:
'm not sure about prelinking, though. Does it break anything - for example when I reboot after an update of essential libraries without re-prelinking or will it only fall-back to resolving the symbols?


I've used prelinking just about since it first came to Gentoo. It's a good way to speed things up just a bit. You should read the prelinking guide. It gives the pros and cons as well as how to do it.
_________________
[Insert favorite Ghandi quote here]
Back to top
View user's profile Send private message
Hajo Piltz
n00b
n00b


Joined: 31 Mar 2007
Posts: 23

PostPosted: Thu Apr 12, 2007 6:58 pm    Post subject: Reply with quote

Code:
  │ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ 
  │ │                      [*] Symmetric multi-processing support                                                      │ │ 
  │ │                          Subarchitecture Type (Generic architecture (Summit, bigsmp, ES7000, default))  --->     │ │ 
  │ │                          Processor family (Athlon/Duron/K7)  --->                                                │ │ 
  │ │                      [*] Generic x86 support                                                                     │ │ 


So, I do indeed have generic x86 enabled but I think I also selected the right processor! Should I disable the generic support or would that leave me with an unbootable system?
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Thu Apr 12, 2007 7:13 pm    Post subject: Reply with quote

Hajo Piltz wrote:

│ │ [*] Symmetric multi-processing support │ │
│ │ Subarchitecture Type (Generic architecture (Summit, bigsmp, ES7000, default)) ---> │ │
│ │ Processor family (Athlon/Duron/K7) ---> │ │
│ │ [*] Generic x86 support │ │

So, I do indeed have generic x86 enabled but I think I also selected the right processor! Should I disable the generic support or would that leave me with an unbootable system?
You need to change that to PC-Compatible.
And you don't need the "Generic x86 support".
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu Apr 12, 2007 7:40 pm    Post subject: Reply with quote

theMerge wrote:
Hajo Piltz wrote:
I was wonding about this because it said I had no capable cpu. To me that sounded like it was trying to run some instructions that didn't work.
This is exactly what it's doing! Since you have the "standard x86" option compiled into your kernel (it wouldn't work otherwise) the processor is limping along on just the basic instruction sets. None of the processor specific instructions are being used because your hardware and drivers are not matched.

Find out your specific processor type, then change it in your kernel. If you don't know how to compile your own kernel, check out this guide. You can also read up on a fairly easy to use program called genkernel.
No, that's not why that message appears. The microcode kernel message is emitted by the Intel processor microcode update driver, which had apparently been compiled into the kernel (symbol CONFIG_MICROCODE, selected through Processor type and features -> Intel IA32 CPU microcode support). It's a processor "software" update facility only present in Intel processors, hence the warning message. It's absolutely nothing to worry about in this case, all it does is make the kernel image file slightly bigger and take up about 3 KB of RAM.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu Apr 12, 2007 7:41 pm    Post subject: Reply with quote

Hajo Piltz wrote:
Code:
  │ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ 
  │ │                      [*] Symmetric multi-processing support                                                      │ │ 
  │ │                          Subarchitecture Type (Generic architecture (Summit, bigsmp, ES7000, default))  --->     │ │ 
  │ │                          Processor family (Athlon/Duron/K7)  --->                                                │ │ 
  │ │                      [*] Generic x86 support                                                                     │ │ 


So, I do indeed have generic x86 enabled but I think I also selected the right processor! Should I disable the generic support or would that leave me with an unbootable system?
There's no need to change that, see my above message. The generic x86 support shouldn't have any significant performance impact. There's no harm in removing it, but if you don't want to bother recompiling the kernel and rebooting, you can safely leave it be.
The subarchitecture setting is wrong, but it shouldn't matter either in your case, for x86 the subarchitecture gets overridden by the processor type anyway.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
theMerge
Apprentice
Apprentice


Joined: 01 Sep 2005
Posts: 158
Location: Little Elm, TX

PostPosted: Thu Apr 12, 2007 10:26 pm    Post subject: Reply with quote

I stand corrected thanks for the info.
_________________
[Insert favorite Ghandi quote here]
Back to top
View user's profile Send private message
Hajo Piltz
n00b
n00b


Joined: 31 Mar 2007
Posts: 23

PostPosted: Fri Apr 13, 2007 9:12 pm    Post subject: Reply with quote

OK, I fixed the subarchitecture and removed the microcode part. I understand this will not change a lot but I still think it was worth it...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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