Re: [PATCH net-next] net/smc: Use kvzalloc for allocating smc_link_group

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20/01/2022 15:09, Tony Lu wrote:
> When analyzed memory usage of SMC, we found that the size of struct
> smc_link_group is 16048 bytes, which is too big for a busy machine to
> allocate contiguous memory. Using kvzalloc instead that falls back to
> vmalloc if there has not enough contiguous memory.

I am wondering where the needed contiguous memory for the required RMB buffers should come from when 
you don't even get enough storage for the initial link group?

The idea is that when the system is so low on contiguous memory then a link group creation should fail 
early, because most of the later buffer allocations will also fail then later.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux