Bug #246

Dedicated server consumes 100% CPU

Added by Radegast about 6 years ago. Updated almost 6 years ago.

Status:Fixed% Done:

100%

Priority:ImmediateSpent time:-
Assignee:IR4T4
Category:Server
Target version:2.71rc2
OS: Arch:

Description

This issue first appeared in commit fb0972b704cc48634bf022929c8bc9af6aa1c79a when FEATURE_IPV6 was set to YES by default.

100_percent_cpu.png (178 KB) Radegast, 09.07.2013 00:08

185

Related issues

Related to ET: Legacy Development - Bug #49: Test NET_AdrToString and associated code for IPv6 address... In Progress 13.05.2012
Related to ET: Legacy Development - Bug #215: Adjust FEATURE_IPV6 macros Fixed 23.02.2013

Associated revisions

Revision 85a0aa08
Added by IR4T4 about 6 years ago

generic: FEATURE_IPV6 disabled refs #246

Revision 782c862b
Added by IR4T4 almost 6 years ago

server: fixed dedicated server consumes 100% CPU (!sv_running) refs
#246 ioq3 merge/fix by MAN-AT-ARMS

Revision 2e3d963b
Added by IR4T4 almost 6 years ago

server: IP6 fix for dedicated server consumes 100% CPU refs #246

History

#1 Updated by Radegast about 6 years ago

  • % Done changed from 0 to 10

It happens because client has net_enable set to 3 while server has it set to 1. The former value was used for both client and server until we enabled separate configuration files.

#2 Updated by Radegast about 6 years ago

After some testing I still get 100% CPU usage even when FEATURE_IPV6 is turned off.

#3 Updated by Dragonji about 6 years ago

Used to have similar issue with processor usage but my problem was that I accidentaly removed some of the libs on my Debian. And instead of a server shutdown like on vanilla ET with a msg something is missing, ET:L server was consuming 100% of CPU.

#4 Updated by IR4T4 about 6 years ago

See #49 ...

#5 Updated by IR4T4 almost 6 years ago

  • Target version changed from 2.71rc2 to 2.78

#6 Updated by Radegast almost 6 years ago

Something to look into:

19:14 < Ensiform> morsik: i would assume the problem with 100% cpu is because SE_PACKET is still being used
19:14 < Ensiform> rather than NET_Event with NET_Sleep and the other time changes in com_frame from ioq3 ?

#7 Updated by Radegast almost 6 years ago

  • File 100_percent_cpu.png added
  • Subject changed from Dedicated server consumes 100% CPU when IPv6 networking is enabled to Dedicated server consumes 100% CPU
  • Assignee set to Radegast
  • Priority changed from Normal to Immediate
  • Target version changed from 2.78 to 2.71rc2

Somehow, cpu usage is approaching 100% even when the FEATURE_IPV6 is disabled.

#8 Updated by Dragonji almost 6 years ago

...sry, posted in wrong FF tab...

#9 Updated by IR4T4 almost 6 years ago

  • % Done changed from 10 to 20

!sv_running 100% CPU usage is fixed with https://github.com/etlegacy/etlegacy/commit/782c862b0166ab81205d2c1f4cc88cfb7654465f - I did not test IP6 build.

#10 Updated by IR4T4 almost 6 years ago

  • Status changed from New to Feedback
  • Assignee changed from Radegast to IR4T4
  • % Done changed from 20 to 90

#11 Updated by IR4T4 almost 6 years ago

  • Assignee changed from IR4T4 to Radegast

#12 Updated by Radegast almost 6 years ago

  • Status changed from Feedback to Fixed
  • Assignee changed from Radegast to IR4T4
  • % Done changed from 90 to 100

Thanks, Ensiform MAN-AT-ARMS.

Also available in: Atom PDF