LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-04-2007, 08:50 PM   #1
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 158

Rep: Reputation: 21
Slackware 12 unusably slow on I8200


Okay, I just got done upgrading to Slack 12 on my Inspiron 8200 using the Upgrade.txt instructions.

Everything went more or less okay, and the system boots, but once up and running it is seriously slow. The boot process itself seems to go along at a reasonable clip (although the first time it went through it also seemed really slow).

But tasks when it's up and running are unbearable. For instance, starting X (even just to get to get the server running; let alone starting KDE) and compiling the NVIDIA kernel module take an age, and /sbin/ldconfig (which I have running at shutdown) takes 10+ minutes. Seriously.

Same problem with both the SMP and non-SMP generic versions of the kernel. I haven't reverted to the huge kernel yet as I can't see how it would help.

I've run hdparm and confirmed the disk is using DMA.

Anyone experienced similar or have tips on where else to start looking? Is it possible HAL is just too taxing? Seems to me it must be something more fundamental.
 
Old 07-04-2007, 09:48 PM   #2
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 158

Original Poster
Rep: Reputation: 21
Okay. More problem definition.

Having played around a bit more, it appears that applications are very, very slow to run the first time (with lots of apparent HD activity), but then if exited and run again, go very quickly. Have confirmed this with X, KDE, and Office Calc.

I don't know much about shared libraries and such, but that makes me think there's some kind of issue causing the initial linking of the shared libraries to be painfully slow. I guess once run, the linked binaries stay cached somehow?

I haven't tried running HD timings (and don't have written down what they were before to compare with), but could it be some kind of HD throughput issue peculiar to this kernel/configuration/etc?

I tried another distro once years ago that acted exactly like this, but gave up on it before I found any resolution. Given my history with Slackware (6+ years now) I'm willing to try a little longer this time around. Hopefully I'll get some help from the gurus here along the way.

Oh, and I lied about ldconfig. It takes 5+ minutes, not 10+ minutes (actually timed it).

Last edited by xflow7; 07-04-2007 at 09:50 PM.
 
Old 07-04-2007, 09:52 PM   #3
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
can you expand on your HW setup? I have a inspiron 8500 I did a full slack12 install on yesterday, and its not screaming (yet - still setting things up) but its definitely not taking too long to do anything either.

my i8500 has P4 2.4GHz, 2GB RAM, 100GB travelstar HD, ati radeon 200m (?)
 
Old 07-05-2007, 04:33 AM   #4
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 158

Original Poster
Rep: Reputation: 21
I8200, 2GHz, 384MB RAM, 60G HD (can't remember the details offhand), NVIDIA GeForce4 440 Go

I realize the 384GB is probably less than ideal, but I wouldn't expect it to be such an impediment for just firing up X or a single application, and it's never caused perceptible issues in 11.0
 
Old 07-05-2007, 05:47 AM   #5
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 158

Original Poster
Rep: Reputation: 21
Some progress, but not solved

Okay,

I discovered that /etc/ld.so.conf still had the legacy /opt/kde lib directory and not the new /usr/lib/kde3 location, plus for whatever reason, there were still a bunch of libs in /opt/kde. Once I blew away /opt/kde and changed the entry in ld.so.conf, the /sbin/ldconfig step is very quick.

So, that part is sorted. However, I am concerned by the fact that I wasn't presented with an ld.so.conf.new after the upgrade to address this. Not sure if I accidentally deleted it instead of merging it, or of if this is a miss somewhere in the upgrade/instructions.

Since there may be other less glaring problems with my ld.so.conf, can someone who did a fresh Slack12 install please post theirs for me to check against?

Also, do I need to flush the ld cache in some way to optimize it after significant changes to ld.so.conf, or should it sort itself out?

Running applications is still very slow. I still wonder if this may be related to dynamic linking in some way, but I am not so sure as examining the NVIDIA binary installer with ldd shows that it is not dynamically linked, and yet it is very, very slow (to the point that I have not managed to let it complete yet). However, maybe it is calling things that *are* dynamically linked?

Thanks,

Dave
 
Old 07-05-2007, 06:11 AM   #6
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 158

Original Poster
Rep: Reputation: 21
Or not

Well, I fooled myself on the ldconfig thing.

When I rebooted and then shutdown, /sbin/ldconfig took forever again.

After I altered /etc/ld.so.conf earlier I ran /sbin/ldconfig right away which took a long time, but I assumed it was because it had to update a lot of stuff (which is what I was figuring was happening with all the duplicated libraries in the old kde location). When it shutdown that time it was very quick.

It didn't dawn on me at the time that this was just the same issue that's dogging everything else (that the second time something gets run it's quick, but the first time is really slow).

So, I think the ld.so.conf thing is a red herring. Plus, I went back and looked in the packages and found ld.so.conf.new which is only two lines (/local/lib and /lib/i486-slackware-lib/ or something) and which I had in fact merged into mine.

So, what's going on? What would cause programs to be agonizingly slow the first time after a reboot and then run fine in subsequent invocations?

Dave
 
Old 07-05-2007, 07:51 PM   #7
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 158

Original Poster
Rep: Reputation: 21
Almost 24 hours and no ideas yet? That's not a good sign...
 
Old 07-05-2007, 08:33 PM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,748

Rep: Reputation: 160Reputation: 160
I have a 3 year old P4, and found that even without anything running (not even X!) my CPU usage was ALWAYS around 25% with the default Slackware 12 kernels. This happened with the generic and huge kernels.

The "top" command showed me that it was a kernel process taking up all the CPU time (For the lif eof me, I can't remember what that process was called now). I compiled a custom kernel, and that behaviour no longer occurs.
 
Old 07-05-2007, 09:12 PM   #9
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 158

Original Poster
Rep: Reputation: 21
Thanks for the reply. Actually, I just logged in to say I think I've found the problem. After reading through a few Ubuntu related posts it seems that something about the way the CD-ROM and HD are configured on the IDE bus in some Dell laptops causes the hard drive throughput to tank if HAL is running and polling the CD for media insertion. I disabled HAL (chmod -x rc.hald) and everything seems to run as I'd expect. Running hdparm -t I get ~10-15 MB/sec while HAL is running and ~20 MB/sec without. The difference in machine speed in use is about an order of magnitude more noticeable.

That's somewhat disappointing as HAL functionality was part of the motivation for upgrading, but maybe there's a way to tweak HAL that maintains most of the functionality without causing that particular issue.

I did look at top early on and didn't see anything untoward, but I'll have a closer look now that the HAL thing appears to be corrected.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unmountable Floppy? (Gentoo, Dell i8200) soupface Linux - Newbie 7 10-05-2004 01:23 PM
Debian testing (sarge) - wireless on dell i8200 laptop steve1401 Linux - Wireless Networking 1 07-08-2004 02:48 AM
Extra buttons on i8200 fettouhi Linux - Newbie 0 10-18-2003 01:59 AM
redhat 7.2 and dell I8200 video twitch_83 Linux - Newbie 1 11-07-2002 01:38 AM
slackware very slow! Syncrm Linux - Software 6 01-25-2002 07:12 AM


All times are GMT -5. The time now is 06:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration