110. .proc.meminfo

SCR Agent for reading /proc/meminfo

110.1. Description

Returns a map. Keys for the map are: "mem", "swap", "memtotal", "memfree", "memshared", "buffers", "cached", "swaptotal", "swapfree". Values for all but "mem", "swap" are the respective size in kB. The values for "mem" and "swap" are again maps. Their keys are: "total", "used", "free", "shared", "buffers", "cached"

Access type: read-only

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

See: anyagent libscr

110.2. Usage

Example 63. 

Read(.proc.meminfo)
($["buffers":26252, 
   "cached":82764, 
   "mem":$["buffers":26882048, 
           "cached":84750336, 
           "free":8835072, 
           "shared":0, 
           "total":268005376, 
           "used":259170304], 
   "memfree":8628, 
   "memshared":0, "memtotal":261724, 
   "swap":$["free":271425536, 
            "total":271425536, 
            "used":0]
])