Overflow in vm.vmtotal expected when allocating huge amounts of memory?

Bruce Cran bruce at cran.org.uk
Thu Mar 26 02:59:12 PDT 2009


Are overflows in the vm counters expected when dealing with huge
amounts of memory on 64-bit platforms?  I wrote an application which
malloc'd 10TB memory and then sat doing nothing; vm.vmtotal showed
-2132654356K.  Shouldn't unsigned integers be used for any vm stats to
avoid overflows?

-- 
Bruce Cran


More information about the freebsd-hackers mailing list