LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-26-2008, 03:39 PM   #1
malto
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Rep: Reputation: 0
Slackware 12.2 USB Installation - Extremely Slow


Hello,

I've gotten Slack 12.2 installed on an Intel Atom 330 based PC using only an 8GB USB stick as the hard drive, and it is incredibly slow.

For example, just loading the hugesmp kernel through LILO takes about a minute. Once everything is loaded, the machine speeds up significantly, but it still appears that file system accesses are a major bottleneck.

Once logged into KDE, the system still responds incredibly slow to anything that seems to require much file system access.

In order to determine whether or not this issue is actually a hardware problem, I installed Ubuntu on the same stick, and it seems to be much quicker.

Is there something I can do to speed up the system's access to the USB stick?

Thanks.
 
Old 12-26-2008, 04:12 PM   #2
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Quote:
Originally Posted by malto View Post
Hello,

I've gotten Slack 12.2 installed on an Intel Atom 330 based PC using only an 8GB USB stick as the hard drive, and it is incredibly slow.

For example, just loading the hugesmp kernel through LILO takes about a minute. Once everything is loaded, the machine speeds up significantly, but it still appears that file system accesses are a major bottleneck.

Once logged into KDE, the system still responds incredibly slow to anything that seems to require much file system access.

In order to determine whether or not this issue is actually a hardware problem, I installed Ubuntu on the same stick, and it seems to be much quicker.

Is there something I can do to speed up the system's access to the USB stick?

Thanks.
For the loading at LILO try adding this word to a new line in /etc/lilo.conf (before the Linux section and VGA section)

"compact" (with no quotes)

This will dramatically increase the load times in LILO

Example

Code:
append=" vt.default_utf8=0"
boot = /dev/sda
  bitmap = /boot/slack.bmp
  bmp-colors = 255,0,255,0,255,0
  bmp-table = 60,6,1,16
  bmp-timer = 65,27,0,255
prompt
lba32
compact

timeout = 1200
change-rules
  reset
vga = 791

# Windows bootable partition config begins
other = /dev/sda3
  label = Windows
  table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda1
  label = Linux
  read-only
# Linux bootable partition config ends
 
Old 12-26-2008, 04:31 PM   #3
malto
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks. I'll give that a shot once I get Slack reinstalled on the disk (since I tried Ubuntu...). I'm not so sure that this will help with anything other than the load time, though. When in KDE, the system responds so slow it's nearly unbearable. With a dual core 1.6GHz processor (even if it is an Atom...) and 2GB ram I would imagine it should be a lot quicker than this.
 
Old 12-26-2008, 05:20 PM   #4
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
Even though USB2 got a theoretical speed of 480MBit, a flashdrive in practices is really slow. (Depending on brand, read: Prize). In usb stick world you get what you pay for. Many cheep flashdrives got a USB2 support but isn't very much faster then a USB1 flash drive. A drive that is USB2 compatible isn't necessary a fast drive.

I've experienced USB2 flash drives with read speed down to something like 4-5MBits. Imagine to load a OS of perhaps a 100MB with 5MBits/sec. Things like that take a lot of time.
 
Old 12-26-2008, 05:45 PM   #5
malto
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
I do understand that USB is much slower than a regular disk interfaces, but it does seem that Ubuntu is faster than Slack for some reason...

We may replace the USB stick with a solid state drive if we can't find a solution, though it would be nicer to stick with the USB stick because of cost.

A word about this application... I'm on an undergrad electrical engineering team, and we've got to build an autonomous robot for our capstone project. This system is on a mini-ITX board mounted to the top of the robot, and we'll be using it for all of our image/video processing since we'll be navigating through the use of webcam(s) only. It should be a pretty fun project, I hope.
 
Old 12-26-2008, 05:59 PM   #6
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
Oh. I'm sorry. I read you first post a little to fast. It is odd that ubuntu is faster on the same stick. Personally I would try out slackware on an old fashion harddrive to see if the speed got better.

Btw, the project sounds awesome! I study electrical engineering myself, but we don't get to do cool stuff like that :/

Last edited by Dinithion; 12-26-2008 at 06:00 PM.
 
Old 12-26-2008, 08:48 PM   #7
malto
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
I added "compact" to my lilo.conf file, and it sped up the kernel load time from over a minute to a few seconds. However, the system is still really sluggish once it's booted.

The project should be really interesting. Our robot has to compete in the IEEE region 5 robotics competition, so we chose to build this as our senior project.
 
Old 12-26-2008, 10:32 PM   #8
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Did you install Ubuntu or Kubuntu? If you compare Ubuntu with Slackware, it may be a problem about KDE vs GNOME, not only two system. If you want to debug into this problem, you may install a Kubuntu to see whether the system is still sluggish or not. If Kubuntu is much faster than Slackware, it may be a problem between two systems.
 
Old 12-27-2008, 05:00 AM   #9
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,177

Rep: Reputation: 235Reputation: 235Reputation: 235
A simple command will show where the problem is:
hdparm --direct -t /dev/YOUR_HDD
where YOUR_HDD is your usb stick, usually sda or something alike.
 
Old 12-27-2008, 11:13 PM   #10
malto
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the advice. The system is at school, and I'll likely stop by tomorrow to take a look at what hdparm shows. I'll post back here to let you know what the output is.

Thanks again.
 
  


Reply



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
SOLVED: wine installation and extremely slow running ... pbhj Slackware 5 06-21-2006 11:51 AM
Usb External Harddrive - Extremely slow when reading files. RoaCh Of DisCor Linux - Hardware 1 04-26-2005 06:14 AM
New Slackware box, upload Extremely slow, download normal? fireman949 Linux - Networking 1 02-10-2005 01:20 PM
Help - Extremely slow in Mandrake 10 installation Tableau Mandriva 0 08-08-2004 03:40 PM
sdl games are slow extremely slow linksocc Linux - Software 7 01-17-2004 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration