Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Spearhead 100% core load on Linux

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

    Default Spearhead 100% core load on Linux

    I think i mentioned this in the past, but back in the good old days around ~2006 i hosted a spearhead server on a centos VPS and the load was normal (like 0-20% CPU load max).
    Now when i try to host a SH server on a Linux machine (doesn't matter if its ubuntu, debian or centos, ...) the SH server takes up a full core load?

    Not sure if i did anything wrong with the setup or if some libraries just mess the old binary up so it uses now more CPU.
    Anyone has any idea why this is caused? Or any idea how to debug this?

    Example:
    If you have a linux machine with 4 cores, SH server will take up 1 of the 4 cores at 100%

  2. #2

    Default

    I dunno about linux, but i doubt the problem is the OS

    i have few questions.
    is your server config named server.cfg?
    are you loading the first map via vstr or map?
    is the SH server running custom mods?
    is the log showing any error?

    I remember seeing a a post time ago about 100% cpu usage on quake 3 servers, and the problem was related to the vstr command when loading the first map

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

    Default

    I tried it with default SH server, no mods: 100% load.

  4. #4
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    100% it's with ur server.cfg
    try another one that doesn't follow the pattern of commands.

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

    Default

    Yeah that definitely isn't normal. For a game that is as old as MOHAA< it shouldn't use up that many resources; especially with the advance in hardware these days.
    I'm not as savvy in *nix platforms, but maybe @Todesengel might have some input. He's much more knowledgable with the unix environment and is pretty good with debugging in it.

    The only things I can think of are...
    1. libraries are messed up
    2. drivers are outdated/incorrect
    3. the game is corrupted. Maybe try doing a clean install just backup your mods and then put them back in afterwards. If the issue still continues, then it could be a mod or configuration causing an infinite loop or something that's taking up all your hardware resources.

  6. #6
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    Is it the same VPS?

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

    Default

    I tried different Linux machines, cloud servers, dedicated servers, my own Pc's. All the same.. I also tried different cfg, even a minimal cfg. Still the same... No mods, just a clean install with default game files with just spearhead_lnxded added.

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

    Default

    Hav you tried just limiting the cpu usage of the process and see if it effects the server in any way? It could be less of a fix and more of a workaround but it might help. Limiting the cpu with something like cpulimit.

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




  9. #9

    Default

    Quote Originally Posted by Appelpitje View Post
    Now when i try to host a SH server on a Linux machine (doesn't matter if its ubuntu, debian or centos, ...) the SH server takes up a full core load?

    Not sure if i did anything wrong with the setup or if some libraries just mess the old binary up so it uses now more CPU.
    Anyone has any idea why this is caused? Or any idea how to debug this?

    Example:
    If you have a linux machine with 4 cores, SH server will take up 1 of the 4 cores at 100%
    Some years back I hosted AA server on Linux and it was pretty calm and quiet. I still have linux as my primary OS and I have time to test it for you. So if you can share the link from where I can download the complete package (All server files needed) I can test it right away.

    P.S. My machine is Ununtu 64 bit 16.04.

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

    Default

    @purple: will try that when i have some time

    @anspectrum: here is a link: https://appelpitje.stackstorage.com/s/0YBeVKBpsJGSUD1

Posting Permissions

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