On 05/08/2018 03:30 PM, Oleg Babin wrote: > Size of rchan structure depends on NR_CPUS definition which can be > configured by the user and can become quite large. > > E.g. if NR_CPUS equals to 5120 (real world scenario) then it makes > sizeof(struct rchan) == 41320 meaning the 4th memory order. > > Use kvmalloc() for rchan structure allocation to fallback to vmalloc() > in case of high order page is not available at the moment. > > https://jira.sw.ru/browse/HCI-53 > Signed-off-by: Oleg Babin <[email protected]> > ---
017c59c042d01fc84cae7a8ea475861e702c77ab Author: Akash Goel <[email protected]> Date: Fri Sep 2 21:47:38 2016 +0200 relay: Use per CPU constructs for the relay channel buffer pointers relay essentially needs to maintain a per CPU array of channel buffer pointers but it manually creates that array. Instead its better to use the per CPU constructs, provided by the kernel, to allocate & access the array of pointer to channel buffers. Signed-off-by: Akash Goel <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
