Skip to content

Instantly share code, notes, and snippets.

View ajdecon's full-sized avatar

Adam DeConinck ajdecon

View GitHub Profile
@marcan
marcan / linux.sh
Last active December 1, 2023 15:18
Linux kernel initialization, translated to bash
#!/boot/bzImage
# Linux kernel userspace initialization code, translated to bash
# (Minus floppy disk handling, because seriously, it's 2017.)
# Not 100% accurate, but gives you a good idea of how kernel init works
# GPLv2, Copyright 2017 Hector Martin <marcan@marcan.st>
# Based on Linux 4.10-rc2.
# Note: pretend chroot is a builtin and affects the current process
# Note: kernel actually uses major/minor device numbers instead of device name
@ajdecon
ajdecon / XeonX5570-QDR.txt
Created May 2, 2012 20:36
OSU Micro-Benchmarks for 10GbE-on-EC2 and for QDR Infiniband
OSU Micro-Benchmarks on a pair of physical compute nodes at R Systems with
QDR Infiniband.
# uname -a
Linux nu0047 2.6.18-164.11.1.el5 #1 SMP Wed Jan 6 13:26:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
# gcc -v
Using built-in specs.
Target: x86_64-redhat-linux