~hruske Hruške, jabuke, jablane, čežane. » 2008 » April
Home Contact Sitemap

Hruške, jabuke, jablane, čežane.

Ste se gdaj vprašali, zakaj Najboljšega soseda nikoli ni doma, ko pridete na obisk?

Best Django error page ever

Posted on April 25th, 2008 in dovhcajt |

Can you guess what really happened?

Komentarji so izklopljeni

Doubious means of testing

Posted on April 25th, 2008 in dovhcajt |

Avian, you should recheck your code size with Sloccount for more accurate measurements.

I also double checked your latest Python bash, and I makes me wonder on what ancient version of Python you might have tested this to get results like that. Following are my results I get with Python 2.4:

Python 2.4.5

And these with Python 2.5:

Python 2.5.2

You can download the test suite. I run these tests on my laptop, with frequency scaling turned off, the test suite runs 10 iterations each time and prints out result averages, that can be copy-pasted in octave shell.

Komentarji so izklopljeni

Who’s afraid of OOM killer

Posted on April 2nd, 2008 in dovhcajt |

Debian still has this annoying feature, that service init script gets symlinked if you upgrade package, so disabling it manually via update-rc.d is still not enough. Trying to solve this and make sshd not run on my laptop with a hack by putting a line like ‘exit 1′ in /etc/default/ssh does settle this. However, I was a bit suprised to see a variable SSHD_OOM_ADJUST, meaning OOM kill priority can be adjusted or even disabled.

Corresponding excerpt from kernel documentation (proc.txt):

2.12 /proc/<pid>/oom_adj – Adjust the oom-killer score
This file can be used to adjust the score used to select which processes
should be killed in an out-of-memory situation. Giving it a high score will
increase the likelihood of this process being killed by the oom-killer. Valid
values are in the range -16 to +15, plus the special value -17, which disables
oom-killing altogether for this process.

This means it shouldn’t happen that your sshd gets shot by OOM killer on Debian … when lenny gets out.

Komentarji so izklopljeni