Chinaunix首页 | 论坛 | 博客
  • 博客访问: 233978
  • 博文数量: 52
  • 博客积分: 3010
  • 博客等级: 中校
  • 技术积分: 731
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-25 17:46
文章分类
文章存档

2009年(13)

2008年(39)

我的朋友

分类: LINUX

2008-12-07 15:07:33

本人最近会把proc目录详解给大家弄一下,欢迎翻译,有问题则留言。虽然是英文的,但都比较好理解,如有问题,请留言,我们共同为Linux社区而努力。我们翻译效果还不一定好,因为这玩意毕竟是老外搞的吗!!!咯咯,翻译可能引起误解。这玩意看懂需要tcp/ip方面的知识,学好proc对于linux性能优化是非常重要。这来自本人的整理.。/proc/sys/dev主要包含有硬件配置参数的虚拟文件的目录。他因为机器不同而不同,取决于硬件配置和驱动程序的编译。
[root@jiangtao dev]# pwd
/proc/sys/dev
[root@jiangtao dev]# ls -l
总计 0
dr-xr-xr-x 0 root root 0 12-07 14:50 cdrom
dr-xr-xr-x 0 root root 0 12-07 14:50 hpet
dr-xr-xr-x 0 root root 0 12-07 14:50 mac_hid
dr-xr-xr-x 0 root root 0 12-07 14:50 parport
dr-xr-xr-x 0 root root 0 12-07 14:50 raid
dr-xr-xr-x 0 root root 0 12-07 14:50 scsi
 一 cdrom

This directory holds virtual files that reflect the current state of the CD-ROM subsystem.

  1 autoclose

If enabled (1), the drive(s) will close tray upon mount request. It is the default.

 2 autoeject

If enabled (1), the drive(s) will eject media after unmount request. The default is 0 (don't eject on unmount).

 3 check_media

Check media type capability status. Disabled (0) by default.

 4 debug

Turn on (1) or off (0) debugging messages of the CD-ROM device driver. Off by default.

 5 info

This read-only file contains general information about the CD-ROM drives attached to the system.

Example output:

CD-ROM information, Id: cdrom.c 3.20 2003/12/17
 
drive name:             hdd     hdc
drive speed:            0       40
drive # of slots:       1       1
Can close tray:         1       1
Can open tray:          1       1
Can lock tray:          1       1
Can change speed:       1       1
Can select disk:        0       0
Can read multisession:  1       1
Can read MCN:           1       1
Reports media changed:  1       1
Can play audio:         1       1
Can write CD-R:         0       1
Can write CD-RW:        0       1
Can read DVD:           1       1
Can write DVD-R:        0       1
Can write DVD-RAM:      0       0
Can read MRW:           1       1
Can write MRW:          1       1
Can write RAM:          0       1

6 lock

If enabled (1), lock the door on device open. It is the default.


二 hpet

The High Precision Event Timer (HPET) hardware is the future replacement for the 8254 and Real Time Clock (RTC) periodic timer functionality.  It includes max-user-freq;max-user-freq:Allow user to define the upper limit of number of interrupts generated by the HPET driver. The default value is 64.

三 mac_hid:此目录主要是关于鼠标,键盘等一些设置信息

四  parport 

This directory contains information about the parallel ports of your system. It has one subdirectory for each port, named after the port number (0, 1, 2...).

 1 default 

The defaults for spintime(The default forspintime. When a new port is registered, it picks up the default spintime.) and timeslice(The default for timeslice. When a new device is registered, it picks up the default timeslice).

 2 parport0

Collection of files describing first parallel port.(
1> autoprobe:Any IEEE-1284 device ID information that has been acquired from the (non-IEEE 1284.3) device;  2>autoprobe1,2,3,4:IEEE 1284 device ID information retrieved from daisy-chain devices that conform to IEEE 1284.3;  3>devices:Device subdirectory.It includes active(A list of the device drivers using that port. A "+" will appear by the name of the device currently using the port (it might not appear against any). The string "none" means that there are no device drivers using that port.)and lp (Example device subdirectory.It includes timeslice(The number of milliseconds that a device driver is allowed to keep a port claimed for. This is advisory and driver can ignore it if it must.))4>irq :Parallel port's IRQ, or -1 if none is being used.  5>spintime:The number of microseconds to busy-loop while waiting for the peripheral to respond. You might find that adjusting this improves performance, depending on your peripherals. This is a port-wide setting, i.e. it applies to all devices on a particular port.  6>base-addr:Parallel port's base address, or addresses if the port has more than one in which case they are separated with tabs. These values might not have any sensible meaning for some ports; 7>dma :Parallel port's DMA channel, or -1 if none is being used.

8>modes:  Parallel port's hardware modes, comma-separated, meaning:

  • PCSPP - PC-style SPP registers are available.
  • TRISTATE - Port is bidirectional.
  • COMPAT - Hardware acceleration for printers is available and will be used.
  • EPP - Hardware acceleration for EPP protocol is available and will be used.
  • ECP - Hardware acceleration for ECP protocol is available and will be used.
  • DMA - DMA is available and will be used.

Note that the current implementation will only take advantage of COMPAT and ECP modes if it has an IRQ line to use.


五  raid 

The following interfaces can be used to control RAID reconstruction speed.

1 speed_limit_max

RAID reconstruction code is expected to only access disks when there is no disk activity due to applications. With this tunable you can set the maximum speed in KB/s in that case. The default is 200000 KB/s.

 2  speed_limit_min

RAID reconstruction code is expected to only access disks when there is no disk activity due to applications, with a guaranteed minimum set by this tunable (in KB/s). The default value is 1000 KB/s.

六 scsi

Configuration of the SCSI driver.

1 logging_level

This defines the scsi logging feature. It is a means by which the user can select how much information they get about various goings on, and it can be really useful for fault tracing. The logging word is divided into 8 nibbles, each of which describes a loglevel. The division of things is somewhat arbitrary, and the division of the word could be changed if it were really needed for any reason. For more info see /usr/src/linux/drivers/scsi/scsi_logging.h

七 rtc

Configuration of the real time clock (RTC) driver.

  1 max-user-freq

Allow user to define the upper limit of number of interrupts generated by the real time clock driver. The default value is 64.


 

阅读(2169) | 评论(0) | 转发(0) |
0

上一篇:proc /sys/sunrpc 终结版

下一篇:netbios

给主人留下些什么吧!~~