def AllocMem_to_kB(AllocMem):
	"""Convert the AllocMem string to bytes, an int.

	AllocMem is a string from `scontrol show node'. Since, comparing to 
	/proc/meminfo, RealMemory MB is 10**3 kB (and NOT 2**10 kB), this assumes 
	slurm is treating AllocMem the same.
	"""
	try:
		return int(AllocMem)*1000
	except (ValueError,__HOLE__):
		raise Exception("un-parsable MaxRSS [%r]" % MaxRSS)
dataset/ETHPy150Open fasrc/slurmmon/lib/python/site-packages/slurmmon/__init__.py/AllocMem_to_kB