Zum Inhalt springen

procfs

Aus Foxwiki

procfs - Prozessdateisystem (Process filesystem)

Beschreibung

virtuelles Dateisystem auf unixoiden Systemen
  • Anzeige und Änderung von System- und Prozessparametern
/proc

Üblicherweise wird es in der Verzeichnisstruktur unter /proc eingebunden

Linux

Prozesse

Unter Linux erhält jeder Prozess ein Verzeichnis nach dem Format /proc/PID

  • In diesem sind verschiedene virtuelle Dateien enthalten, die Daten über den Prozess bereitstellen

Systeminformationen

procfs stellt zahlreiche Informationen über verschiedenste Teile des Computers zur Verfügung

  • Seit dem Kernel 2.6 werden viele Teile in das ebenfalls virtuelle Dateisystem sysfs verschoben
Beispiel
/proc/cpuinfo Details about the CPU (model, cores, speed)
/proc/meminfo Memory usage (total, Free, buffers)
/proc/stat Overall system stats (CPU, interrupts, context switch)
/proc/uptime System uptime and idle time
/proc/loadavg CPU & I/O utilization average over 1, 5& 15 mins
/proc/version Kernel version and build information
/proc/cmdline Kernel parameters that are passed during boot
/proc/mounts Mounted filesystems (type, mount point)
/proc/swaps Information about activ swap spaces (size, used)
/proc/diskstats I/O stats of each disk (#reads, #writes, time)
/proc/interrupts ofinterrupts received by each CPU
/proc/filesystems Lists supported filesystem types
/proc/net/dev Lists per-interface stats (RX/TX pkts, bytes, errs)
/proc/net/tcp Lists active TCP connections (address, port, queue)
/proc/net/route Displays the kernel's IPv4 routing table
/proc/net/sockstat Socket statistics (allocated, orphaned)
/proc/[PID]/cmdline Command-line arguments used by PID
/proc/[PID]/status Detailed status of PID (state, mem, threads)
/proc/[PID]/io I/O statistics of PID (read/write bytes, syscalls)
/proc/[PID]/fd/ Directory of file descriptors opened by PID
/proc/[PID]/net/ Network-related info of PID (TCP connections)
/proc/sys/net/ipvs/conf/eth0/ IPv4 settings of an interface



Anhang

Siehe auch

Links

Weblinks

  1. Dokumentation von procfs im Linux-Kernel