120. .proc.meminfo

SCR Agent for reading /proc/meminfo

120.1. Authors

  • Unknown <yast2-hacker@suse.de>

120.2. Description

Returns a map. Keys for the map are: "active", "buffers", "cached", "highfree", "hightotal", "inactive", "lowfree", "lowtotal", "memfree", "memtotal", "swapcached", "swapfree", and "swaptotal". Values for all but "mem", "swap" are the respective size in kB.

Access type: read-only

File Name: /usr/share/YaST2/scrconf/proc_meminfo.scr

See also:

anyagent
libscr

120.3. Usage

Example 68. 

   Read (.proc.meminfo)
	-> $[
		"active":804312,
		"buffers":71292,
		"cached":254736,
		"highfree":0,
		"hightotal":0,
		"inactive":140676,
		"lowfree":9960,
		"lowtotal":1028088,
		"memfree":9960,
		"memtotal":1028088,
		"swapcached":30172,
		"swapfree":2037508,
		"swaptotal":2104472
   	]