hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : slow server (gameserver)
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

slow server (gameserver)

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-22-2006, 05:18 PM
ocean eyes ocean eyes is offline
Newbie
 
Join Date: Apr 2004
Posts: 13
Unhappy

slow server (gameserver)


I have a gameserver running now: 3.0 Ghz - 1Gb RAM - 80 Gb SATA disk.

At the beginning it was acting fast. At this moment i'm running about 4 soldier of fortune 2 servers on it (privates of our clan).

For some reason it start acting very slow since 2 days ago.

I checked everything Hard disk space - Connection speed


Everything seems to be fine, till i change a map on one of those servers. Server cpu raise till 100% for about 30 seconds. Normally that should be finished on 6 seconds like before.

RAM usage is normal.


Is there a way to check if there is a problem? Cpu problem? Ram problem? Disk failures?


I'm running debian as os.

Reply With Quote


Sponsored Links
  #2  
Old 01-22-2006, 05:43 PM
GFuse|Kevin GFuse|Kevin is offline
Web Hosting Guru
 
Join Date: Mar 2004
Posts: 295
Post output of..


hdparm -tT /dev/sda
cat /proc/loadavg
free -m
cat /proc/meminfo
top | head -5

Reply With Quote
  #3  
Old 01-22-2006, 06:05 PM
ocean eyes ocean eyes is offline
Newbie
 
Join Date: Apr 2004
Posts: 13
thanks for your reply

hdparm -tT /dev/sda
Code:
hdparm: command not found
cat /proc/loadavg
Code:
0.18 0.20 0.21 1/70 14301
free -m
Code:
             total       used       free     shared    buffers     cached
Mem:          1002        972         29          0        139        496
-/+ buffers/cache:        336        665
Swap:          964          0        964
cat /proc/meminfo
Code:
MemTotal:      1026056 kB
MemFree:         29724 kB
Buffers:        142456 kB
Cached:         508916 kB
SwapCached:          0 kB
Active:         400560 kB
Inactive:       511308 kB
HighTotal:      122048 kB
HighFree:          120 kB
LowTotal:       904008 kB
LowFree:         29604 kB
SwapTotal:      987896 kB
SwapFree:       987896 kB
Dirty:              52 kB
Writeback:           0 kB
Mapped:         272036 kB
Slab:            77556 kB
CommitLimit:   1500924 kB
Committed_AS:   342396 kB
PageTables:        820 kB
VmallocTotal:   114680 kB
VmallocUsed:      1124 kB
VmallocChunk:   113164 kB
top | head -5
Code:
top - 23:28:10 up 10:09,  2 users,  load average: 0.16, 0.19, 0.20
Tasks:  71 total,   2 running,  69 sleeping,   0 stopped,   0 zombie
Cpu(s): 12.1% us,  0.3% sy,  0.0% ni, 87.0% id,  0.3% wa,  0.0% hi,  0.3% si
Mem:   1026056k total,   996340k used,    29716k free,   142460k buffers
Swap:   987896k total,        0k used,   987896k free,   508980k cached

Reply With Quote
Sponsored Links
  #4  
Old 01-22-2006, 09:31 PM
Scott.Mc Scott.Mc is offline
Engineer
 
Join Date: Jan 2005
Location: Scotland, UK
Posts: 2,380
You need some more ram if you look at your free -m output.

Soldier of fortune is quite lightweight however it does require some ram too run it and 512 simply isn't going to run 4 servers.

I have never hosted any servers other than my own personal ones but I did find that on sof2 if you are doing anything on the server at the time, such as say updating anything you will `lag` out the entire sof2 servers. This happens on all forms of linux I tested, however did not happen on freeBSD.

__________________
Server Management - AdminGeekZ.com
Infrastructure Management, Web Application Performance, mySQL DBA. Keep your servers online.
United Kingdom: *0800 8620073* // United States: *585 563 1729* // Australia: *02 9037 2448* // International: *+44.1412800134*
Scott Mcintyre

Reply With Quote
  #5  
Old 01-22-2006, 11:02 PM
GFuse|Kevin GFuse|Kevin is offline
Web Hosting Guru
 
Join Date: Mar 2004
Posts: 295
Looks fine to me.
Try to apt-get install hdparm, and re run the hdparm command.
This sould let you know how fast your hd is performing.
You havent touched swap yet so you are good on ram.
Also try ifconfig | grep errors
I doubt this is the issue, but collisions cause packet loss.
So check for that as well.
Otherwise, it could be very large log files being parsed on the game server.
I know with statsme on HLDS/CS, if you have a large server..
When you change maps it will take a long time to parse the entire log file for stats, before people can join the game.

Reply With Quote
  #6  
Old 01-23-2006, 04:19 AM
mahadri mahadri is offline
Newbie
 
Join Date: Jan 2006
Location: Chicago, IL
Posts: 28
Quote:
Originally Posted by Scott.Mc
You need some more ram if you look at your free -m output.

Soldier of fortune is quite lightweight however it does require some ram too run it and 512 simply isn't going to run 4 servers.
ocean eyes has 1 GB of RAM and is only using 337 MB. The amount of RAM is more than adequate.

Reply With Quote
  #7  
Old 01-23-2006, 06:57 AM
ocean eyes ocean eyes is offline
Newbie
 
Join Date: Apr 2004
Posts: 13
apt-get install hdparm
Code:
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  webmin-apache: Depends: webmin (>= 1.140) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
i tried apt-get -f install but that doesn't solve this problem. it seems i can't remove that part.

ifconfig | grep errors
Code:
          RX packets:6620427 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4120833 errors:0 dropped:0 overruns:0 carrier:0
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

I checked for large logs which i didn't found.

The server is not overloaded or something, it worked fine a few days ago. We didn't installed anything

Reply With Quote
  #8  
Old 01-23-2006, 07:17 AM
Scott.Mc Scott.Mc is offline
Engineer
 
Join Date: Jan 2005
Location: Scotland, UK
Posts: 2,380
Quote:
Originally Posted by mahadri
ocean eyes has 1 GB of RAM and is only using 337 MB. The amount of RAM is more than adequate.
That's because I read the output wrong, you are correct however now that I have looked at it again.

__________________
Server Management - AdminGeekZ.com
Infrastructure Management, Web Application Performance, mySQL DBA. Keep your servers online.
United Kingdom: *0800 8620073* // United States: *585 563 1729* // Australia: *02 9037 2448* // International: *+44.1412800134*
Scott Mcintyre

Reply With Quote
  #9  
Old 01-23-2006, 08:18 AM
ocean eyes ocean eyes is offline
Newbie
 
Join Date: Apr 2004
Posts: 13
Quote:
Originally Posted by Scott.Mc
That's because I read the output wrong, you are correct however now that I have looked at it again.
How can you see i'm using only 337 Mb?

Reply With Quote
  #10  
Old 01-23-2006, 10:53 AM
mahadri mahadri is offline
Newbie
 
Join Date: Jan 2006
Location: Chicago, IL
Posts: 28
Quote:
Originally Posted by ocean eyes
How can you see i'm using only 337 Mb?
used - buffers - cache = resident memory used by processes
972 - 139 - 496 = 337 MB

Reply With Quote
  #11  
Old 01-23-2006, 01:50 PM
GFuse|Kevin GFuse|Kevin is offline
Web Hosting Guru
 
Join Date: Mar 2004
Posts: 295
wget http://www.linex.org/dcc/pool/main/h...6.1-2_i386.deb
dpkg --ignore-depends=webmin --install hdparm_6.1-2_i386.deb

This may report an error of webmin but not a warning, allowing it to install.

Reply With Quote
  #12  
Old 01-23-2006, 03:22 PM
ocean eyes ocean eyes is offline
Newbie
 
Join Date: Apr 2004
Posts: 13
Quote:
Originally Posted by TDK-Kevin
wget http://www.linex.org/dcc/pool/main/h...6.1-2_i386.deb
dpkg --ignore-depends=webmin --install hdparm_6.1-2_i386.deb

This may report an error of webmin but not a warning, allowing it to install.

Thanks for your reply


cat /etc/fstab
Code:
/dev/md0   /boot ext3 defaults 0 1
/dev/md1   none  swap swap
/dev/md2   /     ext3 defaults,errors=remount-ro 0 1
/dev/md3   /data ext3 defaults,errors=remount-ro 0 1
proc       /proc proc
/data/var /var bind bind
/data/home /home bind bind

hdparm -i /dev/md0
Code:
/dev/md0:
HDIO_GET_IDENTITY failed: Invalid argument
hdparm /dev/md3
Code:
/dev/md3:
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 60048/2/4, sectors = 105337984, start = 0
Is this the info you need?

Reply With Quote
  #13  
Old 01-23-2006, 04:07 PM
ocean eyes ocean eyes is offline
Newbie
 
Join Date: Apr 2004
Posts: 13
hdparm -tT /dev/md0

Code:
/dev/md0:
 Timing cached reads:   3668 MB in  2.00 seconds = 1833.89 MB/sec
 Timing buffered disk reads:   70 MB in  1.24 seconds =  56.45 MB/sec

Doesn't seems to be a problem...

Reply With Quote
  #14  
Old 01-23-2006, 04:26 PM
GFuse|Kevin GFuse|Kevin is offline
Web Hosting Guru
 
Join Date: Mar 2004
Posts: 295
hdparm -d1 /dev/md
Sould set DMA on if it is off.
Thou the hd speeds seem about average for that type of disk.
It seems like it is game specific.
See if the game supports a debug mode such as developer 1.
If so it may output exactly what it is loading etc besides simply the map.

Reply With Quote
  #15  
Old 01-23-2006, 04:55 PM
ocean eyes ocean eyes is offline
Newbie
 
Join Date: Apr 2004
Posts: 13
Quote:
Originally Posted by TDK-Kevin
hdparm -d1 /dev/md
Sould set DMA on if it is off.
Thou the hd speeds seem about average for that type of disk.
It seems like it is game specific.
See if the game supports a debug mode such as developer 1.
If so it may output exactly what it is loading etc besides simply the map.

hdparm -d1 /dev/md0
Code:
/dev/md0:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Invalid argument
There is a debug mode yes. But i already tried that. It's still the same as before. And we didn't changed any setting since a few days....

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Certified Hosting Deploys Varnish HTTP Caching for Faster Hosting Services Web Hosting News 2012-02-28 14:10:30
Slow Read DOS Attack Created by Software Engineer Shows HTTP Server Vulnerability Web Hosting News 2012-01-06 20:55:18
Web Host 1&1 Enhances Dedicated Server Line with 32 Core, 64 GB RAM Server Web Hosting News 2011-12-20 15:30:05
DiscountASP.NET Launches Free Beta for Microsoft SQL Server 2012 Hosting Web Hosting News 2011-12-13 22:02:03
Web Hosting Software Firm CloudLinux Releases CloudLinux OS Version 6.1 Web Hosting News 2011-09-13 14:08:49


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?