Sunday, January 09, 2005

A living kernel

Recently, Jake Moilanen announced a set of patches to add a genetics algorithm library to the Linux kernel. These patches supply functionality to modify the kernel's behavior experimentally and tune for peak performance. The base patches can be combined with patches that enhance the Anticipatory IO Scheduler and the CPU scheduler (zaphod patch required) with the algorithms.

The last time I tried a scheduler patch, it was with Con Kolivas' patchset. I had mixed this with PaX, and gotten nice performance results. Unfortunately, a little probing with `pspax` showed that PaX was no longer working, due to the invasive changes of the CK patches. This isn't a flaw in Con's work or in PaX, but rather in the fact that neither patch was made to function with the other. This is not an unreasonable situation; every piece of non-mainline code cannot be expected to function properly with every other piece of non-mainline code.

With the Genetics Algorithm in the kernel, though, PaX seems to work. There have been no ill side-effects caused by mixing the two, and Jake's patches even seem to be doing some good. I crossed them with the -test17 PaX patch for 2.6.10, and immediately ran `paxtest` upon rebooting as well as `pspax`. Both programs showed that PaX was performing as expected. My programs appear to start faster, so I assume the GA is working.

This brings up a simple and interesting point. Whenever combining patches, it is important to look for regressions. With security patches, other patches may cause added security layers to cease to function properly, which left unchecked creates a false sense of security and potentially more unchecked security holes. It would even be feasible for two patches to create security holes; one patch could supply a security hole but not any way to trigger it, while another reliant patch could supply a path that triggers the vulnerability.

In the case of PaX and the GA library, everything appears to be working fine. I can't comment on anything that would require a code audit; but everything seems functional. I've been running for almost seven hours with no problems. I'm looking forward to Jake's continued work; there have been many suggested enhancements to the GA and its uses already, including diploid algorithms, hillclimbing, and swap tuning. Jake seems to be very willing to experiment, which is appropriate seeing as his patch does exactly that continuously.

4 Comments:

Blogger chuck1480 said...

Hi John. Nice post here--glad I saw it! Was just blog hopping while looking for information on home based when I landed here. Glad I did too. Although A living kernel certainly is not my final destination, it definitely is worth the look. May see you later--gotta keep looking for home based related sites.

2:54 PM  
Blogger wow power leveling said...

Why was there no follow on bankruptcy then? The bailout of AIG FP went to (wow power leveling) hedge funds that bound credit swaps on Lehman failing or others betting on rating (wow power leveling) declines. AIG has drained over 100 billion from the government. Which had to go to those who bet on failures and downgrades. Many of whom (power leveling)were hedge funds. I-banks that had offsetting swaps needed the money from the AIG bailout or they would have been caught. Its an (wow powerleveling) insiders game and it takes just a little bit too much time for most people to think (wow gold) through where the AIG 100 billion bailout money went to, hedge funds and players, many of whom hire from the top ranks of DOJ, Fed, Treasury, CAOBO
wow goldwow goldwow goldwow gold CAOBO

9:52 PM  
Blogger office said...

The Tax Return Crack-Up<4>
Realizing he might have dug himself in there,Microsoft Office 2010the general emphasized that Office 2010he had spent some time as a junior Office 2007officer working "very closely Microsoft Officewith the Israeli air force" and that heMicrosoft Office 2007had found that "more cosmopolitan,Office 2007 key liberal version of the Israeli population" Office 2007 downloadto be just chock full Office 2007 Professionalof that sort of "goodwill" necessary Windows 7to give a bunch of land back Microsoft outlook 2010to the Palestinians.

4:14 AM  
Blogger escort said...

Awesome blog Adam!! deneme linki I saw you all in Buffalo and the show was incredible, antalya hotels the best I've ever seen and I can't wait to see the show again in Rochester! It's so great to hear you're having a good time. eskort met you in Cleveland and you seemed so escort ankara If things go my way, I'll be able to catch up with msn show toptan mallar satış sitesi toptancı deneme travesti
derteg deneme escort servisi If you don't know how to spot the difference, just watch any of the Filipinas buying and you'll soon catch on. istanbul jigolo Crab-sexers par excellence, it seems there's nothing these people aren't good at! film izle

12:29 PM  

Post a Comment

<< Home