hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Why is my machine so slow?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Why is my machine so slow?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-29-2004, 11:06 AM
pmak0 pmak0 is offline
Web Hosting Master
 
Join Date: Jul 2000
Location: Washington, DC
Posts: 591

Why is my machine so slow?


Does anyone know why my machine is so slow? The load average is high, but the CPU is mostly idle and "vmstat" doesn't show much swapping going on, so I'm at a loss to explain what's causing the high load average.

Code:
 10:05am  up 52 days,  9:08, 10 users,  load average: 8.14, 6.94, 6.39
282 processes: 274 sleeping, 3 running, 1 zombie, 4 stopped
CPU states:  1.1% user,  4.3% system,  0.0% nice, 94.4% idle
Mem:  1031204K av, 1017924K used,   13280K free,       0K shrd,   65776K buff
Swap: 1020116K av,  386212K used,  633904K free                  522464K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
    6 root       9   0     0    0     0 SW    0.9  0.0 735:58 kscand
 8891 hiko      19  19   588  568   508 D N   0.5  0.0   2:00 shred
13825 mysql      9   0 35440  24M  1240 D     0.5  2.3   0:00 mysqld
13885 shoujoai  12   0  1208 1208   848 R     0.5  0.1   0:00 top
 6070 pmak       9   0 30228  17M   992 D     0.3  1.7  29:22 mutt
   13 root       9   0     0    0     0 DW    0.1  0.0  16:16 kjournald
26671 mirror     9   0 17164  12M  2120 S     0.1  1.2   0:06 httpd

$ vmstat 1
   procs                      memory    swap          io     system         cpu
 r  b  w   swpd   free   buff  cache  si  so    bi    bo   in    cs  us  sy  id
 0  5  1 386212  18448  65608 524068   6   8     5     3    1     9   7   4   4
 0  4  1 386212  18016  65608 524504   0   0   436  2072  776   284   3   8  89
 0  4  1 386212  16544  65616 525564   4   0  1064  1836  637   333   2   3  95
 0  4  1 386212  16424  65624 525752   4   0   196  2304  685   288   2   1  97
 0  5  1 386212  15524  65644 526572   0   0   836  1952  626   342   1   5  94
 0  5  1 386212  15056  65652 526952   0   0   396  1736  520   266   1   2  97
 0  4  1 386212  14668  65664 527416   4   0   472  2200  575   272   2  12  86
 0  6  1 386212  13952  65676 527784   4   0   376  1732  517   256   2   4  94
 0  6  1 386212  13448  65680 528236   4   0   460  1932  579   280   2   2  96
 0  6  1 386212  13416  65680 528220   4   0   280  2128  614   311   0   9  91
 0  5  1 386212  13416  65684 527896   0   0   224  2480  725   264   1   4  95

Reply With Quote


Sponsored Links
  #2  
Old 01-29-2004, 11:48 AM
bitserve bitserve is offline
Web Hosting Master
 
Join Date: Nov 2001
Location: Ann Arbor, MI
Posts: 2,978
What is it slow at?

__________________
-Mark Adams
www.bitserve.com - Secure Michigan web hosting for your business.
Only host still offering a full money back uptime guarantee and prorated refunds.
Offering advanced server management and security incident response!

Reply With Quote
  #3  
Old 01-29-2004, 11:55 AM
pmak0 pmak0 is offline
Web Hosting Master
 
Join Date: Jul 2000
Location: Washington, DC
Posts: 591
Quote:
Originally posted by bitserve
What is it slow at?
It's slow at responding to my commands in the shell, as well as loading webpages on my forum.

Reply With Quote
Sponsored Links
  #4  
Old 01-29-2004, 02:53 PM
phpdeveloper phpdeveloper is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: Home, chair
Posts: 723
You have a large number of processes running and 10 users online. Maybe they're doing something that's causing the load? Need to paste more of your TOP here.

Reply With Quote
  #5  
Old 01-29-2004, 03:56 PM
pmak0 pmak0 is offline
Web Hosting Master
 
