citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.56k stars 2.09k forks source link

svSync hitches in 9461 (linux) #2714

Closed Jonirulah closed 2 months ago

Jonirulah commented 2 months ago

What happened?

We updated the artifacts from 9231 to 9461 and we are running linux (ub24.04). At 9pm when we restarted the server seemed fine, then after 20 minutes the svSync started to swing between 100ms and 200ms with some spikes to 1000ms along constant thread hitches. Net usage and CPU went noticeably higher than usual. We turned off the server and then moved back to 9231.

image image image

Our server usually runs within this svSync range. image

We fixed it downgrading to 9231.

Expected result

to keep in the usual range of svSync

Reproduction steps

Run artifacts 9461 in Linux, then have roughly 200 players inside the server and wait for around 15min.

Importancy

There's a workaround

Area(s)

FXServer, OneSync

Specific version(s)

9461 linux

Additional information

I believe there's some leak that is affecting the performance of the svSync thread. Maybe only linux related, but definitely worth a look

Jonirulah commented 2 months ago

got fixed in newer artifacts