Διαβάζοντας την περασμένη βδομάδα το Linux Journal βρήκα μετά από χρόνια επιτέλους μία ωραία αφορμή για να κάνω και πάλι compile τον kernel στο linux μου.. και εξηγώ:
Παλιότερα, το kernel compile ήταν κάτι πολύ συχνό (ακόμα και σαν benchmark ταχύτητας), γιατί κάλυπτε τις εξής δύο ανάγκες.. Πρώτα για να κόψω ότι δε χρειαζόμουνα για το μηχάνημά μου ώστε να ελευθερώσω περισσότερα resources από τα λιγοστά που είχα, και δεύτερον για να δουλέψει επιτέλους η τάδε συσκευή που είχα και ο αντίστοιχος driver μόλις πριν λίγο είχε ενσωματωθεί στον kernel που είχε κυκλοφορήσει..
Πρέπει να έχουν περάσει τουλάχιστον 4 χρόνια από την τελευταία φορά που έκανα compile kernel.. Αυτό γιατί το hardware που έχω και οι αλλαγές σ’αυτό ήταν ελάχιστες ή πάντα αυτό που αγόραζα ήταν ήδη υποστηριζόμενο από τους stock kernels του distribution που είχα.
Απο ένα σημείο και μετά δηλαδή, δεν υπήρχε λόγος για να κάνω custom kernel compile αφού με κάλυπταν (και με το παραπάνω) οι vendors και μπορούσα να φορτώσω σαν module ότι χρειαζόμουνα. Ισα ίσα, που κέρδιζα χρόνο, κόπο και είχα εύκολο upgrade path.
Την περασμένη βδομάδα λοιπόν, στο άρθρο Go Green, Save Green with Linux διάβασα για το PowerTOP.
Computer programs can make your computer use more power. PowerTOP is a Linux tool that helps you find those programs that are misbehaving while your computer is idle. The application that misbehaved the most was the Linux kernel. However, as of version 2.6.21, the Linux kernel went tickless, and no longer has a fixed 1000Hz timer tick. The result (in theory) is huge power savings because the CPU stays in low power mode for longer periods during system idle.
Και σαν να μην έφτανε αυτό, χθες διαβάζοντας στο Linux Weekly News ότι βγήκε ο 2.6.25, ανακάλυψα και τον ξάδερφο του powertop, το LatencyTop.
LatencyTOP is a Linux tool for software developers (both kernel and userspace), aimed at identifying where in the system latency is happening, and what kind of operation/action is causing the latency to happen so that the code can be changed to avoid the worst latency hiccups. […]
LatencyTOP focuses on the cases where the applications want to run and execute useful code, but there’s some resource that’s not currently available (and the kernel then blocks the process). This is done both on a system level and on a per process level, so that you can see what’s happening to the system, and which process is suffering and/or causing the delays.
Ωρα για kernel compile μετά από τόσα χρόνια λοιπόν, γιατί το debian etch που έχω έχει ακόμα 2.6.18..