Join Date: Jul 2000
Location: Washington, DC
Posts: 591
I'd post a full ps, but my machine isn't heavily loaded right now. I'll wait until it's heavily loaded and then I'll capture a ps and post it here.

Reply With Quote
  #6  
Old 01-29-2004, 04:19 PM
qm8309 qm8309 is offline
Web Hosting Master
 
Join Date: Feb 2003
Posts: 1,136
Swap: 1020116K av, 386212K used, 633904K free

ur cpu is 94% idle however u r using almost 400mb swap memory. u r either running out of memory or some process/user is eating it up.

Reply With Quote
  #7  
Old 01-29-2004, 04:30 PM
pmak0 pmak0 is offline
Web Hosting Master
 
Join Date: Jul 2000
Location: Washington, DC
Posts: 591
Quote:
Originally posted by qm8309
Swap: 1020116K av, 386212K used, 633904K free

ur cpu is 94% idle however u r using almost 400mb swap memory. u r either running out of memory or some process/user is eating it up.
But the "si" (swap in) and "so" (swap out) columns in vmstat were near zero, so wouldn't that mean it's not actually causing a problem?

Reply With Quote
  #8  
Old 01-29-2004, 04:34 PM
ruler ruler is offline
WHT Addict
 
Join Date: Jul 2002
Posts: 148
Re: Why is my machine so slow?

Quote:
Originally posted by pmak0
Mem: 1031204K av, 1017924K used, 13280K free, 0K shrd, 65776K buff
Swap: 1020116K av, 386212K used, 633904K free
Your machine has ran out of ram. You are using swap which is very inefficient. I recommend you upgrading your machine before you start swapping too badly (or rather it looks like you already have)

Reply With Quote
  #9  
Old 01-29-2004, 05:25 PM
pmak0 pmak0 is offline
Web Hosting Master
 
Join Date: Jul 2000
Location: Washington, DC
Posts: 591
Okay, I caught my machine being slow. Here is a ps, top, free and vmstat 1:

http://lina.aaanime.net/~pmak/ps-2004-01-29.txt

Any suggestions? This time, the so seems high so maybe it is swapping that's killing me... getting a RAM upgrade isn't an option for me at this point though (unless I switch hosts; it's too expensive). Perhaps there's some performance tuning I could do?

Reply With Quote
  #10  
Old 01-29-2004, 07:33 PM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,555
you have a massive ammount of httpd processes, i suggest uppgrading your server


4:22pm up 52 days, 15:24, 11 users, load average: 6.75, 4.03, 2.77


have you updated ur kernel?

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com | 1.855.RACK911
System Administration Extraordinaire

Managed Dedicated Servers, Linux Server Management, Disaster Recovery, Server Security Audits

Reply With Quote
  #11  
Old 01-29-2004, 08:58 PM
sigma sigma is offline
Community Guide
 
Join Date: Apr 2001
Location: Pittsburgh, PA
Posts: 1,303
Quote:
Originally posted by pmak0
But the "si" (swap in) and "so" (swap out) columns in vmstat were near zero, so wouldn't that mean it's not actually causing a problem?
That would be my interpretation. Did anyone notice that several of the processes in "top" are in "D" status, and the "b" column of vmstat indicates lots of processes blocked on I/O? Since "si" and "so" are low, while "bi" and "bo" (block in and block out? Is this Linux?) are high, it suggests to me that the drive(s) are extremely busy and processes are waiting on that, possibly as a combination of heavy user disk activity and the swapping.

Kevin

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
1&1 Study Shows 72 Percent of US Online Shoppers Will Abandon Slow Sites for Competitors Web Hosting News 2012-07-13 16:18:05
unbelievable Machine Company Launches OnApp-Based Cloud Services Web Hosting News 2012-05-29 15:56:17
WHIR Demo: CodeGuard Whir Tv 2012-02-13 11:12:15
Slow Read DOS Attack Created by Software Engineer Shows HTTP Server Vulnerability Web Hosting News 2012-01-06 20:55:18
Web Host eApps Offers Control Panel ISPmanager for Free Web Hosting News 2011-12-07 21:48:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?