Tuesday, November 20, 2012

Changing the swap file location on my moodle server

I am running Windows 2008 server on my moodle server.  The drive space on the c drive is down to about 12% avail.  I spent a few minutes looking at ways to save drive space.

First I ran the drive defragmentor, for the first time on the drive and it recovered a little space. 
Right Click the drive, choose Properties then Tools.

Next, I googled Windows server 2008 drive space and found this page http://alloraconsulting.com/it-solutions/76-windows-server-2008-low-space - which suggested moving the swap file from the c drive to a different one, if that was an option for you.

 Right click on Computer, Choose Advanced System Setting, Advanced Tab, Performance, Settings, Advanced Tab, Change... button  in Virtual Memory area.

I have a f drive also on my server where I store my moodle db backups and the moodledata folders for each of the two instances running on the server.  This drive is a 80 Gb drive, my c drive, which contains the moodle - php, apache and mysql code is a 40 Gb drive.

I followed the instructions and moved my 2Gb swap file from the c drive to the f drive.  After rebooting the server, my drive space on c increased from approx. 5.4 GB to 7.4.

I will monitor for performance, but do not expect there to be a change.  I have 2 GB of RAM on the server, so I do not expect a lot of swapping is going on to begin with.

No comments:

Post a Comment