Skip to content

Instantly share code, notes, and snippets.

@flavio
Created September 20, 2023 14:52
Show Gist options
  • Save flavio/94a80b7b2ce2bf318ba8968288751a7d to your computer and use it in GitHub Desktop.
Save flavio/94a80b7b2ce2bf318ba8968288751a7d to your computer and use it in GitHub Desktop.
Output produced by `smap` when looking at a process running wasmtime. Only one module loaded
28789: target/release/wasmtime-provider-memory
Address Perm Offset Device Inode Size Rss Pss Referenced Anonymous LazyFree ShmemPmdMapped FilePmdMapped Shared_Hugetlb Private_Hugetlb Swap SwapPss Locked THPeligible Mapping
5654b4238000 r-xp 00000000 fe:02 584900893 9532 6048 6048 6048 0 0 0 0 0 0 0 0 0 0 /home/flavio/hacking/wasm/wapc/wasmtime-provider-memory/target/release/wasmtime-provider-memory
5654b4b87000 r--p 0094f000 fe:02 584900893 280 280 280 280 280 0 0 0 0 0 0 0 0 0 /home/flavio/hacking/wasm/wapc/wasmtime-provider-memory/target/release/wasmtime-provider-memory
5654b4bcd000 rw-p 00995000 fe:02 584900893 8 8 8 8 8 0 0 0 0 0 0 0 0 0 /home/flavio/hacking/wasm/wapc/wasmtime-provider-memory/target/release/wasmtime-provider-memory
5654b4bcf000 rw-p 00000000 00:00 0 4 4 4 4 4 0 0 0 0 0 0 0 0 0
5654b6556000 rw-p 00000000 00:00 0 14388 12652 12652 12652 12652 0 0 0 0 0 0 0 0 1 [heap]
7fcf58000000 ---p 00000000 00:00 0 2097152 0 0 0 0 0 0 0 0 0 0 0 0 1
7fcfd8000000 rw-p 00000000 00:00 0 1024 4 4 4 4 0 0 0 0 0 0 0 0 0
7fcfd8100000 rw-p 00000000 00:01 14905 80 80 80 80 4 0 0 0 0 0 0 0 0 0 /memfd:wasm-memory-image (deleted)
7fcfd8114000 rw-p 00000000 00:00 0 112 8 8 8 8 0 0 0 0 0 0 0 0 0
7fcfd8130000 ---p 00000000 00:00 0 6290240 0 0 0 0 0 0 0 0 0 0 0 0 1
7fd158000000 rw-p 00000000 00:00 0 4204 4124 4124 4124 4124 0 0 0 0 0 0 0 0 1
7fd15841b000 ---p 00000000 00:00 0 61332 0 0 0 0 0 0 0 0 0 0 0 0 1
7fd160000000 rw-p 00000000 00:00 0 3340 3292 3292 3292 3292 0 0 0 0 0 0 0 0 1
7fd160343000 ---p 00000000 00:00 0 62196 0 0 0 0 0 0 0 0 0 0 0 0 1
7fd168000000 rw-p 00000000 00:00 0 3752 3700 3700 3700 3700 0 0 0 0 0 0 0 0 1
7fd1683aa000 ---p 00000000 00:00 0 61784 0 0 0 0 0 0 0 0 0 0 0 0 1
7fd16c000000 rw-p 00000000 00:00 0 3860 3684 3684 3684 3684 0 0 0 0 0 0 0 0 1
7fd16c3c5000 ---p 00000000 00:00 0 61676 0 0 0 0 0 0 0 0 0 0 0 0 1
7fd170000000 rw-p 00000000 00:00 0 4916 4900 4900 4900 4900 0 0 0 0 0 0 0 0 1
7fd1704cd000 ---p 00000000 00:00 0 60620 0 0 0 0 0 0 0 0 0 0 0 0 1
7fd178000000 rw-p 00000000 00:00 0 3580 3512 3512 3512 3512 0 0 0 0 0 0 0 0 1
7fd17837f000 ---p 00000000 00:00 0 61956 0 0 0 0 0 0 0 0 0 0 0 0 1
7fd180000000 rw-p 00000000 00:00 0 3320 3228 3228 3228 3228 0 0 0 0 0 0 0 0 1
7fd18033e000 ---p 00000000 00:00 0 62216 0 0 0 0 0 0 0 0 0 0 0 0 1
7fd1842a2000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd1842a3000 rw-p 00000000 00:00 0 2048 88 88 88 88 0 0 0 0 0 0 0 0 0
7fd187495000 r--p 00000000 00:00 0 4 4 4 4 4 0 0 0 0 0 0 0 0 0
7fd187496000 r-xp 00000000 00:00 0 2248 2248 2248 2248 2248 0 0 0 0 0 0 0 0 0
7fd1876c8000 r--p 00000000 00:00 0 3140 3140 3140 3140 3140 0 0 0 0 0 0 0 0 0
7fd1879d9000 rw-p 00000000 00:00 0 772 684 684 684 684 0 0 0 0 0 0 0 0 0
7fd187a9a000 rw-p 00000000 00:00 0 516 436 436 436 436 0 0 0 0 0 0 0 0 0
7fd187b3c000 rw-p 00000000 00:00 0 516 300 300 300 300 0 0 0 0 0 0 0 0 0
7fd187bbd000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd187bbe000 rw-p 00000000 00:00 0 256 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd187bfe000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd187bff000 rw-p 00000000 00:00 0 2048 92 92 92 92 0 0 0 0 0 0 0 0 0
7fd187dff000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd187e00000 rw-p 00000000 00:00 0 2048 2048 2048 2048 2048 0 0 0 0 0 0 0 0 1
7fd188000000 rw-p 00000000 00:00 0 12440 12068 12068 12068 12068 0 0 0 0 0 0 0 0 1
7fd188c26000 ---p 00000000 00:00 0 53096 0 0 0 0 0 0 0 0 0 0 0 0 1
7fd18c020000 rw-p 00000000 00:00 0 516 300 300 300 300 0 0 0 0 0 0 0 0 0
7fd18c0a1000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18c0a2000 rw-p 00000000 00:00 0 2048 84 84 84 84 0 0 0 0 0 0 0 0 0
7fd18c2a2000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18c2a3000 rw-p 00000000 00:00 0 2048 96 96 96 96 0 0 0 0 0 0 0 0 0
7fd18c4a3000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18c4a4000 rw-p 00000000 00:00 0 2048 88 88 88 88 0 0 0 0 0 0 0 0 0
7fd18c6a4000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18c6a5000 rw-p 00000000 00:00 0 2048 88 88 88 88 0 0 0 0 0 0 0 0 0
7fd18c8a5000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18c8a6000 rw-p 00000000 00:00 0 3524 1552 1552 1552 1552 0 0 0 0 0 0 0 0 1
7fd18cc17000 r-xp 00000000 fe:00 7340040 1952 1296 8 1296 0 0 0 0 0 0 0 0 0 0 /lib64/libc-2.31.so
7fd18cdff000 r--p 001e7000 fe:00 7340040 12 12 12 12 12 0 0 0 0 0 0 0 0 0 /lib64/libc-2.31.so
7fd18ce02000 rw-p 001ea000 fe:00 7340040 32 32 32 32 32 0 0 0 0 0 0 0 0 0 /lib64/libc-2.31.so
7fd18ce0a000 rw-p 00000000 00:00 0 16 12 12 12 12 0 0 0 0 0 0 0 0 0
7fd18ce0e000 r-xp 00000000 fe:00 7340207 12 12 0 12 0 0 0 0 0 0 0 0 0 0 /lib64/libdl-2.31.so
7fd18ce11000 r--p 00002000 fe:00 7340207 4 4 4 4 4 0 0 0 0 0 0 0 0 0 /lib64/libdl-2.31.so
7fd18ce12000 rw-p 00003000 fe:00 7340207 4 4 4 4 4 0 0 0 0 0 0 0 0 0 /lib64/libdl-2.31.so
7fd18ce13000 rw-p 00000000 00:00 0 8 8 8 8 8 0 0 0 0 0 0 0 0 0
7fd18ce15000 r-xp 00000000 fe:00 7340208 1316 360 4 360 0 0 0 0 0 0 0 0 0 0 /lib64/libm-2.31.so
7fd18cf5e000 r--p 00148000 fe:00 7340208 4 4 4 4 4 0 0 0 0 0 0 0 0 0 /lib64/libm-2.31.so
7fd18cf5f000 rw-p 00149000 fe:00 7340208 8 8 8 8 8 0 0 0 0 0 0 0 0 0 /lib64/libm-2.31.so
7fd18cf61000 r-xp 00000000 fe:00 7340060 120 120 0 120 0 0 0 0 0 0 0 0 0 0 /lib64/libpthread-2.31.so
7fd18cf7f000 r--p 0001d000 fe:00 7340060 4 4 4 4 4 0 0 0 0 0 0 0 0 0 /lib64/libpthread-2.31.so
7fd18cf80000 rw-p 0001e000 fe:00 7340060 4 4 4 4 4 0 0 0 0 0 0 0 0 0 /lib64/libpthread-2.31.so
7fd18cf81000 rw-p 00000000 00:00 0 16 4 4 4 4 0 0 0 0 0 0 0 0 0
7fd18cf85000 r-xp 00000000 fe:00 7349510 116 108 2 108 0 0 0 0 0 0 0 0 0 0 /lib64/libgcc_s.so.1
7fd18cfa2000 ---p 0001d000 fe:00 7349510 2044 0 0 0 0 0 0 0 0 0 0 0 0 0 /lib64/libgcc_s.so.1
7fd18d1a1000 r--p 0001c000 fe:00 7349510 4 4 4 4 4 0 0 0 0 0 0 0 0 0 /lib64/libgcc_s.so.1
7fd18d1a2000 rw-p 0001d000 fe:00 7349510 4 4 4 4 4 0 0 0 0 0 0 0 0 0 /lib64/libgcc_s.so.1
7fd18d1a8000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1a9000 rw-p 00000000 00:00 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1ab000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1ac000 rw-p 00000000 00:00 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1ae000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1af000 rw-p 00000000 00:00 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1b1000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1b2000 rw-p 00000000 00:00 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1b4000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1b5000 rw-p 00000000 00:00 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1b7000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1b8000 rw-p 00000000 00:00 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1ba000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1bb000 rw-p 00000000 00:00 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1bd000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1be000 rw-p 00000000 00:00 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1c0000 ---p 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
7fd18d1c1000 rw-p 00000000 00:00 0 16 8 8 8 8 0 0 0 0 0 0 0 0 0
7fd18d1c5000 r-xp 00000000 fe:00 7349366 168 168 1 168 0 0 0 0 0 0 0 0 0 0 /lib64/ld-2.31.so
7fd18d1ef000 r--p 0002a000 fe:00 7349366 4 4 4 4 4 0 0 0 0 0 0 0 0 0 /lib64/ld-2.31.so
7fd18d1f0000 rw-p 0002b000 fe:00 7349366 8 8 8 8 8 0 0 0 0 0 0 0 0 0 /lib64/ld-2.31.so
7ffe99cf7000 rw-p 00000000 00:00 0 140 52 52 52 52 0 0 0 0 0 0 0 0 0 [stack]
7ffe99d34000 r--p 00000000 00:00 0 16 0 0 0 0 0 0 0 0 0 0 0 0 0 [vvar]
7ffe99d38000 r-xp 00000000 00:00 0 8 4 0 4 0 0 0 0 0 0 0 0 0 0 [vdso]
ffffffffff600000 --xp 00000000 00:00 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 [vsyscall]
======= ===== ===== ========== ========= ======== ============== ============= ============== =============== ==== ======= ====== ===========
8969116 71084 69031 71084 62892 0 0 0 0 0 0 0 0 21 KB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment