How to check Cpu Usage in Linux

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
RageQuit24
A semi-regular
A semi-regular
Posts: 25
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Mar 30, 2010 6:09 am

How to check Cpu Usage in Linux

Post by RageQuit24 »

Hi Everyone,

I'm running two cs 1.6 servers on my Gentoo Linux VDS. One is a 32 man dust2 server the other is a 16 man private server with just the dust2 server running my fps is between 830-960 with both servers running the fps is 820-890. Is there a way to check the VDS cpu load? Even with both running my server fps is pretty stable.
Image
Image
Image
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: How to check Cpu Usage in Linux

Post by Edge100x »

The easiest way to check CPU usage is with the "top" command. With "top" running, you will see a list of how much each process is running, as well as an overall number for the whole machine (that you can split into its component CPUs by hitting the "1" key).

Are you running the servers with chrt, and with a value of "0" for sys_ticrate/fps_max? Those FPS numbers seem a bit low.
RageQuit24
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Mar 30, 2010 6:09 am

Re: How to check Cpu Usage in Linux

Post by RageQuit24 »

Here is what i got for the local.start:
cd /usr/steam/hldsbase
screen -AmdS mrkdust2 chrt -r 20 ./hlds_run -game cstrike +ip xxx.xxx.xxx.xxx +maxplayers 32 -pingboost 2
screen -AmdS mrkfootball chrt -r 20 ./hlds_run -game cstrike +ip xxx.xxx.xxx.xxx +maxplayers 16 -pingboost 2

current sys_tickrate 10000
was the default in server.cfg file

ill list it here:
// important settings inserted by NFo
sys_ticrate 10000
max_queries_sec_global 150
max_queries_sec 3
sv_stats 0
This is the same for both servers ill try system tic of 0 see if that helps

One more thing would running FTP slow it down should I uninstall the service i have uploaded everything I need. On a windows server 2008 r2 i was getting a good 950 to a 1000 with all the same settings except the sys tic was set a 0 ill be back and let you know if that helps.
Image
Image
Image
RageQuit24
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Mar 30, 2010 6:09 am

Re: How to check Cpu Usage in Linux

Post by RageQuit24 »

even with the sv_ticrate set at 0 still getting the same fps
Image
Image
Image
RageQuit24
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Mar 30, 2010 6:09 am

Re: How to check Cpu Usage in Linux

Post by RageQuit24 »

cpu usage is at 15% 12.2% of memory

so it isn't under a huge load no idea whats causing the fps drop
Image
Image
Image
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: How to check Cpu Usage in Linux

Post by Edge100x »

You're measuring the FPS remotely through rcon, correct? Through the server console, you'll see an inaccurate value.

Which Linux distribution are you running?
RageQuit24
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Mar 30, 2010 6:09 am

Re: How to check Cpu Usage in Linux

Post by RageQuit24 »

Yes i'm checking the fps through rcon after i have closed vnc.
I am using Gentoo Linux.
Image
Image
Image
RageQuit24
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Mar 30, 2010 6:09 am

Re: How to check Cpu Usage in Linux

Post by RageQuit24 »

] rcon stats
CPU In Out Uptime Users FPS Players
0.00 2.35 1.50 507 7 703.73 1

] rcon stats
CPU In Out Uptime Users FPS Players
0.00 2.37 1.56 507 7 888.10 1

] rcon stats
CPU In Out Uptime Users FPS Players
0.00 2.36 1.51 507 7 888.10 1

] rcon stats
CPU In Out Uptime Users FPS Players
0.00 2.35 1.50 507 7 841.75 1

] rcon stats
CPU In Out Uptime Users FPS Players
0.00 2.32 1.50 507 7 892.86 1

] rcon stats
CPU In Out Uptime Users FPS Players
0.00 2.33 1.50 507 7 796.81 1
Image
Image
Image
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: How to check Cpu Usage in Linux

Post by Edge100x »

Could you check "sys_ticrate" through rcon to make sure it's sticking?

Are you using the kernel that we provide?
RageQuit24
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Mar 30, 2010 6:09 am

Re: How to check Cpu Usage in Linux

Post by RageQuit24 »

I'm using the one that was provided by NFO.
For some reason my fps on the server went from the averages i posted to 100fps it must have happened overnight. I also checked the sys_ticrate it was set a 0 maybe its the fps_max.
Image
Image
Image
RageQuit24
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Mar 30, 2010 6:09 am

Re: How to check Cpu Usage in Linux

Post by RageQuit24 »

never mind i was typing in stats not rcon stats lol but still the same issue though fps_max is set to 0 sys_ticrate is set to 0
Image
Image
Image
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: How to check Cpu Usage in Linux

Post by Edge100x »

It sounds like this is something I'll have to take a closer look at for you. Please contact us through "Help!" and I'll log in to check it out.
Post Reply