前へ|次へ|戻る

see part of /proc

/proc

system

proc ファイルシステムを 眺めておきましょう。全てで は有りません 概略 この様な ものが 見えるかも しれません 数字の ものは 省 いて 有ります。

# ls /proc/ 
         execdomains  ksyms       scsi/
apm      filesystems  loadavg     self@
asound/  fs/          locks       slabinfo
bus/     ide/         meminfo     stat
cmdline  interrupts   misc        swaps
cpuinfo  iomem        modules     sys/
devices  ioports      mounts@     sysvipc/
dma      irq/         net/        tty/
dri/     kcore        partitions  uptime
driver/  kmsg         pci         version
# cat -v /proc/apm 
1.16 1.2 0x03 0x01 0xff 0x80 -1% -1 ?
# ls /proc/asound/
ES1869@  card0/  cards  devices  hwdep  modules  oss/  pcm  seq/  timers  version
# cat -v  /proc/asound/cards
0 [ES1869         ]: ES1869 - ESS AudioDrive ES1869
                     ESS AudioDrive ES1869 at 0x220, irq 5, dma1 1, dma2 0
# cat -v  /proc/asound/modules 
0 snd-es18xx
# cat -v  /proc/asound/version 
Advanced Linux Sound Architecture Driver Version 1.0.7.
Compiled on Feb  6 2006 for kernel 2.4.22 with versioned symbols.
# cat -v /proc/cmdline 
root=/dev/sda5
# cat -v /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Pentium III (Coppermine)
stepping        : 1
cpu MHz         : 696.978
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca \
cmov pat pse36 mmx fxsr sse
bogomips        : 1389.36
# cat -v /proc/devices 
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 ttyS
  5 cua
  7 vcs
 10 misc
 14 sound
 21 sg
116 alsa
128 ptm
136 pts
162 raw
226 drm

Block devices:
  1 ramdisk
  2 fd
  3 ide0
  7 loop
  8 sd
 22 ide1
 43 nbd
 65 sd
 66 sd
# cat -v /proc/dma     
 0: ES18xx DMA 2
 1: ES18xx DMA 1
 4: cascade

うへに

# cat -v  /proc/dri/0/mem     
                  total counts                   |    outstanding  
type       alloc freed fail     bytes      freed | allocs      bytes

system        0     0    0     256632 kB         |
locked        0     0    0          0 kB         |

dmabufs       0     0    0          0          0 |      0          0
sareas        0     0    0          0          0 |      0          0
driver        0     0    0          0          0 |      0          0
magic         0     0    0          0          0 |      0          0
ioctltab      0     0    0          0          0 |      0          0
maplist       1     0    0          4          0 |      1          4
vmalist       0     0    0          0          0 |      0          0
buflist       0     0    0          0          0 |      0          0
seglist       0     0    0          0          0 |      0          0
pagelist      0     0    0          0          0 |      0          0
files         0     0    0          0          0 |      0          0
queues        0     0    0          0          0 |      0          0
commands      0     0    0          0          0 |      0          0
mappings      0     0    0          0          0 |      0          0
buflists      0     0    0          0          0 |      0          0
agplist       1     0    0         72          0 |      1         72
totalagp      0     0    0          0          0 |      0          0
boundagp      0     0    0          0          0 |      0          0
ctxbitmap     1     0    0       4096          0 |      1       4096
stub          1     0    0        192          0 |      1        192
# cat -v  /proc/dri/0/name 
radeon 0xe200
# cat -v /proc/driver/snd-page-alloc 
pages  : 196608 bytes (48 pages per 4kB)
# cat -v /proc/execdomains 
0-0     Linux                   [kernel]
# cat -v /proc/filesystems 
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   tmpfs
nodev   shm
nodev   pipefs
nodev   binfmt_misc
        ext3
        ext2
nodev   ramfs
        iso9660
nodev   nfs
nodev   autofs
nodev   devpts
-----------------------
# mount -t ufs -ro ufstype=44bsd /dev/sdd9 /mnt/
# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   3163020   1541396  68% /
/dev/sda8              2822080    890212   1788512  34% /var/data
/dev/sdd9              5286238   1282442   3580900  27% /mnt
# cat -v /proc/filesystems 
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   tmpfs
nodev   shm
nodev   pipefs
nodev   binfmt_misc
        ext3
        ext2
nodev   ramfs
        iso9660
nodev   nfs
nodev   autofs
nodev   devpts
        ufs
