Concurrent page-fault handling with per-VMA locks
Concurrent page-fault handling with per-VMA locks
Posted Sep 6, 2022 15:31 UTC (Tue) by calumapplepie (guest, #143655)In reply to: Concurrent page-fault handling with per-VMA locks by Homer512
Parent article: Concurrent page-fault handling with per-VMA locks
Hmm, good point... the downside would be memory consumption. 64-bit sequence numbers would increase the size of every vma_struct by about 5% (by my estimate of scanning the code). `sudo cat /proc/*/maps | wc` tells me I have 146,368 VMAs right now on my laptop; 8 extra bytes each would add up to around a megabyte, which is fairly small, especially considering what I have running right now (Firefox, Chrome, Libreoffice, Calibre, and Evolution, plus a few other apps). That being said, I remember seeing an article on here about an effort to share vma_struct instances between processes, so there might some group that's seeing much larger numbers.
