Sample Header Ad - 728x90

Why is VmallocTotal 34359738367 kB?

1 vote
1 answer
5524 views
/proc/meminfo has a memory statistic VmallocTotal. It is described as > Total size of vmalloc memory area. in [proc's man page](https://man7.org/linux/man-pages/man5/proc.5.html) and elsewhere as > Total memory available in kernel for vmalloc allocations It sparked my curiosity because it is a very high number and everywhere I searched it is exactly 34359738367 kB. It seems like an arbitrary maximum. But what is the significance of 34359738367 kB? It is not a multiple of 2, not a prime number, but it is 0x7FFFFFFFF in hexadecimal. I also noticed pmap process memory map addresses max out at 0x7FFFFFFFF. But then what is the practical significance of 0x7FFFFFFFF?
Asked by Arthur Tarasov (113 rep)
Apr 28, 2022, 01:46 PM
Last activity: Mar 25, 2025, 11:10 AM