Section 4.2:Top-Level Files in /proc
kstat.inputqueue_no_packet: 0
Some of the more popular statistics include:
•
cpu — Measures the number of jiffies (1/100ths of a second) that the system has been in user
mode, user mode with low priority (nice), system mode, and the idle task, respectively. The total
for all CPUs is given at the top, and each individual CPU is listed below with its own statistics.
•
page — The number of pages the system has paged in and out from disk.
•
swap — The number of swap pages the system has brought in and out.
•
intr — The number of interrupts the system has experienced.
•
btime — The boot time, measured in the number of seconds since January 1, 1970, otherwise
known as the epoch.
4.2.28 /proc/swaps
This file measures swap space and its utilization. For a system with only one swap partition, the output
of /proc/swap may look similar to this:
Filename
Type
/dev/hda6
While some of this information can be found in other /proc files, swap provides for a very quick
snapshot of every swap filename, type of swap space, and total and used sizes (in kilobytes). The
priority column is useful when multiple swap files are in use, and some of them are preferred over
others, such as if they are on faster hard disks. The lower the priority, the more likely the swap file
will be used.
4.2.29 /proc/uptime
This file contains information about how long the system has on since its last restart. The output of
/proc/uptime is quite minimal:
350735.47 234388.90
The first number tells you the total number of seconds the system has been up. The second number
tells you how much of that time, also in seconds, the machine has spent idle.
4.2.30 /proc/version
This files tells you the versions of the Linux kernel and gcc, as well as the version of Red Hat Linux
installed on the system:
Linux version 2.4.2-2 (root@porky.devel.redhat.com) (gcc version 2.96 20000731
(Red Hat Linux 7.1 2.96-79)) #1 Sun Apr 8 20:41:30 EDT 2001
Size Used Priority
partition 136512 20024 -1
77
Need help?
Do you have a question about the LINUX 7.2 and is the answer not in the manual?
Questions and answers