Please be careful with that value, it should be the number of available DIA work processes minus a reserve for other stuff that is going on in your system.
Good practice is to call SPBT_INITIALIZE and subtract n from the result in FREE_PBT_WPS.
Thomas