unix.linux.proc vocabulary
Factor handbook > Vocabulary index


Summary
unix.linux.proc vocabulary

Meta-data
Authors:Doug Coleman
Platforms:linux


Words

Tuple classes
ClassSuperclassSlots
pid-stat tuplepid filename state parent-pid group-id session-id terminal# terminal-group-id task-flags #minor-page-faults #minor-page-faults-child #major-page-faults #major-page-faults-child cpu-user cpu-kernel cpu-user-children cpu-kernel-children priority niceness #threads zero0 nanos-since-boot virtual-memory resident-set-size resident-set-limit start-address end-address stack-start-address current-stack-pointer current-instruction-pointer pending-signals blocked-signals ignored-signals handled-signals wait-address zero1 zero2 exit-signal task-cpu realtime-policy policy blkio-ticks guest-time children-guest-time start-data end-data start-brk arg-start arg-end env-start env-end exit-code
proc-cmdline tuplestring
proc-cpu-stat tuplename user nice system idle iowait irq softirq steal guest guest-nice
proc-loadavg tupleload-average-1 load-average-5 load-average-15 #processes-executing #processes-total last-pid
proc-meminfo tuplemem-total mem-free buffers cached swap-cached active inactive active-anon inactive-anon active-file inactive-file unevictable mlocked swap-total swap-free dirty writeback anon-pages mapped shmem slab s-reclaimable s-unreclaimable kernel-stack page-tables nfs-unstable bounce writeback-tmp commit-limit committed-as vmalloc-total vmalloc-used vmalloc-chunk hardware-corrupted anon-huge-pages huge-pages-total huge-pages-free huge-pages-rsvd huge-pages-surp huge-page-size direct-map-4k direct-map-2m
proc-partition tuplemajor minor #blocks name
proc-stat tuplecpu cpus intr ctxt btime processes procs-running procs-blocked softirq
proc-swap tuplefilename type size used priority
proc-uptime tupleup idle
processor-info tupleprocessor vendor-id cpu-family model model-name stepping microcode cpu-mhz cache-size fdiv-bug? hlt-bug? f00f-bug? coma-bug? physical-id siblings core-id cpu-cores apicid initial-apicid fpu? fpu-exception? cpuid-level wp? flags bogomips clflush-size cache-alignment address-sizes power-management tlb-size bugs
unknown-cpuinfo-line tuplestring


Generic words
WordStack effect
proc-pid-path( object string -- path )


Ordinary words
WordStack effect
<proc-cmdline>( string -- proc-cmdline )
active-cpus( -- n )
cpu-counts( seq -- #cpus #cores #hyperthread )
line>cpu( string -- cpu )
line>processor-info( processor-info string -- processor-info )
lines>processor-info( strings -- processor-info )
parse-proc-cmdline( -- obj )
parse-proc-cpuinfo( -- seq )
parse-proc-loadavg( -- obj )
parse-proc-meminfo( -- meminfo )
parse-proc-partitions( -- partitions )
parse-proc-pid-cmdline( pid -- string/f )
parse-proc-pid-stat( pid -- stat )
parse-proc-stat( -- obj )
parse-proc-swaps( -- sequence )
parse-proc-uptime( -- uptime )
proc-file-lines( path -- strings )
proc-first-line( path -- string/f )
proc-pid-first-line( pid string -- string )
sort-cpus( seq -- seq )
unknown-cpuinfo-line( string -- * )


Class predicate words
WordStack effect
pid-stat?( object -- ? )
proc-cmdline?( object -- ? )
proc-cpu-stat?( object -- ? )
proc-loadavg?( object -- ? )
proc-meminfo?( object -- ? )
proc-partition?( object -- ? )
proc-stat?( object -- ? )
proc-swap?( object -- ? )
proc-uptime?( object -- ? )
processor-info?( object -- ? )
unknown-cpuinfo-line?( object -- ? )


Files