On Thu, Feb 2, 2023 at 10:32 PM Christoph Lameter <cl@xxxxxxxxx> wrote: > > 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. It is multiplied in pcpu_obj_full_size(). -- Regards Yafang