Red Hat APPLICATION STACK 1.1 RELEASE Manuale Utente Pagina 12

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 11
4
Chapter 1: Software Overview
Tohelp alleviate this problem,StephenTweedie ofRedHat developed a mechanism that
allows disk I/O directly to a buffer in the application address space (historically known
as raw (or unprocessed) I/O). This mechanism will lock the required pages of memory
to prevent them from being paged out or swapped during the I/O operation.
Applications requiredto performthis typeof disk I/O would openthe characterspecial
device /dev/raw and bind the disk device to a special raw device using an ioctl(2) system
call.
Thismechanism,however,iscumbersometouseandsuffersfromsomedeficiencies.The
primary deficiency with the mechanism comes from its continued use of the file-system
buffer-headerdata structuresandassociateddevicequeueingroutines. Whileuseofthe
buffer headers is a straightforward mechanism, it implies that I/O operations will still
need to be fragmented into 1024-bytes per operation, increasing the kernel overhead
significantly.The bindingmechanism used tobind an existingblockdevice to anew raw
device is also somewhat cumbersome and counterintuitive to Unix system
administrators, who expect to find a relationship in the device namespace between a
block device and its corresponding raw device.
To address these concerns, SGI has added additional capabilities to Stephen Tweedie’s
raw I/O patch that allow large I/O operations directly to the user address space and
bypasses the bulk of the kernel I/O queueing code for SCSI and FiberChannel devices.
You can download a dd command that is capable of using the raw device features from
the following FTP location:
ftp://oss.sgi.com/projects/rawio/download/dd.raw
Thisfeatureis off by default,but youcan turnit onby settingthe CONFIG_RAWkernel
configuration parameter.
More information about raw I/O is available from the following URL:
http://oss.sgi.com/projects/rawio/faq.html
Vedere la pagina 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 29 30

Commenti su questo manuale

Nessun commento