==========================
# umount /mnt/
# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   3163020   1541396  68% /
/dev/sda8              2822080    890212   1788512  34% /var/data
# lsmod
Module                  Size  Used by    Not tainted
ufs                    47136   0  (autoclean)
snd-es18xx             16688   0 
snd-pcm                55616   0  [snd-es18xx]
snd-pnp                 3360   0  [snd-es18xx]
isa-pnp                27812   0  [snd-es18xx snd-pnp]
snd-opl3-lib            5700   0  [snd-es18xx]
snd-timer              14340   0  [snd-pcm snd-opl3-lib]
snd-hwdep               4480   0  [snd-opl3-lib]
snd-mpu401-uart         3008   0  [snd-es18xx]
snd-rawmidi            12544   0  [snd-mpu401-uart]
snd-seq-device          3912   0  [snd-opl3-lib snd-rawmidi]
snd                    31620   0  [snd-es18xx snd-pcm snd-opl3-lib snd-timer \
snd-hwdep snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               3428   0  [snd]
snd-page-alloc          4548   0  [snd-pcm snd-timer snd-hwdep snd-rawmidi \
snd-seq-device snd]
# cat -v  /proc/fs/nfs/exports 
# Version 1.1
# Path Client(Flags) # IPs
/home/nyan/ntarou       mc.bcnet.ne.jp(rw,root_squash,sync,wdelay) # 192.168.0.7
/home/nyan/ntarou       nl.bcnet.ne.jp(rw,root_squash,sync,wdelay) # 192.168.0.8
/home/nyan/ntarou       192.168.0.9(rw,root_squash,sync,wdelay) # 192.168.0.9
# cat -v /proc/ide/ide0/hda/model  
WDC WD100BA
# cat -v  /proc/ide/ide0/mate   
ide1
# cat -v  /proc/ide/ide0/model 
pci
# cat -v  /proc/ide/ide1/hdc/model 
Compaq CRD-8400B
# cat -v  /proc/ide/drivers 
ide-cdrom version 4.59-ac1
ide-disk version 1.17
ide-default version 0.9.newide
# cat -v  /proc/ide/piix    

Controller: 0

                                Intel PIIX4 Ultra 33 Chipset.
--------------- Primary Channel ---------------- Secondary Channel -------------
                 enabled                          enabled
--------------- drive0 --------- drive1 -------- drive0 ---------- drive1 ------
DMA enabled:    yes              no              yes               no 
UDMA enabled:   yes              no              yes               no 
UDMA enabled:   2                X               2                 X
UDMA
DMA
PIO

うへに

# cat -v /proc/interrupts 
           CPU0       
  0:    2665812          XT-PIC  timer
  1:      22861          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  5:         27          XT-PIC  ES18xx
 11:      35611          XT-PIC  sym53c8xx, eth0, eth1
 12:     771972          XT-PIC  PS/2 Mouse
 14:         29          XT-PIC  ide0
 15:      17433          XT-PIC  ide1
NMI:          0 
ERR:          0
# cat -v /proc/iomem      
00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000c8000-000c97ff : Extension ROM
000c9800-000cbfff : Extension ROM
000e0000-000effff : Extension ROM
000f0000-000fffff : System ROM
00100000-0fffffff : System RAM
  00100000-00250c06 : Kernel code
  00250c07-002be5c3 : Kernel data
10000000-100000ff : Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
  10000000-100000ff : 8139too
40000000-410fffff : PCI Bus #01
  40000000-40ffffff : ATI Technologies Inc 3D Rage Pro AGP 1X/2X
  41000000-41000fff : ATI Technologies Inc 3D Rage Pro AGP 1X/2X
41100000-411fffff : Intel Corp. 82557/8/9 [Ethernet Pro 100]
  41100000-411fffff : e100
41200000-41200fff : Intel Corp. 82557/8/9 [Ethernet Pro 100]
  41200000-41200fff : e100
41300000-41300fff : LSI Logic / Symbios Logic 53c875
41400000-414000ff : LSI Logic / Symbios Logic 53c875
44000000-47ffffff : Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge
fffc0000-ffffffff : reserved
# cat -v  /proc/ioports 
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0220-022f : ES18xx
0268-026f : ES18xx - CTRL
02f8-02ff : serial(auto)
0376-0376 : ide1
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0cf8-0cff : PCI conf1
1000-1fff : PCI Bus #01
  1000-10ff : ATI Technologies Inc 3D Rage Pro AGP 1X/2X
2000-203f : Intel Corp. 82557/8/9 [Ethernet Pro 100]
  2000-203f : e100
2040-205f : Intel Corp. 82371AB/EB/MB PIIX4 USB
2060-206f : Intel Corp. 82371AB/EB/MB PIIX4 IDE
  2060-2067 : ide0
  2068-206f : ide1
2400-24ff : LSI Logic / Symbios Logic 53c875
  2400-247f : sym53c8xx
2800-28ff : Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
  2800-28ff : 8139too
f800-f83f : Intel Corp. 82371AB/EB/MB PIIX4 ACPI
fc00-fc1f : Intel Corp. 82371AB/EB/MB PIIX4 ACPI
# cat -v  /proc/irq/prof_cpu_mask 
ffffffff
# cat -v   /proc/loadavg 
0.05 0.04 0.00 2/81 18670
# cat -v   /proc/locks   
1: POSIX  ADVISORY  WRITE 87 08:05:608814 0 EOF cfe5c1e0 c02a9eb0 cfe5c0c4 00000000 cfe5c1ec
2: FLOCK  ADVISORY  WRITE 68 08:05:963915 0 EOF cfe5c0c0 cfe5c1e4 c02a9eb0 00000000 cfe5c0cc
# cat -v   /proc/meminfo 
        total:    used:    free:  shared: buffers:  cached:
Mem:  263073792 249253888 13819904        0 25559040 121073664
Swap: 57647104  2793472 54853632
MemTotal:       256908 kB
MemFree:         13496 kB
MemShared:           0 kB
Buffers:         24960 kB
Cached:         115508 kB
SwapCached:       2728 kB
Active:         107864 kB
Inactive:       118032 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       256908 kB
LowFree:         13496 kB
SwapTotal:       56296 kB
SwapFree:        53568 kB

うへに

# cat -v   /proc/misc    
175 agpgart
  1 psaux
134 apm_bios
# cat -v   /proc/modules 
snd-es18xx             16688   0
snd-pcm                55616   0 [snd-es18xx]
snd-pnp                 3360   0 [snd-es18xx]
isa-pnp                27812   0 [snd-es18xx snd-pnp]
snd-opl3-lib            5700   0 [snd-es18xx]
snd-timer              14340   0 [snd-pcm snd-opl3-lib]
snd-hwdep               4480   0 [snd-opl3-lib]
snd-mpu401-uart         3008   0 [snd-es18xx]
snd-rawmidi            12544   0 [snd-mpu401-uart]
snd-seq-device          3912   0 [snd-opl3-lib snd-rawmidi]
snd                    31620   0 [snd-es18xx snd-pcm snd-opl3-lib snd-timer \
snd-hwdep snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               3428   0 [snd]
snd-page-alloc          4548   0 [snd-pcm snd-timer snd-hwdep snd-rawmidi \
snd-seq-device snd]
# cat -v /proc/filesystems 
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   tmpfs
nodev   shm
nodev   pipefs
nodev   binfmt_misc
        ext3
        ext2
nodev   ramfs
        iso9660
nodev   nfs
nodev   autofs
nodev   devpts
# cat -v  /proc/net/arp 
IP address       HW type     Flags       HW address            Mask     Device
192.168.0.1      0x1         0x2         00:00:4C:BC:15:B8     *        eth0
# cat -v /proc/partitions 
major minor  #blocks  name

   8     0   39091752 sda
   8     1   10239984 sda1
   8     2     122880 sda2
   8     3   10320896 sda3
   8     4          1 sda4
   8     5    5121008 sda5
   8     6    5119984 sda6
   8     7    5119984 sda7
   8     8    2867184 sda8
   8     9     122864 sda9
   8    10      56304 sda10
   8    16   39091752 sdb
   8    17    5119984 sdb1
   8    18   10240000 sdb2
   8    20          1 sdb4
   8    21    5119984 sdb5
   8    22    5119984 sdb6
   8    23    5119984 sdb7
   8    24    5119984 sdb8
   8    25     204784 sdb9
   8    26     204784 sdb10
   8    27    2841584 sdb11
   8    32   20010816 sdc
   8    33   10064691 sdc1
   8    34    4980150 sdc2
   8    35    4642785 sdc3
   8    36     321300 sdc4
   8    48   20010816 sdd
   8    49    6836208 sdd1
   8    50    6836224 sdd2
   8    51    6337536 sdd3
   8    53     131072 sdd5
   8    54     311920 sdd6
   8    55     262144 sdd7
   8    56     262144 sdd8
   8    57    5370256 sdd9
  22     0     412716 hdc
   3     0    9770544 hda
   3     1     309928 hda1
   3     2    1232280 hda2
   3     3          1 hda3
   3     4    3825360 hda4
   3     5     430888 hda5
   3     6    3968968 hda6

うへに

# cat -v  /proc/pci 
PCI devices found:
  Bus  0, device   0, function  0:
    Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 3).
      Master Capable.  Latency=64.  
      Prefetchable 32 bit memory at 0x44000000 [0x47ffffff].
  Bus  0, device   1, function  0:
    PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 3).
      Master Capable.  Latency=64.  Min Gnt=140.
  Bus  0, device  13, function  0:
    Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 8).
      IRQ 11.
      Master Capable.  Latency=66.  Min Gnt=8.Max Lat=56.
      Non-prefetchable 32 bit memory at 0x41200000 [0x41200fff].
      I/O at 0x2000 [0x203f].
      Non-prefetchable 32 bit memory at 0x41100000 [0x411fffff].
  Bus  0, device  14, function  0:
    SCSI storage controller: LSI Logic / Symbios Logic 53c875 (rev 4).
      IRQ 11.
      Master Capable.  Latency=66.  Min Gnt=17.Max Lat=64.
      I/O at 0x2400 [0x24ff].
      Non-prefetchable 32 bit memory at 0x41400000 [0x414000ff].
      Non-prefetchable 32 bit memory at 0x41300000 [0x41300fff].
  Bus  0, device  15, function  0:
    Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 16).
      IRQ 11.
      Master Capable.  Latency=66.  Min Gnt=32.Max Lat=64.
      I/O at 0x2800 [0x28ff].
      Non-prefetchable 32 bit memory at 0x10000000 [0x100000ff].
  Bus  0, device  20, function  0:
    ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 2).
  Bus  0, device  20, function  1:
    IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 1).
      Master Capable.  Latency=64.  
      I/O at 0x2060 [0x206f].
  Bus  0, device  20, function  2:
    USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 1).
      IRQ 11.
      Master Capable.  Latency=64.  
      I/O at 0x2040 [0x205f].
  Bus  0, device  20, function  3:
    Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 2).
      IRQ 9.
  Bus  1, device   0, function  0:
    VGA compatible controller: ATI Technologies Inc 3D Rage Pro AGP 1X/2X (rev 92).
      IRQ 11.
      Master Capable.  Latency=66.  Min Gnt=8.
      Non-prefetchable 32 bit memory at 0x40000000 [0x40ffffff].
      I/O at 0x1000 [0x10ff].
      Non-prefetchable 32 bit memory at 0x41000000 [0x41000fff].
