in reply to write hash to disk after memory limit

Standard answers (and none of these may be applicable, but you haven't given us much to go on):