Wednesday, April 30, 2008

Fight for disk space


I'm sure all of us encounter the disk space problem in C drive with Windows more often than not. I encountered the same problem recently. Of course I've tried the usual tricks of uninstalling all software I don't need and using windows disk clean etc...But still I was left with around 500 MB of free space from my 12 GB size C drive. Then I set out to find out how to solve this more methodically. Following are the steps I took and I feel some of them will be helpful to anyone out there when they need to gain some breathing space in the C drive in quick time. (I have a hp compaq nx7010 laptop running windows XP SP2) 1. First thing is to find out where exactly all u'r space has gone. Right clicking on each suspecting folder and finding out the size is not a scalable option. So I found 2 very easy to use freeware.
  • TreeSiz - Gives u a chance to scan the folder of u'r choice and provides a break down of how each folder had consumed space.
2. Using these two tools I found that there are 2 files consuming around 5GB of my hard disk space
  • hiberfil.sys
  • pagefile.sys
hiberfil.sys is used by the windows hibernation feature. It uses up roughly around 3GB of disk space and my feeling was that I prefer to have more disk space instead of hibernation which anyway gives me weird problems with my hp laptop. So I disabled hibernation and got the space back from hiberfil.sys. In the same windows you should be able to find some information which gets rid of all fancy XP animation stuff which can provide you with better performing OS. Try those too.

Now to the page file. The pagefile is an integral part of windows and you can't get rid of it. What you can do however is to have a minimum size page file running on your C drive while you have the bulk of the page file running on a different disk (or at least a different partition). You first need to know what you are doing by reading this. Then you can find out how to do it by reading this. After carrying out the above 2 tasks I was able to gain nearly 4 GB of my disk space and the mere fact of having your page file in a non-frequently accessed drive is bound to make your system perform better. Please share any un-common ways to gain disk space in windows and in the process improving the system performance.

Tuesday, April 22, 2008

SQL Express - Usability Improvement















I'm currently in Norway deploying a portal product we have built. This is spring time in Norway and the weather is just starting to be Colombo friendly :). It's amazing how the environment has changed from the autumn, which was when I last visited Norway. The same trees which used to be in various colors in the Automn is now has gone in to complete hibernation. The church in the picture was not to be seen in summer/autumn but now we can clearly see it from the apartment.

Our customer is a debt collection software vendor and the portal is the product he will sell for collection companies. The product is based on DotNetNuke (DNN) and the DNN DB used is SQL Express. With SQL Express we have several limitations when using the product.

1. DB Size limitation - 4 GB. Since the DNN database we are using is not expected to grow in heaps and bounds this is not really an immediate problem. But any client who has an increasing DB is encouraged to migrate to SQL 2005 server.

2. CPU Limit - 1 CPU

3. RAM Limit - 1 GB. Does not use the maximum RAM which is available in the machine.

4. Practical Problems
  • The administrators can NOT open the SQL Express DB from SQL Management studio for maintenance work while the portal is up. Since the SQL Express DB we're using is used as a file the portal gets an access violation when the DB is opened up from the management studio.
The above was the main problem we had during development. But during the deployment I came across an article which describes how u can set up a file based SQL Express Database to overcome the window file access limitation. This is a very good find since one of the problems we found hard to place the product for new customer could have been this limitation.