On 5/14/21 3:42 PM, Jens Axboe wrote: > On 5/14/21 5:06 AM, Pavel Begunkov wrote: >> Since recent changes instead of storing a large array of struct >> io_mapped_ubuf, we store pointers to them, that is 4 times slimmer and >> we should not to so worry about restricting max number of registererd >> buffer slots, increase the limit 4 times. > > Is this going to fall within the max kmalloc size? > 2^14 * 8 bytes = 128KB or 32 pages, Even though 128KB may be not nice, but should be way below max limit. On the other hand that's the same amount of memory we were allowing prior to dynamic buffer changes. -- Pavel Begunkov