On Thu, 2 Feb 2023, Yafang Shao wrote: > + bits = end - bit_off; > + size = bits * PCPU_MIN_ALLOC_SIZE; > + > + return pcpu_obj_full_size(size); Dont you have to multiply by the number of online cpus? The per cpu area are duplicated for those.
On Thu, 2 Feb 2023, Yafang Shao wrote: > + bits = end - bit_off; > + size = bits * PCPU_MIN_ALLOC_SIZE; > + > + return pcpu_obj_full_size(size); Dont you have to multiply by the number of online cpus? The per cpu area are duplicated for those.