please add some comments before this function, indicating the units returned (kb, mb ...)