[ Prev ] [ Index ] [ Next ]

proc

Created Saturday 2/7/2005

The linux kernel provides realtime statistics in the /proc filesystem. Entries such as meminfo, uptime and many more can be a useful diagnostic tool. The entries in /proc are (mostly) plain text and can be read with cat(1). However, some of the enties require privelidged access.

1. Kernel Documentation

The /proc filesystem entries are described (at least in the Fedora Core distribution) in /usr/share/doc/kernel-doc-<version>/filesystems/proc.txt (where <version> is the current kernel version, without the release). E.g., 2.6.11-1.27_FC3 identifies kernel version 2.6.11, release 1.27_FC3.

2. /proc/meminfo

image Todo: Add descriptions for proc entries marked 'Todo'

This entry provides statistics on the distribution and utilization of memory. The entries vary depending on architecture and on the kernel compile options. On a Pentium IV 2.4Ghz with a vanilla 2.6.11 Fedora (FC3) kernel there are 26 meminfo entries. These can be read with cat(1).

bash $ cat /proc/meminfo
MemTotal:      2074672 kB
MemFree:        847464 kB
Buffers:        185288 kB
Cached:         612672 kB
...snip...

Stuart Moorfoot © 2 July 2005 foo@bund.com.au


No backlinks to this page.