LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2008, 06:46 AM   #1
cool_p17
LQ Newbie
 
Registered: Jul 2008
Location: mumbai
Posts: 4

Rep: Reputation: 0
What are the basic steps to troubleshoot slowness of a linux system


Hi, I am not very much familiar with linux. I know installation, basic services & configuration, but not done the troubleshooting part. Can someone tell me the basic steps to troubleshoot the slowness of a linux system? I tried a few commands like top, vmstat, iostat, sysstat etc. Is there anything else that i shall look into? Please advise.
 
Old 07-23-2008, 07:43 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If it is only a web oriented program that seems slow to start up, one thing to consider is to disable ipv6. Sometimes a dns lookup is tried using it resulting in a delay until it times out.
 
Old 07-23-2008, 07:47 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Please fill in your user info like distribution and such.

In relation to what's said already, "slowness" is not easy to deal with if it's not expressed in values (in other words: perception of speed). In my opinion the best way to start is to set up baseline data like you did with your SAR tools (or Atop or Dstat or Collectl) running for at least 24 hours. This way, if you tweaked things, you'll have objective numbers to compare against. List your hardware, distribution, kernel, any sysctls or other tweaks you already tried (for most of that I still use ServDoc. OK, it's old but it doesn't need to be installed and can output text, HTML, etc.). Data and information together can also help when comparing with other peoples benchmarks, say if you expected higher disk throughput, or directly pinpoint bottlenecks like low RAM, swap usage, wrong scheduler, et cetera. You might also want to search LQ for threads about performance tuning or performance issues, we've got quite some threads. Any questions, just ask.
 
Old 07-23-2008, 07:50 AM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,222

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Can you be more specific about what is slow? Disk I/O , booting, video, communication??? It is difficult to help with very little information.
 
Old 07-23-2008, 10:23 AM   #5
jkzfixme
Member
 
Registered: Sep 2006
Location: Orange County, NY
Distribution: Ubuntu, Solaris, Android
Posts: 329
Blog Entries: 21

Rep: Reputation: 52
Just in general i like to remove all unnecessary services, most people tend to think oh yeah thats great at the time of install and never use it = )

Regards
JKZfixme
 
Old 07-23-2008, 12:49 PM   #6
Vit77
Member
 
Registered: Jun 2008
Location: Toronto, Canada
Distribution: SuSE, RHEL, Mageia
Posts: 132

Rep: Reputation: 17
Basically, you're on the right way. You need to find the process(-es) which consumes a lot of resource such as memory or CPU or disk.
If there are no "crocodiles", try to switch off some unused services and applettes.
Another way is to rebuild the kernel, but it's already the topic of the book, but not the forum post
 
Old 07-25-2008, 05:21 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Also, look in your logs. A hardware problem such as a hard drive going bad could cause slowdowns as well.
 
  


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
Need basic steps to set up a home file server rip Linux - General 6 08-21-2007 05:16 AM
Steps to troubleshoot the internet connection... nahawand Linux - Newbie 12 07-26-2007 01:34 AM
basic steps for upgrading from 9.1 - 10.0? varese SUSE / openSUSE 3 11-20-2005 07:25 PM
Basic Sound troubleshooting steps? penguinlnx Linux - Software 3 03-16-2005 12:49 AM
basic steps for opengl programming noir-gel Programming 5 06-24-2003 09:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:35 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