Bug 456027 - readahead should use O_NOATIME while opening the files
readahead should use O_NOATIME while opening the files
Product: Fedora
Classification: Fedora
Component: readahead (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Karel Zak
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-07-20 19:54 EDT by Arjan van de Ven
Modified: 2008-07-22 04:13 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-07-22 04:13:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Arjan van de Ven 2008-07-20 19:54:59 EDT
Description of problem:

the readahead program currently doesn't use O_NOATIME while opening the files to
read ahead... this has 2 effects
1) the atime changes, potentially impacting backup and other tools that think
files are used more than they maybe are
2) about 5 seconds afterwards, kjournald starts writing the new dirty inodes out
to disk, slowing things down unneeded.

Fix is easy, just add "| O_NOATIME" to the open flags...
Comment 1 Karel Zak 2008-07-21 04:13:07 EDT
Ah... excellent idea. Thanks.
Comment 2 Karel Zak 2008-07-22 04:13:41 EDT
Fixed in upstream, rawhide and F-9.

Note You need to log in before you can comment on or make changes to this bug.