From 92aea44cb7dd0a7995327d2f276563b8058afbc9 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 11 Nov 2026 12:00:42 -0300 Subject: design: the address space to true scale, magnified beside itself (a draft) From the user: the view's worth is the feel of the space's size, with its ends in the picture. The whole user half is one rectangle to linear scale, the mappings hairlines where they are, and what cannot be read is enlarged beside it with the magnification's lines and its factor. The mocks are rough: lines through labels, the program's bands unnamed. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- design/mock/34-segments.svg | 368 +++++++++++++++++++------------------------- 1 file changed, 159 insertions(+), 209 deletions(-) (limited to 'design/mock/34-segments.svg') diff --git a/design/mock/34-segments.svg b/design/mock/34-segments.svg index 5c5505b..c37a4d4 100644 --- a/design/mock/34-segments.svg +++ b/design/mock/34-segments.svg @@ -1,213 +1,163 @@ -ffffffffffffffff - - - ---x -[vsyscall] -4 KiB -ffffffffff600000 - - - - -nothing mapped · 15 EiB - - - -rw- -[stack] -132 KiB -7ffffffde000 - - - - -nothing mapped · 127 MiB - - - -rw- -data (anonymous) -4 KiB -7ffff7ffe000 - - - -rw- -data -4 KiB -7ffff7ffd000 - - - -r-- -read-only -8 KiB -7ffff7ffb000 - - - -r-- -read-only -60 KiB -7ffff7fec000 - - - -r-x -code -180 KiB -7ffff7fbf000 - - - -r-- -read-only -4 KiB -7ffff7fbe000 - - - -r-x -[vdso] -8 KiB -7ffff7fbc000 - - - -r-- -[vvar] -24 KiB -7ffff7fb6000 - - - -r-- -read-only -260 KiB -7ffff7f75000 - - - -rw- -data (anonymous) -20 KiB -7ffff7f70000 - - - - -nothing mapped · 1.3 MiB - - - -rw- -data (anonymous) -32 KiB -7ffff7e1b000 - - - -rw- -data -8 KiB -7ffff7e19000 - - - -r-- -read-only -16 KiB -7ffff7e15000 - - - -r-- -read-only -472 KiB -7ffff7d9f000 - - - -r-x -code -1.5 MiB -7ffff7c24000 - - - -r-- -read-only -144 KiB -7ffff7c00000 - - - - -nothing mapped · 127 TiB - - - -rw- -[heap] -132 KiB -1004000 - - - -rw- -data -4 KiB -1003000 - - - -r-- -read-only -4 KiB -1002000 - - - -r-x -code -4 KiB -1001000 - - - -r-- -read-only -4 KiB -1000000 - - - -ld.so - - - -ld.so.cache - - - -libc.so.6 - - - -list -0 - - - - -rsp - -rip - -the address space -high addresses on top · not to scale: holes 40, bands by the log of their size + + + +0 TiB + +16 TiB + +32 TiB + +48 TiB + +64 TiB + +80 TiB + +96 TiB + +112 TiB + +128 TiB + + + + + + + + + + + + + + + + + + + + + + +0x7fffffffffff · the user half's end +0 +above: 16 EiB not canonical, then the kernel's half + + + +0 MiB + +32 MiB + +64 MiB + +96 MiB + +128 MiB + +160 MiB + +192 MiB + +224 MiB + +256 MiB + + + + + + + + + + + + + + + + + + + +the top 256 MiB · × 500 000 + + + +0 MiB + +1 MiB + +2 MiB + +3 MiB + +4 MiB + + + + + + +r-x ld.so +180 KiB + + + + + +r-- ld.so.cache +260 KiB + + + + + + +r-- libc.so.6 +472 KiB + + +r-x libc.so.6 +1.5 MiB + + +r-- libc.so.6 +144 KiB + + +the libraries, 4 MiB · × 32 + + + +0 MiB + +4 MiB + +8 MiB + +12 MiB + +16 MiB + +20 MiB + + + + + + + +the bottom 20 MiB · × 7 000 000 + +rw- [stack] 132 KiB, rsp in it: a hairline even here + + +If this space were as tall as the Eiffel Tower, all the program has mapped would +be thinner than a hair: the stack a third of a micron, at the very top. -- cgit v1.3