Make ib allocation size function of cs size