Sizing a Swap Partition

It is still one of the first questions when installing a unixoid OS: do you still need a swap partition and how big should you make it. In the old days™ this was an important question because disk space was expensive and the OS memory management had several constraints.

Today both memory and disks are cheap enough to make this question insignificant in many cases. One can usually buy enough memory to prevent swapping, and with terrabyte disks it makes no real difference whether the swap partition is 1 Gb or 4 Gb in size.

I still use the old rule of thumb and allocate twice the size of RAM for a swap partition. But the intention is not so much to swap memory pages but rather to always have enough space for kernel core dumps. My basic reasoning is:

  1. In case of kernel errors I want to get a core dump.
  2. A later RAM upgrade is relatively cheap and easy, thus probable over a system’s lifetime.
  3. A later disk re-partitioning is more difficult, thus to avoid.
  4. Disk space is cheap, allocating ≤ 5% for a mostly unused swap partition has no significant cost.

 

Tip zur Wohnungssuche

Leute, zieht bloß nie in einem Haus ein in dem es schon jemanden mit gleichem oder sehr ähnlichem Nachnamen gibt…

Gelegentlich verirrte Post ist dabei nur ein Teil des Problems. Hier führte es nun zu einem Wochenende ohne Internet, weil am Freitag bei jemand ganz anderem ein Telephontechniker im Haus war und nebenbei anscheinend unseren Anschluss „korrigiert“ hat.

Und das am letzten Wochenende vor den Feiertagen, an dem es noch Hundert Dinge zu erledigen gab :-/

Diagramme zeichnen: TikZ

Zm Abschluss der kleinen Serie nun das LaTeX-Werkzeug mit dem ich die meisten Diagramme gezeichnet habe: TikZ, kurz für „TikZ ist kein Zeichenprogramm“. Auf CTAN findet es sich im Paket pgf, der Portable Graphic Format for TeX; dabei enthält der pgf-Teil low level Bausteine und der TikZ-Teil die abstrakteren Funktionen für Endbenutzer.

Read the rest of this entry »

Dying ‘try’ processes

Note: This syslog entry is puzzling if the system has no program named try, but no cause for concern:

2011-11-19T01:31:21 frodo kernel: pid 47812 (try), uid 0: exited on signal 10 (core dumped)

Source of the program is Perl’s Configure script, which compiles its C library test cases into programs named try. And apparently amd64 systems need to use the function va_copy() because the test case without this function leads to a segfault.

Diagramme zeichnen: Wireshark

Nur so halb in die Diagramme-Reihe passt Wireshark. Konkret die “Flow Graph” Statistik wäre eigentlich eine schöne Grundlage für Diagramme.

Read the rest of this entry »

Diagramme zeichnen: PyX & Scapy

PyX ist ein Python-Modul um Postscript-Graphiken zu erstellen. Eine sehr kurze Zusammenfassung: so wie PSTricks, aber in Python. Als besondere Features gibt es eine LaTeX-Anbindung für Textelemene und Plotting-Funktionen – damit eignet es sich auch recht gut als gnuplot-Ersatz (Beispiel).

Read the rest of this entry »

Design and Implementation of an IPv6 Plugin for the Snort Intrusion Detection System

Nach einem Schreib-Endspurt im August und folgender Schreib-Faulheit im September soll es auch hier mal wieder weitergehen. Und bevor sich wirklich neue Themen finden, gibt’s noch ein paar übriggebliebene Notizen zu meiner Diplomarbeit: Design and Implementation of an IPv6 Plugin for the Snort Intrusion Detection System.

[Short english explanation:] I finished my diploma thesis: Design and Implementation of an IPv6 Plugin for the Snort Intrusion Detection System.

OSX Lion Impression

Finally got around to read the OSX Lion review on ars technica… The most interesting feature is the new process model with automatic and sudden termination (at least in regard to OS design; without having a Mac I no longer care about the UI).
Read the rest of this entry »