a
    ze[                     @   s   d Z ddlZddlZddlZzedZW n@ eefyj   zedZW n eefyd   dZY n0 Y n0 ej	d ej
 Zee d Zejdjee d d	 ej  ed
 qldS )zpMemory watchdog: periodically read the memory usage of the main test process
and print it out, until terminated.    NSC_PAGESIZESC_PAGE_SIZEi      z$ ... process data size: {data:.1f}G
i   @)data   )__doc__ossystimesysconfZ	page_size
ValueErrorAttributeErrorstdinseekreadZstatmintsplitr   stdoutwriteformatflushsleep r   r   */usr/lib/python3.9/test/memory_watchdog.py<module>   s$   



