J-Tanzanite / Lilac-SourceTV

Automatically record SourceTV demos upon cheater detections from Little Anti-Cheat
GNU General Public License v3.0
16 stars 2 forks source link

The plugin is loading too much RAM and increases CPU consumption. #1

Closed fxss-repository closed 4 years ago

fxss-repository commented 4 years ago

The plugin loads about 400 MB of something into RAM during server boot. Memory consumption by the end of the day is about 1.3GB. Without your plugin, about 800MB. It was also noticed that the consumption of CPU time increased by 13% to nowhere.

J-Tanzanite commented 4 years ago

That doesn't sound right. There's nothing in the code that takes up that much memory, the binary itself is 7.5KB, which is rather puny.

The only thing that could possible take up more RAM is the timers "timer_decrement_aim...bot/lock". However, I highly doubt that timers take up that much ram usage... If that were the case, then Sourcemod would have big issues as timers are used constantly and everywhere (And this plugin uses them sparingly).

I did notice I forgot to use the flags "TIMER_FLAG_NO_MAPCHANGE", but that wouldn't make THAT big of a difference.

How did you go about measuring RAM? And also CPU consumption? And also, what OS?

J-Tanzanite commented 4 years ago

Well did you find out anything?

J-Tanzanite commented 4 years ago

As I haven't been able to verify the issue you're having, and I haven't heard anything from you in two months - I'm going to close this issue for now.

If you find out anything more, feel free to re-open this issue :)