Game Development Community

Starter.fps running as dedicated server on linux uses 100% CPU

by Daniel Ko · in Technical Issues · 04/16/2007 (9:12 pm) · 2 replies

I use this command ./torqueDemod.bin -dedicated -mission starter.fps/data/missions/cpdemo1.mis to run the starter.fps as a dedicated server on Linux.

But it uses up 100% of the CPU constantly. Is this normal? If not, any idea as to how to fix this?

thanks,

#1
05/06/2007 (12:02 am)
I'm pretty sure this is normal on Linux. The process is requesting the priority, and since nothing else is going on, Linux gives it to you. You want this, of course, for a game server. You'll find, however, that your box will be perfectly responsive and run other processes just fine, since the instant you ask for the resources, Linux will give them to you..if the torquedemod.bin process isn't using them.
#2
05/06/2007 (2:35 pm)
>I'm pretty sure this is normal on Linux.
No it's not.

>The process is requesting the priority, and since nothing else is going on, Linux gives it to you.
Nope.. The process isn't sleeping, Linux has no choice but to give it to you.

>You want this, of course, for a game server.
That's true, but only when people are connected. If not, the process should sleep.

>You'll find, however, that your box will be perfectly responsive and run other processes just fine, since the instant you ask for the resources, Linux will give them to you..if the torquedemod.bin process isn't using them.
Nope.. You're talking about a process with a high nice level that should only eat idle time cycles ie: seti@home.

If you don't want this behavior, alter the platform code to make it sleep. If you don't know how, do a search, it's an old topic.