| title | Linux Platform Support |
|---|---|
| description | Complete Linux platform implementation details for all distributions |
| weight | 72 |
Complete Linux platform implementation details.
All modern Linux distributions are supported:
- Ubuntu, Debian, Linux Mint
- RHEL, CentOS, Rocky Linux, AlmaLinux
- Fedora, openSUSE
- Arch Linux, Manjaro
- Alpine Linux
- And any distribution with standard
/procand/sysfilesystems
/etc/os-release- OS name and version/proc/version- Kernel informationunamecommand - Kernel release and architecture/sys/class/dmi/id/- Virtualization detection (DMI/SMBIOS)/sys/hypervisor/type- Hypervisor type/proc/self/cgroup- Container and cgroup detection/.dockerenv- Docker detection/run/secrets/kubernetes.io- Kubernetes detection
/proc/stat- CPU time counters (8 fields)/proc/cpuinfo- CPU model and core count- Supports: user, system, idle, iowait, irq, softirq, steal, guest
/proc/meminfo- Complete memory statistics- Reports: total, free, available, used, buffers, cached
- Swap: total, free, used
/proc/loadavg- Load average (1, 5, 15 minutes)
/proc/uptime- Boot time calculation
/proc/mounts- Mounted filesystemsdfcommand - Filesystem usage/proc/diskstats- Disk I/O statistics
/proc/net/dev- Interface statistics/proc/net/tcp,/proc/net/udp- Connection statistics/sys/class/net/*/- Interface type and status
- Cgroup v1:
/sys/fs/cgroup/cpu/,/sys/fs/cgroup/memory/ - Cgroup v2:
/sys/fs/cgroup/ - CPU quota, usage, throttling
- Memory limits, usage, OOM kills
Standard user access is sufficient. All files are world-readable:
ls -l /proc/stat /proc/meminfo /proc/cpuinfo
# -r--r--r-- (world-readable)Inside containers (Docker/Kubernetes):
/procis typically mounted- Some
/syspaths may be restricted /sys/class/dmi/id/often unavailable (no hardware info)- Cgroup paths show container-specific values
- Minimum: Linux 2.6+ (ancient, any modern system works)
- Recommended: Linux 3.x+ for full cgroup support
- Best: Linux 4.x+ for cgroup v2 support
Very minimal containers (e.g., FROM scratch) may lack:
/etc/os-release→ OS detection fails gracefully/proc/diskstats→ Disk I/O unavailable- Cgroup paths → Container metrics unavailable
- AppArmor/SELinux may restrict
/procaccess - Usually not an issue with standard policies
- CPU: ~1ms (single
/proc/statread) - Memory: ~1ms (single
/proc/meminforead) - Environment: ~5ms (multiple file reads, cached after first call)
/proc/stat: ~1-5 KB/proc/meminfo: ~1-2 KB/proc/cpuinfo: ~5-20 KB (varies by CPU count)
Tested on:
- Ubuntu 20.04, 22.04, 24.04
- Debian 11, 12
- CentOS 7, 8
- Alpine Linux 3.18
- Arch Linux (rolling)