Linux: Accessing Files With O_DIRECT

  2007-01-12 02:30:02
A thread on the lkml began with a query about using O_DIRECT when opening a file. An earlywhite paper written by Andrea Arcangeli [interview] to describe the O_DIRECT patch before it was merged into the 2.4 kernel explains,"with O_DIRECT the kernel will do DMA directly from/to the physical memory pointed [to] by the userspace buffer passed as [a] parameter to the read/write syscalls. So there will be no CPU and memory bandwidth spent in the copies between userspace memory and kernel cache, and there will be no CPU time spent in kernel in the management of the cache (like cache lookups, per-page locks etc..)." 
  PNG Image  PNG Image  PNG Image
  Related tags  


This particular article has been collected via RSS syndication. We apologize if it's too brief.
If You wish to publish articles on LinuxStreet.net please contact us.


  Similar articles found on LinuxStreet  
ImageLinux: Files as Directories
ImageUse xfs_fsr to keep your XFS filesystem optimal
ImageThe eyeOS: A Review
ImageBash Script To Access Wikipedia
ImageAccessing Windows Resources from a Linux Desktop
ImageUsing 'ls' and 'xargs' to manage large numbers of files
ImageAccessing Windows Or Samba Shares Using AutoFS
ImageXen LiveCDs: Xenoppix versus Knoppix
ImageBash Script To Get You Your Daily Farmer's Almanac Information
ImageFSlint: annoyingly vague, but useful

Leave a comment on this article


Captcha

  
Check this if the code you see is not readable and resubmit the form.
(Data you entered will be preserved)



  

Comments (0)