VDS memory usage high

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
User avatar
NiTro1
New to forums
New to forums
Posts: 5
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Aug 19, 2016 1:03 pm

VDS memory usage high

Post by NiTro1 »

hello...i'm monitoring the VDS hardware usage and i see something strange...only L4D2 server is running and his memory usage is 6.1% but the memroy used is high and here my top logs :

top - 16:40:56 up 2:53, 1 user, load average: 0.31, 0.43, 0.40
Tasks: 93 total, 1 running, 92 sleeping, 0 stopped, 0 zombie
%Cpu(s): 14.9 us, 0.4 sy, 0.0 ni, 84.1 id, 0.3 wa, 0.0 hi, 0.0 si, 0.2 st
KiB Mem: 4053496 total, 3919256 used, 134240 free, 97980 buffers
KiB Swap: 0 total, 0 used, 0 free. 3367848 cached Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9419 nitro 20 0 489804 251080 23668 S 46.3 6.2 27:30.15 srcds_linux
13 root 20 0 0 0 0 S 0.7 0.0 0:22.70 ksoftirqd/1
18 root 20 0 0 0 0 S 0.3 0.0 0:24.53 ksoftirqd/2
9211 root 20 0 0 0 0 S 0.3 0.0 0:09.57 kworker/0:2
9415 nitro 20 0 25672 2604 2072 S 0.3 0.1 0:00.15 screen
1 root 20 0 28592 4616 3084 S 0.0 0.1 0:00.91 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:21.12 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:+
7 root 20 0 0 0 0 S 0.0 0.0 0:20.33 rcu_sched
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
9 root rt 0 0 0 0 S 0.0 0.0 0:00.39 migration/0
10 root rt 0 0 0 0 S 0.0 0.0 0:00.10 watchdog/0
11 root rt 0 0 0 0 S 0.0 0.0 0:00.11 watchdog/1
12 root rt 0 0 0 0 S 0.0 0.0 0:00.05 migration/1
15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:+
16 root rt 0 0 0 0 S 0.0 0.0 0:00.10 watchdog/2
User avatar
Edge100x
Founder
Founder
Posts: 13111
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: VDS memory usage high

Post by Edge100x »

KiB Mem: 4053496 total, 3919256 used, 134240 free, 97980 buffers
KiB Swap: 0 total, 0 used, 0 free. 3367848 cached Mem
Unless you do a ton of writing to disk, almost all of that "cached" amount should be immediately usable, so you have plenty available right now.
User avatar
NiTro1
New to forums
New to forums
Posts: 5
Joined: Fri Aug 19, 2016 1:03 pm

Re: VDS memory usage high

Post by NiTro1 »

hi john...i use htop and i see the srcds uses only 4.5% of ram and 2.7GB used from total 6GB...and almost all ram is used for cache or buffer here free info :

total used free shared buffers cached
Mem: 6121976 2769080 3352896 8564 97768 2325864
-/+ buffers/cache: 345448 5776528
Swap: 0 0 0

so the srcds is fine no memory leak...but debian uses much ram for cache..now almost 2 days the machine is working and for now didn't pass that value yet 2.7GB
User avatar
crashmultiz
New to forums
New to forums
Posts: 12
Joined: Tue Aug 16, 2016 9:50 pm
Location: United States, California

Re: VDS memory usage high

Post by crashmultiz »

linux systems always try to use as much ram as possible for various functions like caching or even just reads from the disk. the memory can be relinquished to the processes when it request's it, so theres nothing to worry about. :D
User avatar
NiTro1
New to forums
New to forums
Posts: 5
Joined: Fri Aug 19, 2016 1:03 pm

Re: VDS memory usage high

Post by NiTro1 »

thanks for help...i did upgrade to more ram capacity and i guess its fine now...the problem i was monitoring and i see the CPU usage reach 90% with only one L4D2 running and Debian 8....4 cores cpu but heavy modded server for 25 slots...when server is full,the cpu usage is between 75 and 90% and of course it leads to lag and crashes...and no other options to upgrade this,if i take 6 cores game will only use 2 or 3 cores max...and i'm sure my software is fine because i run the same servers with same config in other host and its ok.
Post Reply