[DRBD-user] question about specifying CPU masks

Chris Friesen chris.friesen at windriver.com
Mon Mar 9 21:48:17 CET 2020


Hi,

I have a 64-cpu machine.

When running "drbdsetup new-resource blah --cpu-mask=300000003" I got 
the following error in the kernel logs:

Overflow in bitmap_parse(300000003), truncating to 256 bits

Is this expected?  The man page says that the "--cpu-mask" argument 
takes a single hexadecimal number, but if I look at the kernel code for 
__bitmap_parse() code I *think* that the kernel wants to see something 
like "3,00000003" rather than ""300000003" because each chunk (separated 
by commas) can only be 32-bits.

If I run "drbdsetup new-resource blah2 --cpu-mask=3,00000003" then I 
don't see any parsing errors.

Is the documentation for drbdsetup wrong for high-cpu-count machines?

Thanks,
Chris


More information about the drbd-user mailing list