Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo slow
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
redo86
n00b
n00b


Joined: 29 Nov 2008
Posts: 43
Location: Pisa

PostPosted: Fri Dec 05, 2008 2:18 pm    Post subject: Gentoo slow Reply with quote

Hello forum i've installed gentoo but i've a problem, the first time that i lunch a program ( firefox or amarok or medit etc...) my laptpo need a lot of time, after if i re-lunch the same program it's very fast; it can be libraries fault? If so, can i autorun the most important ? otherwise ho can i resolve??
p.s.
i've already re-emerge gtk pango and glib and etc-update
_________________
Happiness is thinking linear
[img]http://www.fruciano.it/Musica2/korn/korn.jpg[/img]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54316
Location: 56N 3W

PostPosted: Fri Dec 05, 2008 2:38 pm    Post subject: Reply with quote

redo86,

Maybe you have DMA off for your hard drive ?

What does
Code:
hdparm /dev/....
show?
If DMA is off, please post the output of lspci, so we can help you fix it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
redo86
n00b
n00b


Joined: 29 Nov 2008
Posts: 43
Location: Pisa

PostPosted: Fri Dec 05, 2008 4:03 pm    Post subject: Reply with quote

dma is off :( this is the output of lspci
Code:

00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 01)
02:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
02:06.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
02:0e.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
10:00.0 Network controller: Broadcom Corporation BCM94311MCG wlan mini-PCI (rev 01)


_________________
Happiness is thinking linear
[img]http://www.fruciano.it/Musica2/korn/korn.jpg[/img]
Back to top
View user's profile Send private message
mgrela
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2008
Posts: 123
Location: Polska

PostPosted: Fri Dec 05, 2008 6:17 pm    Post subject: Reply with quote

If you have a SATA hdd check in the BIOS if the controller is not working in IDE compatibility mode. IIRC on Intel it has serious performance issues and shouldn't be used. You should be using AHCI. Remember, that for AHCI to work you need to enable support for it in the kernel or yout kernel will panic. Also it would be helpful if you posted the output of
Code:
 dmesg
immidiately after bootup. Another thing which you can do is to execute this command:

Code:

hdparm -t <harddisk_device>


It will measure the data transfer speed for your HDD. Compare it to the drive specifications (maybe look for some benchmarks of the drive). This way you can make sure if the HDD is causing the slowness.
_________________
Maciej Grela
You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54316
Location: 56N 3W

PostPosted: Fri Dec 05, 2008 6:49 pm    Post subject: Reply with quote

redo86,

Check your kernel settings are like this
Be aware that this will make all your drives appear as SCSI devices, with names like /dev/sda, even if they are really PATA devices.
You may need to change /etc/fstab and grub.conf. Details are in the link.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
redo86
n00b
n00b


Joined: 29 Nov 2008
Posts: 43
Location: Pisa

PostPosted: Sun Dec 07, 2008 7:09 pm    Post subject: Reply with quote

ok i've read the howto and i've done all, i see also that option sata in the bios was disabled, so i 've enabled, but the program are still slow th first time :S; however this command hdparm -t /dev/sda1 return this result:

/dev/sda1:
Timing buffered disk reads: 128 MB in 3.04 seconds = 42.05 MB/sec

but means:P?
_________________
Happiness is thinking linear
[img]http://www.fruciano.it/Musica2/korn/korn.jpg[/img]
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9538
Location: beyond the rim

PostPosted: Sun Dec 07, 2008 8:40 pm    Post subject: Reply with quote

redo86 wrote:
but the program are still slow th first time :S;

How slow is "slow"? It's normal that programs take longer when they're started the first time, on later starts the relevant files are already in the filesystem cache so don't have to be read from disk again.


Last edited by Genone on Mon Dec 08, 2008 5:55 am; edited 1 time in total
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Dec 08, 2008 1:28 am    Post subject: Reply with quote

42.05 is pretty good for a laptop.

Just to compare, on my desktop I have this :

Code:

gentootux ~ # hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   14086 MB in  2.00 seconds = 7053.15 MB/sec
 Timing buffered disk reads:  328 MB in  3.02 seconds = 108.66 MB/sec
gentootux ~ #

Back to top
View user's profile Send private message
redo86
n00b
n00b


Joined: 29 Nov 2008
Posts: 43
Location: Pisa

PostPosted: Mon Dec 08, 2008 4:45 pm    Post subject: Reply with quote

mm undestand=) but now i remeber why i've disabled sata option in the bios...because windows, i don't know why, but start only if the option is off :S, so i must disabled :(, but i've an idea: i can look the kernel when i use ubuntu and set my kernel (because with ubuntu, the sofwtare was more fast then now using gentoo :S)...it's bad or good idea? then after i use hdparm options...is good idea?
edit: ok i've tried but kernel is almost all turned on :S how can i do??
_________________
Happiness is thinking linear
[img]http://www.fruciano.it/Musica2/korn/korn.jpg[/img]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54316
Location: 56N 3W

PostPosted: Mon Dec 08, 2008 6:54 pm    Post subject: Reply with quote

redo86,

Windows wants to use the AHCI driver in BIOS SATA mode but its not shipped with windows.
Set IDE mode in the BIOS, boot into windows and install the AHCI update.
Go into the BIOS, set SATA mode and both Windows and Linux should work
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
redo86
n00b
n00b


Joined: 29 Nov 2008
Posts: 43
Location: Pisa

PostPosted: Mon Dec 08, 2008 7:13 pm    Post subject: Reply with quote

thank you very much :) i try
_________________
Happiness is thinking linear
[img]http://www.fruciano.it/Musica2/korn/korn.jpg[/img]
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