I know this is an old improvement now, but as I’m using it once more, I would like to remind people of this, and how to do this.
If you are using Apache, you can have a look a the Sun’s PDF doc.
When compiling apache, first, use the new optimized GCC 4 with CoolThreads support. You will find this by searching “coolthreads” or “cooltools” on Sun’s website.
Just get the 2 packages and install them. You can put then wherever you want, but the easiest way is to keep the 2 packages in the same directory.
Set your path so the bin directory is the first one in your path, so you use the new GCC :
PATH=/opt/tools/gcc-coolthreads/gcc/bin:/opt/csw/bin:/opt/csw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/xpg4/bin:/usr/ccs/bin:/usr/ucb:/usr/openwin/bin:/usr/sfw/bin:/usr/sfw/sbin:/usr/local/bin:/usr/local/sbin
In this example, my GCC is installedin “/opt/tools/gcc-coolthreads”
Untar your Apache (2.2.4 for now) and cd into it. Configure and make it with this command line. This should build the MPM prefork module, which is the most efficient on T2000. If not sure, force it to compile.
CFLAGS='-DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4' ./configure --enable-ssl --enable-rule=SSL_EXPERIMENTAL --with-ssl=/usr/sfw --prefix=/opt/monitor/apache-2.2.4 --enable-mods-shared=all --enable-so make make install
This will install Apache in “/opt/monitor/apache-2.2.4”
You then have to change the config files. Add the Include for httpd-ssl.conf at the end of httpd.conf file.
In the extra/httpd-ssl.conf file, search for “SSLCryptoDevice” lines and replace them with :
SSLCryptoDevice pkcs11 SSLRandomSeed startup file:/dev/urandom 512 SSLRandomSeed connect file:/dev/urandom 512
And there you go. Your apache is now 100 times faster when doing SSL. Just don’t forget to tune others parameters of the config files, like in “extra/httpd-mpm.conf” where you can tune the prefork module to :
<IfModule mpm_prefork_module> ServerLimit 8192 MaxClients 2048 ListenBacklog 8192 ServerLimit 2048 MaxClients 2048 MinSpareServers 20 MaxSpareServers 20 MaxRequestsPerChild 0 StartServers 20 </IfModule>