How to configure the SingleBufferAllocationLimitBytes in MemoryAllocator
#3148
Replies: 2 comments 1 reply
|
Also the |
|
Thanks for the detailed feedback; all three points were fair, and #3165 addresses them. Configuring MemoryAllocator allocator = MemoryAllocator.Create(new MemoryAllocatorOptions
{
// Raise the contiguous single-buffer cap from the 1 GB default to the 2 GB ceiling.
SingleBufferAllocationLimitMegabytes = 2047,
// Optional: the total per-image limit for discontiguous groups. Default is 4 GB on 64-bit.
AllocationLimitMegabytes = 8192
});
Configuration.Default.MemoryAllocator = allocator;The line you found no longer clamps unconditionally: an explicit single-buffer value wins, capped only by the group limit, because one buffer can never exceed the total allocation budget. Custom allocators. The extensibility gaps are closed.
|

Thanks for the detailed feedback; all three points were fair, and #3165 addresses them.
Configuring
SingleBufferAllocationLimitBytes.MemoryAllocatorOptionsnow has aSingleBufferAllocationLimitMegabytesoption, so you can raise the 1 GB default without writing an allocator:The line you f…