These functions exist on other unix-alike platforms, but produce an error when called.
Sys.procinfo(procfile)
Sys.cpuinfo()
Sys.meminfo()
Sys.memGB(kind = "MemTotal")
Sys.MIPS()character string specifying which
kind of memory is desired.Sys.*info() functions return a "simple.list",
here basically a named character vector,
(where the names have been filtered through make.names(*,
unique=TRUE) which is of importance for multi-processor or multi-core
CPUs, such that vector can easily be indexed. Sys.memGB() returns available memory in giga bytes [GB];
Sys.MIPS() returns a number giving an approximation of
the Million Iinstructions Per Second that
the CPU processes (using Sys.cpuinfo()["cpu.MHz"]); now,
with multicore systems, the result is often around (but smaller than)
2 * #\{cores\} * clock.rate}.
[object Object]
On multi-processor machines, Sys.cpuinfo() contains each field
for each processor (i.e., names(Sys.cpuinfo()) has
duplicated entries).
Conceivably, the bogoMIPS source code is open and available and could
be built into R.
Sys.ps, etc.
Sys.MIPS() ## just the 'bogomips' from above: Sys.MIPS() / as.numeric(Sys.cpuinfo()["cpu.MHz"]) ## ~~ 2 * #{cores} ((no longer))
## Available Memory -- can be crucial:
Sys.memGB() #- default "MemTotal"
if(Sys.memGB("MemFree") > 16)
message("Be happy! You have more than 16 Gigabytes of free memory")
}