LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What are the basic steps to troubleshoot slowness of a linux system (https://www.linuxquestions.org/questions/linux-newbie-8/what-are-the-basic-steps-to-troubleshoot-slowness-of-a-linux-system-657664/)

cool_p17 07-23-2008 06:46 AM

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.

jschiwal 07-23-2008 07:43 AM

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.

unSpawn 07-23-2008 07:47 AM

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.

camorri 07-23-2008 07:50 AM

Can you be more specific about what is slow? Disk I/O , booting, video, communication??? It is difficult to help with very little information.

jkzfixme 07-23-2008 10:23 AM

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

Vit77 07-23-2008 12:49 PM

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 :)

jschiwal 07-25-2008 05:21 PM

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


All times are GMT -5. The time now is 06:35 PM.