Page 1 of 1

Enormous resource usage 87.0

Posted: 16 Mar 2012, 23:22
by wolas
I m running linux 64bit debian testing. Sometimes there is 2 spring processes is that normal(im sure that there was 0 before game)?

Code: Select all

30188 ?        Sl    42:48 /usr/local/bin/spring /home/wolas/.spring/start_script.txt
31593 ?        S      0:00  \_ /usr/local/bin/spring /home/wolas/.spring/start_script.txt
Eeach process eats arround 50% of ram ~2GB mostly I notice this at the end of game because it starts to lag badly almost freezes and only possible way to stop that is to switch to some terminal and kill them. With previous versions there wasnt anything like that

[f=0057106] Djinn is under attack
[f=0057183] [[NC]Gretchen] oooo ... how did you make that fake radar signal, zmaster?
[f=0057258] Djinn is under attack
[f=0057435] <zmaster587> com has radar
[f=0057485] Player S27 left the game: normal quit
[f=0058230] Error: LuaRules::RunCallIn: error = 2, UnitDestroyed, [string "LuaRules/Gadgets/hacky_87_submerged_nanofra..."]:84: DestroyUnit() recursion is not permitted
stack traceback:
[C]: in function 'DestroyUnit'
[string "LuaRules/Gadgets/hacky_87_submerged_nanofra..."]:84: in function 'UnitDestroyed'
[string "LuaRules/gadgets.lua"]:1297: in function <[string "LuaRules/gadgets.lua"]:1294>
(tail call): ?
[C]: in function 'spDestroyUnit'
[string "LuaRules/Gadgets/unit_terraform.lua"]:2774: in function 'GameFrame'
[string "LuaRules/gadgets.lua"]:947: in function <[string "LuaRules/gadgets.lua"]:945>
(tail call): ?
[f=0058230] Error: LuaRules::RunCallIn: error = 2, UnitDestroyed, [string "LuaRules/Gadgets/hacky_87_submerged_nanofra..."]:84: DestroyUnit() recursion is not permitted
stack traceback:
[C]: in function 'DestroyUnit'
[string "LuaRules/Gadgets/hacky_87_submerged_nanofra..."]:84: in function 'UnitDestroyed'
[string "LuaRules/gadgets.lua"]:1297: in function <[string "LuaRules/gadgets.lua"]:1294>
(tail call): ?
[C]: in function 'spDestroyUnit'
[string "LuaRules/Gadgets/unit_terraform.lua"]:2774: in function 'GameFrame'
[string "LuaRules/gadgets.lua"]:947: in function <[string "LuaRules/gadgets.lua"]:945>
(tail call): ?
[f=0058342] Warning: [Watchdog] Hang detection triggered for Spring 87.0.
[f=0058342] Warning: (in thread: main)
[f=0058342] Error: Stacktrace (main):
[f=0058342] Error: (Note: This stacktrace is not 100% accurate! It just gives an impression.)

That gadget error appeared at same time not even sure second before lag or second after lag.

Even if this is mod problem is it normal that there runs two springs? spring is not multithreaded.

Re: Enormous resource usage 87.0

Posted: 16 Mar 2012, 23:50
by koshi
Spring has been running multiple threads for a long while. What is commonly known as "mt" is a misnomer. It adds threaded rendering, not multi threading itself.

Re: Enormous resource usage 87.0

Posted: 16 Mar 2012, 23:59
by wolas
I posted ps -eF its not threads it is two springs. And seems like one spring launches other spring? Normally spring appears as one process only in hang case there are two springs.

Re: Enormous resource usage 87.0

Posted: 17 Mar 2012, 00:29
by SirMaverick
Spring forks a child process that shows the message box (fork&exec pair).