# cat -v /proc/scsi/sym53c8xx/0
General information:
  Chip sym53c875, device id 0xf, revision id 0x4
  On PCI bus 0, device 14, function 0, IRQ 11
  Synchronous period factor 12, max commands per lun 32

うへに

# cat -v  /proc/scsi/scsi       
Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: I-O DATA Model: HDXG-S80-1       Rev: 110S
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: I-O DATA Model: HDXG-S80-2       Rev: 110S
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 00
  Vendor: I-O DATA Model: HDVS-UM40G-1     Rev: 204M
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 04 Lun: 00
  Vendor: I-O DATA Model: HDVS-UM40G-2     Rev: 204M
  Type:   Direct-Access                    ANSI SCSI revision: 02
# cat -v /proc/stat     
cpu  76665 0 60828 2656034
cpu0 76665 0 60828 2656034
page 168475 199036
swap 1 0
intr 3675621 2793527 25841 0 0 0 27 3 0 0 0 0 36285 802476 0 29 17433
disk_io: (3,0):(15,15,240,0,0) (8,0):(32974,13285,335756,19689,398072)\
 (8,1):(38,38,664,0,0) (8,2):(10,10,128,0,0) (8,3):(22,22,162,0,0) 
ctxt 10141240
btime 1139206127
processes 18718
# cat -v  /proc/swaps 
Filename                        Type            Size    Used    Priority
/dev/sda10                      partition       56296   2728    -1
# cat -v /proc/uptime 
28012.50 26644.99
# cat -v /proc/version 
Linux version 2.4.22 (root@lx) (gcc version 2.95.3 20010315 (release)) #19 Mon Feb 6 14:00:59 JST 2006
# cat -v /proc/tty/driver/serial 
serinfo:1.0 driver:5.05c revision:2001-07-08
0: uart:16550A port:3F8 irq:4 tx:0 rx:0 
1: uart:16550A port:2F8 irq:3 tx:0 rx:0 

うへに

”cat -v /proc/filesystems”が 数回表示してあるが これは ”lsmod”の”ufs 47136 0 (autoclean)” と 言う事を 考慮して見て下さい 不用に なれば 消 えるようです

内容を理解してる理由では 有りません 念の為 見てるだけです!

にゃんたろう 拝!
2006年 2月 6日 (月) 21:57:21 JST 作成


前へ|次へ|戻る

Copyright © 2004.-2007. nyantarou All Rights Reserved.