Shared memory in bytes available to a process.
If the process is controlled by a cgroup, cgroup memory
allocations are used. Assumes that all processes are part
of the same cgroup.
- Returns:
- memory_bytes
int Memory available in bytes.
- Raises:
OSErrorIf cgroup, memory.stat, or memory.usage_in_bytes files exist
but cannot be read.