[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 10/27] xen: make sure swiotlb allocationisphysically contigious
>>> Jeremy Fitzhardinge <jeremy@xxxxxxxx> 16.03.09 20:37 >>> >Jan Beulich wrote: >> >> While on native using alloc_bootmem_low_pages() is a requirement here, >> on Xen this should explicitly not be used, as we realized just a couple of >> days ago: > >Which conversation was this? I pointed out the issue in a mail titled "alloc_bootmem_low() mis-uses", in response to a bug report we had from HP running into an out-of-memory panic from the bootmem allocator when allocating the 64Mb of swiotlb on a 256Gb box. >> The way the bootmem allocator works, running out of space >> below 4Gb is pretty easy on machines with lots of memory, and since the >> swiotlb is a requirement for Dom0, the risk of allocation failures must be >> kept as low as possible. >> > >Are we talking about a 32 or 64 bit dom0 here? If its 32-bit, then yes, >low memory is a precious resource, but I don't see why that depends on >the total amount of memory. And if its 64-bit, why is below-4G >particularly constrained? That would only matter for 32-bit devices? No, it's in particular about 64-bit (and native has a similar potential problem here, just that it's not that easily fixable because, as said, alloc_bootmem_low_pages() is a must there): Since the bootmem allocator (generally) works from bottom to top, 'normal' (i.e. without the _low suffix) bootmem allocations may eat up most/all memory below 4Gb, and when finally the swiotlb initialization runs there's no memory left for it. For boxes with yet much more memory (as I realized only after having written that other mail), there's also another issue of the bootmem allocation bitmap generally getting allocated as low as possible (which again may eat up all memory below 4Gb), but fixing this at least doesn't require touching the bootmem code itself (and is of course a really secondary issue, as it's going to be a couple of years until this bitmap would reach into the Gb range). Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |