Faster Internet Browsing in Windows

Browser Speedometer GraphicsOn the Windows platform there is a memory wall that many people are experiencing. Namely, that Windows does not utilize all of your physical memory once you have 4GB or more of RAM, unless you are using Windows XP 64-bit or Vista 64. Instead of letting that extra memory go to waste, I thought why not utilize it in some other way. A long time ago we had the opposite problem with computers, where processors were slow and we tried to speed things up in any way possible. Today, we have a lot of processing power and abundant memory and now it is the software that needs to catch up to the hardware. Given this, I thought why not use a some of that extra memory and load it as a RAM disk. Then if you think about it, the most often used application in today’s computing is the web browser, which uses your hard drive to cache content. This sounds like a perfect opportunity to use a RAM disk and speed up your browser’s disk caching. IE and Firefox both make it easy to modify your disk cache directory too, so the biggest problem seems to be trying to setup the RAM disk in Windows. There are multiple commercial solutions, but only one free solution that I could find that works well.

First thing to do is setup the RAM disk. If you do not want to purchase a commercial RAM disk driver, you can implement this free RAM disk driver for Windows Vista, XP, 2000 and 2003 Server. You will want to have a RAM disk that is slightly larger than both IE and Firefox disk cache sizes put together.

Firefox:

  1. Type about:config in Firefox’s address bar and enter
  2. Right-click and choose New – Integer
  3. Input the following in the dialog box: browser.cache.memory.capacity
  4. Input a value in the next dialog box, such as 24000, which means 24MB
  5. Then in the Filter: bar enter browser.cache.disk.parent_directory
  6. If this setting does not appear, then you will have to create a New – String with the above name
  7. The value should be a drive path to your RAM disk, such as M:\Firefox
  8. Once you have both settings, close out of Firefox and start it back up again.

IE:

  1. In Internet Explorer, click Tools – Internet Options
  2. Locate Temporary Internet Files and click the Settings… button
  3. Change the Amount of disk space to use: to the appropriate size you want
  4. Click the Move Folder… button to select a folder on your RAM Disk. If you used the free RAM Disk, your RAM disk should have a TEMP folder at the root, just choose this folder.
  5. Click OK and close out of IE

Note:

Depending on your computer, your experience may vary. On my Windows laptop and desktop, the speed with which Firefox 3.5 launches is vastly improved. I do not use IE much, so it is hard for me to evaluate the differences there.

Apache 2.2 on Windows Session Cache Error

Apache IconThere appears to be a bug with Apache 2.2.13 which I ran into on Windows Server. See the following bug entry: Bug 23403. Opening the error.log for Apache showed the following warning:

warn Init: Session Cache is not configured (hint: SSLSessionCache)

Adding the following lines to the httpd.conf fixed the problem:

SSLSessionCache        "shmcb:c:/Apache/logs/ssl_scache(512000)"
SSLSessionCacheTimeout  300

Note: your Apache installation directory is probably different, so you will want to modify the above file path.

iTunes Install on Windows 2003

iTunes LogoFor some reason, Apple has stopped supporting iTunes on Windows 2003 and changed their MSI installer to fail. However if you still prefer to run iTunes on your Windows 2003 Server, you can still modify the iTunes installer by using installer tools such as Microsoft Orca (see Microsoft’s Tutorial on how to modify MSI files) or InstEd. Using InstEd, I was able to install iTunes 9 on my Windows 2003 machine.

  1. First download the iTunes installer from http://www.apple.com/itunes/download/.
  2. Next use WinZip or WinRar to extract the contents of iTunesSetup.exe to a folder.
  3. Now comes the difficult part, you will need to check each of the .MSI files with InstEd or Orca. Open each file one at a time and look for the LaunchCondition settings. You will need to remove this parameter and its value: ((VersionNT=501 And ServicePackLevel>=2) OR VersionNT>501). Once you do that just Save and Exit.
  4. With the modified MSI files, now start installing them one at at time. Leave the iTunes.msi for last though. The SetupAdmin.exe can be ignored. You do not need to run that one.

If this was a perfect world, you would now be able to launch iTunes 9 on your machine, but since it is far from perfect, you might be staring at this error message:

The iPod Service service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion.

To complete the install, leave the error up on the screen and go launch Services.msc, find the iPod Service and open its properties. You will need to add an account with admin rights and then save the changes. Now click Retry on the error and see if it works.

Additional Resources:

Updates:

The easy fix that works, is to right click on the iTunes installer and choose Properties. Then go to the Compatibility tab and check “Run this program in compatibility mode for” and choose Windows XP from the pulldown list.