STO-210 · Storage & Filesystems · Advanced

ext4 & XFS Internals — full syllabus

The on-disk layout and operational behaviour of the two filesystems most production Linux runs on.

Duration3 full days in person · 6 half-days online
Cohortmax 14 in person · 20 online
Pricefrom SAR 9,000 in person · local pricing per city
Delivery35% principles · 20% guided investigation · 45% engineering studio

Who this course is for

Engineers who own production filesystem decisions — choosing between ext4 and XFS, tuning them, and performing the recovery when something corrupts at 3 a.m.

Prerequisites

Course outline

Day 1 — ext4 on disk and in memory

  • Block groups, group descriptors and the superblock layout
  • Extents vs block maps; the extent tree
  • Directory indexing (htree) and inline data
  • The journal (jbd2): ordered, writeback and journal modes and what each guarantees
  • Inspection: dumpe2fs, debugfs, tune2fs and the ext4 sysfs knobs

Day 2 — XFS on disk and the fsync question

  • Allocation groups and XFS's parallel layout
  • B+trees everywhere: free space, inodes, extents and directories
  • Delayed allocation and speculative preallocation
  • The XFS log and log-force behaviour
  • Crash consistency end to end: what fsync, fdatasync, O_SYNC and O_DIRECT really promise on both filesystems
  • Inspection: xfs_info, xfs_db and xfs_io

Day 3 — Performance, repair and forensics

  • Workload matching: small-file, large-file, metadata-heavy and parallel writers on both filesystems
  • Fragmentation: causes, measurement and the defrag tools
  • e2fsck vs xfs_repair: different philosophies, different failure modes
  • Corruption forensics: reading a damaged filesystem with debugfs and xfs_db
  • Backup and snapshot strategies consistent with each filesystem's guarantees

Hands-on labs

  1. Lab: dissect an ext4 image with dumpe2fs/debugfs and an XFS image with xfs_db — locate a file's extents and journal state by hand
  2. Lab: benchmark both filesystems with fio across small-file, large-file and fsync-heavy workloads and explain the divergence from the on-disk design
  3. Lab: compare ext4 journal modes under a crash-consistency workload and demonstrate what each mode loses on power failure
  4. Lab: corrupt-and-repair — damage a superblock, a journal and an inode table on expendable images, then recover with e2fsck/xfs_repair and verify the data

Capstone project

Run a full filesystem selection and recovery exercise: for a stated production workload you benchmark both candidates, write a one-page selection memo justified by your fio data and the crash-consistency guarantees, then recover a corrupted image of the winner to a verifiable state — checksums before corruption matching checksums after repair, or a precise statement of what was unrecoverable and why.

What you leave with

Upcoming dates

DatesWhereSeatsEarly birdRegular
15 Nov – 17 Nov 20263 full days RiyadhIn person · KAFD Conference Centre 9 of 14 SAR 8,100until 16 OctSAR 9,000
22 Nov – 24 Nov 20263 full days Kuwait CityIn person · Al Hamra Tower 4 of 14 KWD 670until 23 OctKWD 740
29 Nov – 1 Dec 20263 full days MuscatIn person · Knowledge Oasis Muscat 9 of 14 OMR 830until 30 OctOMR 920
29 Nov – 6 Dec 20266 half-days Gulf bandLive online · 09:00–13:00 GMT+3 5 of 20 US$1,580until 30 OctUS$1,750
30 Nov – 2 Dec 20263 full days OttawaIn person · Kanata North Tech Park 4 of 14 CAD 2,930until 31 OctCAD 3,260
7 Dec – 9 Dec 20263 full days TorontoIn person · MaRS Discovery District 9 of 14 CAD 2,930until 7 NovCAD 3,260
7 Dec – 14 Dec 20266 half-days Europe bandLive online · 09:00–13:00 CET 10 of 20 US$1,580until 7 NovUS$1,750
14 Dec – 16 Dec 20263 full days LondonIn person · Shoreditch Works 4 of 14 GBP 1,680until 14 NovGBP 1,870
14 Dec – 16 Dec 20263 full days BerlinIn person · Factory Görlitzer Park 9 of 14 EUR 1,990until 14 NovEUR 2,210
14 Dec – 21 Dec 20266 half-days Americas bandLive online · 13:00–17:00 ET 15 of 20 US$1,580until 14 NovUS$1,750

Book a seat, or bring this course to your team

Seats can be reserved online; private delivery runs on-site or live online, adapted to your stack.

Course page & booking

Questions about fit or prerequisites? Email hello@kernelsystems.academy. To save this syllabus, print this page to PDF from your browser.