Tag Archives: linux

Self-signed SSL certificate HOWTO

SSL is used for (1) encrypting HTTP traffic and for (2) authentication server against browser's database of trusted certificates. Generating SSL certificate properly is important if you want your customer to use https properly. It costs few bugs per year, … Continue reading

Posted in en | Tagged , , | Comments Off on Self-signed SSL certificate HOWTO

Check current network bandwidth used on a Linux/Unix box

Sometimes you need to quickly measure current bandwidth used by your Linux box and don't have dedicated command installed. You can use standard /proc/ file entries to get that info from the system. Example of a embedded device with a … Continue reading

Posted in en | Tagged , | 1 Comment

NAND kernel driver activity visualisation

Just found: an interesting method to check how your NAND driver (and filesystem kernel module) behave during massive write operations. I've added additional printk-s() to NAND driver kernel module write() call and collected data during filling all available filesystem space. … Continue reading

Posted in en | Tagged , | Comments Off on NAND kernel driver activity visualisation

join() in AWK scripting language

AWK is small but very useful Unix scripting language that is mainly aimed at text files filtering and modification. If you're on embedded device you might expect bigger brothers (as Perl / Python) are not available, but AWK is usually … Continue reading

Posted in en | Tagged , , | Comments Off on join() in AWK scripting language

Find most CPU-hungry threads under Linux

It's pretty easy to find CPU usage per process (top, ps), but If you want to find top CPU users per thread there's a method: $ awk '{printf "TID: %6u  %8u %8u %8u \t %s \n", $1, $14, $15, $14+$15, … Continue reading

Posted in en | Tagged , , | Comments Off on Find most CPU-hungry threads under Linux