Having DSS compiles on Solaris 10 [part 3]
juil 4th, 2007 by Prune
I didn’t thought I would have to come back on this installation. But here we are with Part 3 !!
If you tried to compile on Solaris and stream for more than 200 users, you experienced a crash. I thought the trick from part 2 was solving this, as my production server was running fine on more than 1000 users (test only
While I was documenting the install process, I was also deploying new servers, with fresh compile and install. And I found that the menly compiled server was crashing at 200+ streams !!!!
DAMN !
Going back to my “working” compile, trying to diff between original source and patched one, I just found that I changed something else.
There is a small (ugly ?) function somewhere which tries to detemine how many CPU the server have. On solaris this function seems to start a “uname -X” for each incoming user !
My patch was to comment out all this and have this function return a static number (I don’t know why I set it to 24 :))
For those of you needing it, here is the patch (in diff -u format) :
# diff -u DarwinStreamingSrvr5.5.5-Source-test/CommonUtilitiesLib/OS.cpp DarwinStreamingSrvr5.5.5-Source/CommonUtilitiesLib/OS.cpp
--- DarwinStreamingSrvr5.5.5-Source-test/CommonUtilitiesLib/OS.cpp Wed May 18 10:01:14 2005
+++ DarwinStreamingSrvr5.5.5-Source/CommonUtilitiesLib/OS.cpp Wed Jul 4 16:21:42 2007
@@ -410,6 +410,8 @@
#if(__solaris__)
{
UInt32 numCPUs = 0;
+/* comment by Prune
+
char linebuff[512] = “”;
StrPtrLen line(linebuff, sizeof(linebuff));
StrPtrLen word;
@@ -440,7 +442,8 @@
numCPUs = 1;
::pclose(p);
-
+ */
+ numCPUs = 24;
return numCPUs;
}
#endif
Set the number of CPU to whatever you wish, 2 or 8 may be a good number. This number can be set in the config file, using the “
I think that’s it, you have everything you need now ![]()

Let start streaming !