allow setting of high-water-marks

Signed-off-by: Jan Dvořák <mordae@anilinux.org>