A rough discussion of files in the Linux /proc directory

The files in the Linux /proc directory are roughly
the files in the /proc directory are dynamically generated by the current process, and the data in free is from /proc/meminfo. To further study the files in the directory, use the procinfo tool to find the package on the second installation disk.
  
  $ su -
  passWord:
  
  # cp [paht]/procinfo-18-2.i386.rpm /tmp/
  # cd /tmp
  # rpm -ivh procinfo-18-2.i386.rpm
  # which procinfo
  /usr/bin/procinfo
  
  # exit
  $ rpm -ql procinfo
  /usr/bin/lsdev
  /usr/bin/procinfo
  /usr/bin/socklist
  /usr/share/doc/procinfo-18
  /usr/share/doc/procinfo-18/CHANGES
  /usr/share /doc/procinfo-18/README
  /usr/share/man/man8/lsdev.8.gz
  /usr/share/man/man8/procinfo.8.gz
  /usr/share/man/man8/socklist.8.gz
  
  The procinfo package contains the lsdev, socklist, and procinfo commands.
  
  $ lsdev
  $ socklist
  
  focus on procinfo commands
  $ procinfo
  Linux 2.4.18-4SGI_XFS_1.1 (root@permit) (gcc 2.96 20000731 ) #1 1CPU [localhost]
  Memory:--Total-------Used--- --Free-----Shared--Buffers--Cached
  Mem:----384544---252504--132040----0------13920---118872
  Swap:--- 787424----------0-----787424
  
  Bootup:Thu Nov 17 08:37:27 2005---Load average: 0.00 0.02 0.04 1/58 1596
  
  user-----: 0 :00:46.55--0.8%--page in :---138995--disk 1:--14406r---5497w
  nice-----: 0:00:00.68--0.0%--page out: ----32968
  system: 0:00:28.10--0.5%--swap in :--------2
  idle--: 1:38:58.51--98.7%---swap out:- -------0
  uptime: 1:40:13.84------------context :---723115
  
  irq 0:1000601384 timer------------irq 46:1000000000
  irq 1:1000007640 keyboard ------irq 47:1000000000
  irq 2:1000000000 cascade[4]---irq 48:1000000000
  ...................... ...............................................................
  _ .....
  irq 45:1000000000--------irq 91:1000000000 At
  
  the beginning of the physical memory Mem and Swap display similar to free, Bootup refers to the last time the system was started. Load average is the average load in the last 1, 5, and 15 minutes. 1/58 is the number of runnable processes, that is, the total number of processes. The last running process number is 1596.
  
  Time consumed by user (user), system (system), and idle (idle). nice (time spent by user running at lower priority), uptime total time since boot.
  
  page in : The amount of data moved to disk. page out : The amount of data moved off disk.
  swap in : The amount of data swapped from disk to memory. swap out : The amount of data swapped out from memory to disk.
  context : The total number of in and out switches.
  
  disk 1:--14406r---5497w
  The computer has a disk that has been read 14406 times and written 5497 times since the system was started.
  
  irq is the activity information of the connected interrupt device, and
  
  procinfo can display the module information when needed soon. With Chinese help:
  
  $ wman procinfo
  
  ############ procinfo Chinese man ##############
  
  name procinfo
  (process information)
  Function description: Display system status.
  Syntax: procinfo [-abdDfhimsSv][-F <output file>][-n <interval seconds>]
  Supplementary description: The procinfo command reads the relevant data from the /proc directory, and outputs the data to the standard output device after proper arrangement.
  
  Parameters:
  -a Display all information.
  -b Displays the number of blocks in the disk device, not the number of accesses.
  -d Displays the difference between changes in system information per second, not the sum of the values. This parameter must be used in conjunction with the "-f" parameter
  -D. The effect of this parameter is similar to that of specifying the "-d" parameter, but the information of memory and swap files is the sum value.
  -f Enter the full-screen interactive operation interface.
  -F <output file> Save the information status output to a file instead of the default standard output device.
  -h Online help.
  -i Display a complete list of IRQs.
  -m Displays information about system modules and peripherals.


  -n interval seconds> Set the information update speed of the full screen interactive mode, the unit is calculated in seconds.
  -s Display system information such as memory, disk space, IRP and DMA. This is the default value.
  -S When used with the parameter "-d" or "-D", the information is updated every second, regardless of whether the parameter "-n" is used or not.
  -v Display version information.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326437573&siteId=291194637