Monday, 30 April 2012

Apache Prefork vs Worker

Lower memory usage by 22% and higher performance with apache2-mpm-worker

Apache Multi-Processing Modules (MPM) prefork is the original like apache 1.3 implementation which is used where multi-threading could cause issues i.e. PHP hosting. The worker MPM is a multi-threaded and claims to provide higher performance and lower memory footprint than prefork.
When the time came to update one of our hosting servers, we decided to included the move to the worker mpm implementation, I tested the performance mpm implementation and found that it achieved a savings of 17.4MiB - 20.8 MiB and 8 less child processes:

Apache MPM Prefork

After clean apache reboot:
    $ ./ps_mem.py
    Private  +   Shared  =  RAM used       Program
    64.7 MiB +  11.8 MiB =  76.5 MiB       apache2 (23)
After each of our sites was accessed once:
    $  ./ps_mem.py
    Private  +   Shared  =  RAM used       Program
    245.8 MiB +  12.8 MiB = 258.6 MiB       apache2 (31)

Apache MPM Worker

Results with apache2-mpm-worker module after a clean apache reboot:
    $  ./ps_mem.py
    Private  +   Shared  =  RAM used       Program
    53.1 MiB +   6.0 MiB =  59.1 MiB       apache2 (20)
After each site was hit once with an web browser:
    $  ./ps_mem.py
    Private  +   Shared  =  RAM used       Program
    225.7 MiB +  12.1 MiB = 237.8 MiB       apache2 (21)
From this semi scientific test it is clearly worthwhile using apache2-mpm-worker on a server that is purely serving and hosting django projects.

Friday, 27 April 2012

Free 25 GB Cloud Storage

SkyDrive offering free upgrade to existing users

Recently Microsoft has updated their SkyDrive cloud storage solution, however with this update they also reduced storage to 7 GB. Existing SkyDrive can upgrade 'back' to their 25 GB free storage by visiting their account manage page. Please note you must have used the service before this upgrade to qualify, see this page for more details.

It is worth pointing out that even the reduced 7 GB beats Google Drive and Apple iCloud by 2 GB and DropBox by 5 GB. More information can be found on the official SkyDrive compare page.

Further more one can upgrade up to 100 GB of storage $50.00/year making it a feasible cheaper alternative to cloud backup/archive offered by S3 Amazon Storage. This task can be accomplished by setting up FUSE (Filesystem in Userspace) which is a post for another day.

Wednesday, 25 April 2012

Welcome

I would like to welcome everyone who finds there way to this blog.  Our team at KL Insight will be posting information we feel is relevant to the ever-changing world of Web Design and Search Engine Optimization.

We pride ourselves on staying current and would like to pass on our finds to our followers.

Regards,

Mark Pizzinato
President, KL Insight