Merging memory pages with same content.

Since Linux Kernel version 2.6.32 there is a mechanism for de-duplication and sharing of memory pages called Kernel Same page Merging. KSM enables dynamic sharing of identical pages found in different memory areas, even if they are not shared by fork. If KSM is enabled on the system,…

Juju-deployer: Turn your Juju environment into a repeatable deployment.

A quick saturday night post. Often the process of preparing a Juju environment is not a one step task, you start by adding services, configuring them, relating and then horinzontally scaling by adding more units. Once you feel comfortable with your deployment, you would like to repeat it even in…

Python: Mental notes about Asyncio

Here are some mentals notes after trying for a couple of hours the new Asyncio module based on the PEP 3156 spec. The Asyncio module is the last confirmation that the multithreading war is over on Python, unless some core developers are already implementing another approach like Transactional Memory / Automatic…

Python: Marshalling functions

If for some obscure reason do you want to call Python code from Javascript and viceversa you can take a look to my still(ever) green experimental project Slurpy. The most tricky part coding the callback mechanism was to implement the function serialization. Here is my function serialization class that…

Python Nose: Speed up the runner.

This brief article is a continuation on the series Starting with Nose and Nose: Extending and customizing. As your test base starts growing, also the time spent running tests grows up. Fortunately nose provides some mechanisms to divide and conquer your run plan and speed up the running time. Test…

Python Nose: Extending it.

Hello There!. This article is the sequel of the Starting with nose post. On this article i will describe how to write a basic nosetests plugin. I used this approach for a RedHat project that i had contributed in the past called Autotest. On this case, they were using non-standard…

Python Nose: making your python tests smell better

A little about Python testing. This article covers some basic aspects for running a Python test suite using nosetests. Is focused on some practical aspects to get a quick working set of tests and review the results. When i started writing Python code the usual way to write and run…