properly calculate requrired thread buffers