How to know the hardware buffer size

Yes exactly this. That’s why I’ve set it to 2048 rather than the system value of 512.