added parameter for changing units of memory pressure