input: backport 'send events one packet at a time' &
'estimate number of events per packet' from 3.0