Emergency Maintenence Window - Tue Jun 20 20:30:00 UTC 2006

http://www.metalforge.net - Branch/1.x Server

Moderators: Board moderators, Metalforge staff

Mith
Senior member
Posts: 348
Joined: Mon Oct 25, 2004 5:53 pm
Location: somewhere in nowhere

Post by Mith »

Leaf wrote:Crossfire ends up using 99.9% of CPU while trying to do things like load a randomly generated map or some other task according to the server logs.

If I catch it in time, I'm able to get a core dump which thus far has resulted in an updated or patch.

If I don't catch it, then a system reboot is necessary as the server is completely unresponsive.
Assuming the server runs some unix taste, it should be possible to run crossfire as a restricted user. And using quota it is possible as well to restrict users to 90% (arbitrary number < 100) cpu load max. In that case, the server should remain quite responsive.

Another option might be to set up an hourly(?) cron job that checks the cpu usage by crossfire. If that exeeds a certain number, kill it - or preferably do something less rude, e.g. notify the server it will be killed&core dumped in a few minutes ;-)

Anyway, I think this will be a lot of work for a little gain. :(
Bibendi ergo sum
or rather: sum ergo bibendi
Post Reply