Author Topic: [fixed] Very high CPU load for clients [4180]  (Read 1249 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
[fixed] Very high CPU load for clients [4180]
« on: 10 March 2013, 11:09:06 »
Since rev.4173 there are no more crashes in th game for clients. But now we often see very high CPU load for clients in multiplayer games..
Usually its reproducable and happens within the first 5 minutes of a game ( 3 player game in our case ).

to get an idea how much it is:
when CPU load on server is something like 60% on clients we see 155% CPU-load.
« Last Edit: 17 March 2013, 00:58:04 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Very high CPU load for clients [4180]
« Reply #1 on: 10 March 2013, 12:06:46 »
When we were testing yesterday, MegaGlest constantly caused about 350 % CPU load (100% = 1 of my 4 cores fully loaded), 180% of which were on a single core, meaning this very thread was way too busy, overloading one of my cores constantly. This makes the game react very slowly, and unpleasent to play, similar but different as network inflicted lag. It also consumes a lot of power. Those values are taken from "htop" output.

My understanding is that PT (titi|son), the other client on this game, made similar experiences, and has a more modern dedicated video card than my atibox has.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Very high CPU load for clients [4180]
« Reply #2 on: 10 March 2013, 16:19:53 »
Try svn REv 4181

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Very high CPU load for clients [4180]
« Reply #3 on: 10 March 2013, 20:24:05 »
we still have a very high cpu load on clients.

Compared to 3.7.1 the CPU load on clients is 3 times more with current svn .
The server has  shows the same load on svn and 3.7.1.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Very high CPU load for clients [4180]
« Reply #4 on: 10 March 2013, 21:08:24 »
I concur, and i still keep running into many of these (whether or not that's related):
Client waiting for packet for frame: 90800, copyCachedLastPendingFrameCount = 90780

r4181 didn't make a noticeable difference for me.

Thanks for trying to work this out.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Very high CPU load for clients [4180]
« Reply #5 on: 11 March 2013, 03:46:58 »
Try rev 4183

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Very high CPU load for clients [4180]
« Reply #6 on: 12 March 2013, 21:52:23 »
We tested today with filux as server me and MuwuM as client. Suddenly MuwuM said he dropped down to 4 fps and it is unplayble and his console is full of messages :
He took a screenshot of what he got :
So its still present

(click to show/hide)
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Very high CPU load for clients [4180]
« Reply #7 on: 12 March 2013, 22:48:39 »
Muwum's CPU load doesn't seem to be extraordinarily high, though. Also I have only a small decrease in FPS when I have the high CPU load as a client.

Having said this, I still have the issue of having very high CPU load as a client (only) on r4184.

Here's a screenshot including an htop screen which shows that CPU load of one of the "megaglest" processes is at 137% (okay, that's less than what it used to be (180%), but it was higher than this before titi paused the game), and another at 93%. This is on my atibox with a Intel Core 2 Quad CPU Q9400 @ 2.66GHz, meaning one of these processes is overconsumnig the resources of one of these 2.66 GHz CPU cores, the other one is almost fully keeping it busy. Keep in mind that when I host a game while also playing, this is much lower. Then the most resource hungry process consumes 48% CPU resources. And htop is not just making these numbers up, since I can hear the CPU fan become quite busy when I'm a client, but much less when I'm hosting and playing.


atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

 

anything