Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1981771
  • 博文数量: 593
  • 博客积分: 20034
  • 博客等级: 上将
  • 技术积分: 6779
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-06 14:07
文章分类

全部博文(593)

文章存档

2016年(1)

2011年(101)

2010年(80)

2009年(10)

2008年(102)

2007年(16)

2006年(283)

我的朋友

分类:

2006-05-27 00:02:07

Using Raw Disk I/O

There are three ways in which a program might access disk in raw mode:

  • Block raw-disk-device special files have names of the form /dev/hdiskn, and are used by some subsystems. These devices should not be used by application programs.
  • Character raw-disk-device special files have names of the form /dev/rhdiskn. Use of these devices by application programs is not recommended. If you decide to use this technique, make sure that no AIX logical volumes occupy any part of the physical disk drive being accessed. The performance effect of interaction between raw access and file-system access to the same physical drive is unpredictable. Make sure you do not overwrite the first 512 bytes of the disk since that is where the physical volume ID is stored.
  • A logical volume on which no file system has been created can be accessed in raw mode. All writes, reads, lseeks, etc. must be in multiples of 512 bytes. The least important consequence of violating this rule is serious performance degradation.
阅读(725) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~