Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26

Thread: Spearhead 100% core load on Linux

  1. #21
    Client Beta Testers Appelpitje's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    571

    Default

    Used Strace on the running process returns the following message to spam:
    Its most likely that the recv is giving the cpu a hard time?
    Code:
    ..._newselect(1, [0], NULL, NULL, {0, 1})  = 0 (Timeout)recvfrom(9, 0x868c960, 49152, 0, 0xfffc3354, 0xfffc3350) = -1 EAGAIN (Resource temporarily unavailable)
    nanosleep({4294967296000, -616050761403501304}, NULL) = 0
    _newselect(1, [0], NULL, NULL, {0, 1})  = 0 (Timeout)
    recvfrom(9, 0x868c960, 49152, 0, 0xfffc3354, 0xfffc3350) = -1 EAGAIN (Resource temporarily unavailable)
    nanosleep({4294967296000, -616050761403501304}, NULL) = 0
    _newselect(1, [0], NULL, NULL, {0, 1})  = 0 (Timeout)
    recvfrom(9, 0x868c960, 49152, 0, 0xfffc3354, 0xfffc3350) = -1 EAGAIN (Resource temporarily unavailable)
    nanosleep({4294967296000, -616050761403501304}, NULL) = 0
    _newselect(1, [0], NULL, NULL, {0, 1})  = 0 (Timeout)
    recvfrom(9, 0x868c960, 49152, 0, 0xfffc3354, 0xfffc3350) = -1 EAGAIN (Resource temporarily unavailable)
    nanosleep({4294967296000, -616050761403501304}, NULL) = 0
    _newselect(1, [0], NULL, NULL, {0, 1})  = 0 (Timeout)
    recvfrom(9, 0x868c960, 49152, 0, 0xfffc3354, 0xfffc3350) = -1 EAGAIN (Resource temporarily unavailable)
    nanosleep({4294967296000, -616050761403501304}, NULL) = 0
    _newselect(1, [0], NULL, NULL, {0, 1})  = 0 (Timeout)
    recvfrom(9, 0x868c960, 49152, 0, 0xfffc3354, 0xfffc3350) = -1 EAGAIN (Resource temporarily unavailable)
    nanosleep({4294967296000, -616050761403501304}, NULL) = 0
    _newselect(1, [0], NULL, NULL, {0, 1})  = 0 (Timeout)
    recvfrom(9, 0x868c960, 49152, 0, 0xfffc3354, 0xfffc3350) = -1 EAGAIN (Resource temporarily unavailable)
    _newselect(1, [0], NULL, NULL, {0, 1})  = 0 (Timeout)
    recvfrom(9, 0x868c960, 49152, 0, 0xfffc3354, 0xfffc3350) = -1 EAGAIN (Resource temporarily unavailable)
    nanosleep({4294967296000, -616050761403501304}, NULL) = 0
    _newselect(1, [0], NULL, NULL, {0, 1})  = 0 (Timeout)
    recvfrom(9, 0x868c960, 49152, 0, 0xfffc3354, 0xfffc3350) = -1 EAGAIN (Resource temporarily unavailable)
    nanosleep({4294967296000, -616050761403501304}, NULL) = 0
    _newselect(1, [0], NULL, NULL, {0, 1})  = 0 (Timeout)
    recvfrom(9, 0x868c960, 49152, 0, 0xfffc3354, 0xfffc3350) = -1 EAGAIN (Resource temporarily unavailable)
    nanosleep({4294967296000, -616050761403501304}, NULL) = 0
    _newselect(1, [0], NULL, NULL, {0, 1})  = 0 (Timeout)
    recvfrom(9, 0x868c960, 49152, 0, 0xfffc3354, 0xfffc3350) = -1 EAGAIN (Resource temporarily unavailable)
    ...
    And from perf:
    Code:
    Samples: 295K of event 'cpu-clock', Event count (approx.): 73987750000
    Overhead  Command          Shared Object      Symbol
      73.59%  swapper          [kernel.kallsyms]  [k] native_safe_halt
       7.12%  spearhead_lnxde  [kernel.kallsyms]  [k] do_fast_syscall_32
       4.68%  spearhead_lnxde  [vdso]             [.] __vdso_clock_gettime
       0.74%  spearhead_lnxde  [kernel.kallsyms]  [k] __fget_light
       0.69%  spearhead_lnxde  [kernel.kallsyms]  [k] do_select
       0.62%  spearhead_lnxde  [kernel.kallsyms]  [k] compat_sys_socketcall
       0.58%  spearhead_lnxde  [kernel.kallsyms]  [k] copy_user_generic_unrolled
       0.54%  spearhead_lnxde  [kernel.kallsyms]  [k] compat_core_sys_select
    Any linux guru that can take a look at it? *looks at tode*
    Last edited by Appelpitje; December 13th, 2018 at 08:11 AM.

  2. #22

    Default

    Solution is to use at a minimum these arguments:

    Code:
    ./spearhead_lnxded +set dedicated 1 +set sv_maxrate 5000 +set net_noipx 1 +exec server.cfg
    Saw it go from 100% CPU like you've seen to 1%. You must set the dedicated flag to 1 or else it consumes all of your CPU. I have no idea why. Removing the other parameters made no difference. I never had to worry about it because those startup arguments are hard-coded in the XML files I use for launching game servers.

    You made me install four virtual machines (Ubuntu 12.04, Ubuntu 14.04, Ubuntu 16.04, and Ubuntu 18.04) for this solution. So after working REALLY hard on it (you owe me lunch), it ended up being something so silly...

    And in the process, we discovered it's broken in Ubuntu 18.04 until a patch is applied to the glibc binaries. https://sourceware.org/bugzilla/show_bug.cgi?id=23986

    Attached Thumbnails Attached Thumbnails b80.png  
    Browse MOHAA Servers Post GameSpy Era

    VISIT MOHREBORN.COM FOR LATEST INFORMATION



    Medal of Honor: Game Server Browser Fixer - Patches your MOHAA, MOHSH, and MOHBT game binaries to allow you to retrieve a list of game servers within the multi-player menu in-game even after GameSpy ceases operation!

    Medal of Honor: Query Launcher - Find, browse, organize, join, get your ping, and get more information regarding all Medal of Honor (AA, SH, & BT) servers from your PC at any time!
    Medal of Honor: Web Server Master List - Find and browse all Medal of Honor servers online using your browser!
    Add your Medal of Honor Server to the Master List
    YouTube Video for Medal of Honor: Query Launcher and MOHAASERVERS.TK!



    MOHAA Mods and Utilities
    OwN-3m-All's Mods
    Make Me Stock - A program that allows you to easily move-in and move-out non-stock mods and other files at the click of a button. Automates adding / removing mods without having to copy / move files manually.



    Quality Game Servers

    Rent dedicated Dallas Texas, Kansas City, Las Vegas Nevada, Chicago, Pennsylvania, and Sofia Bulgaria MOHAA and other game servers from We Be HostiN starting at $10 a month.


  3. #23
    Client Beta Testers Appelpitje's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    571

    Default

    Aha, set dedicated 1 did the trick, cant believe it was just that!

  4. #24
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    Damn! Nice find Own3mall! I'm sure people will find this very useful. Sometimes it's the smallest things that make the biggest difference. I never knew that either. It's fun when you figure new things out like that though.

  5. #25
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,269

    Default

    Ok guys, i am now having this issue but with AA on Centos 7.

    Setup is currently running 4 servers on the same box, but they are used very little. 1 at a time and it gets like max 10 players once a week
    Cores: 2 ( i know not many )
    Ram: 4gb

    One of the servers hits like 95% cpu load and i have to restart it to lower it back down. Unsure when this occurs, but will investigate more.

    I have double checked the commandline and it is using set dedicated 1.

    I will try and hunt up logs aswell, but if anyone has some ideas?

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  6. #26
    Developer Todesengel's Avatar
    Join Date
    Dec 2013
    Location
    St. Louis, Missouri, USA
    Posts
    276

    Default

    Quote Originally Posted by Purple Elephant1au View Post
    Ok guys, i am now having this issue but with AA on Centos 7.

    Setup is currently running 4 servers on the same box, but they are used very little. 1 at a time and it gets like max 10 players once a week
    Cores: 2 ( i know not many )
    Ram: 4gb

    One of the servers hits like 95% cpu load and i have to restart it to lower it back down. Unsure when this occurs, but will investigate more.

    I have double checked the commandline and it is using set dedicated 1.

    I will try and hunt up logs aswell, but if anyone has some ideas?
    When this is happening, can you post a shot of the 'top' command?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •