~/talk

Optimizing sysfs and procfs

links:none on file
links:none on file
slides:none on file

Observed that ~40% of sysfs/procfs entries get accessed at boot, leaving many inodes/dentries resident; applying DCACHE_DONTCACHE to all entries reduces inode/dentry usage from ~11k to ~2.8k and frees ~11–12 MB but raises lookup calls from ~10k to ~45k and slows boot (8.43s → 8.73s). Changing strategy to apply DCACHE_DONTCACHE only to files preserves directory dentries, cuts inode/dentry usage and saves ~6–7 MB while keeping boot time near baseline (8.43s → 8.60s). Results come from boot-time access traces and lookup/inode counters.

AI-written summary · about

  1. 0:00Introduction to sysfs and procfs
  2. 3:40File access walkthrough in sysfs
  3. 6:32Memory retention problem in sysfs
  4. 7:58Proposed solution with dcache don't cache
  5. 12:50Benchmark results and trade-offs
  6. 16:04Optimizing for files only
  7. 20:03Discussion and community feedback
  8. 27:04Trivia on procfs read behavior
  9. 33:09User space control over caching policy
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.