Internet, UNIX, Video, Leisure…
Having DSS compiles on Solaris 10 [part 5]
This should be the last part
In fact, it is not the call to OS::GetNumProcessors() in Server.tproj/RunServer.cpp which is causing the problem. This call is done only once.
It’s the one in Server.tproj/QTSServerInterface.cpp.
In fact this part of the code is run every second for server statistics, leading to a problem with the slow unix command ‘uname -X’ and parsing of the output.
The best solution would be that the number of CPU is cached somewhere, so the server does not have to get it each time it have to divide the CPU usage !
One solution, as I said earlier, is to change this function to use something better than a unix command.
The other solution is to have the number of CPU cached.
The last solution is to remove the call to this function in Server.tproj/QTSServerInterface.cpp
If you do that you may end with a CPU load over 100%. But your server will not crash at 200 streams
I filled a bug at Apple and I hope it will be taken into account :
5316778
DSS crash on Solaris 10 after 200 streams
12 novembre 2007 - 16:56
Cool. I will experiment with DSS 5.5.5 and maybe create a ready Solaris package for it. This should fix the problem and thanks for opening a bug with Apple.