• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux High CPU Usage

Skazi

www.kingdom-age.net
Joined
Oct 12, 2007
Messages
92
Reaction score
0
I'm using TFS 0.3 and it's consuming a lot of CPU (60-75%) during a few minutes after it's already ON.


PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1555 otserv 20 0 917m 864m 6200 S 75 56.8 2:04.33 theforgottenser

It shows no error when opening, no advise and also there's no heavy script.

Doest anyone know why and if there's a way to fix it ?

Thank you
 
Check that you have no decaying items in your otbm map - they cost somewhat much CPU.
Many items in general cost much CPU.
And having many NPCs too.
Oh and globalevents which trigger too often.

I'm currently adressing these issues with my own server: https://github.com/fluidsonic/tyano-core/tree/cutting-edge
But it's still considered experimental ;)
 
I've already checked it all, there's nothing above normal. =x

Really awkward.

Check that you have no decaying items in your otbm map - they cost somewhat much CPU.
Many items in general cost much CPU.
And having many NPCs too.
Oh and globalevents which trigger too often.

I'm currently adressing these issues with my own server: https://github.com/fluidsonic/tyano-core/tree/cutting-edge
But it's still considered experimental ;)
 
Use a tool like perf. And try to give output that you think is relevant.

To install perf on Debian/Ubuntu (most of dpkg/apt based systems):
Code:
sudo apt-get install linux-tools-common

To install on ArchLinux (or Arch* i.e pacman based systems):
Code:
pacman -S perf
 
Thank you fallen.

This would help ?
root@ubuntu:/home/otserv# perf report
# Samples: 30
#
# Overhead Command Shared Object Symbol
# ........ ............... ..................................... ......
#
23.33% theforgottenser [kernel] [k] perf_eve
20.00% theforgottenser [kernel] [k] inherit_
13.33% theforgottenser [kernel] [k] native_f
6.67% theforgottenser [kernel] [k] native_f
6.67% theforgottenser [kernel] [k] prep_new
6.67% theforgottenser /var/ottest/otserv/theforgottenserver [.] boost::a
3.33% theforgottenser [kernel] [k] native_f
3.33% theforgottenser [kernel] [k] put_ctx
3.33% theforgottenser [kernel] [k] perf_eve
3.33% theforgottenser [kernel] [k] handle_m
3.33% theforgottenser [kernel] [k] _spin_un
3.33% theforgottenser [kernel] [k] do_page_
3.33% theforgottenser /var/ottest/otserv/theforgottenserver [.] std::_Rb
#
# (For a higher level overview, try: perf report --sort comm,dso)
#

(END)

Use a tool like perf. And try to give output that you think is relevant.

To install perf on Debian/Ubuntu (most of dpkg/apt based systems):
Code:
sudo apt-get install linux-tools-common

To install on ArchLinux (or Arch* i.e pacman based systems):
Code:
pacman -S perf
 
No, please do:
Code:
perf record ./theforgottenserver
[... should tell you it wrote data to perf.data ...]
After it has finished, do:
Code:
perf report
switch to main thread and check what's going which is using most CPU then write output. Do this step for each thread it gave you.
NB: You usually need to press 2x enter after it `perf record' opens the curses window.
 
Last edited:
Sent you a PM.

No, please do:
Code:
perf record ./theforgottenserver
[... should tell you it wrote data to perf.data ...]
After it has finished, do:
Code:
perf report
switch to main thread and check what's going which is using most CPU then write output. Do this step for each thread it gave you.
NB: You usually need to press 2x enter after it `perf record' opens the curses window.
 
Back
Top