Closed
Bug 880435
Opened 11 years ago
Closed 11 years ago
readahead is implemented suboptimally on linux
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: taras.mozilla, Assigned: bugzilla)
References
Details
Attachments
(1 file)
807 bytes,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
if (flags & OS_READAHEAD) { readahead(PR_FileDesc2NativeHandle(*_retval), 0, 0); } it should using fadvise(FADV_SEQUENTIAL)
Updated•11 years ago
|
OS: Windows 8 → Linux
Hardware: x86_64 → All
Updated•11 years ago
|
Attachment #763694 -
Flags: review?(benjamin) → review?(mh+mozilla)
Comment 2•11 years ago
|
||
Comment on attachment 763694 [details] [diff] [review] Patch v1 Review of attachment 763694 [details] [diff] [review]: ----------------------------------------------------------------- ::: xpcom/io/nsLocalFileUnix.cpp @@ +401,5 @@ > > #if defined(LINUX) && !defined(ANDROID) > if (flags & OS_READAHEAD) { > + posix_fadvise(PR_FileDesc2NativeHandle(*_retval), 0, 0, > + POSIX_FADV_SEQUENTIAL); For files that are read sequentially, that would work, but for libraries, it would make things worse.
Attachment #763694 -
Flags: review?(mh+mozilla) → review-
Comment 3•11 years ago
|
||
Comment on attachment 763694 [details] [diff] [review] Patch v1 Review of attachment 763694 [details] [diff] [review]: ----------------------------------------------------------------- Oh wait, that's not the code shared with library loading.
Attachment #763694 -
Flags: review- → review+
Assignee | ||
Comment 4•11 years ago
|
||
Try: https://tbpl.mozilla.org/?tree=Try&rev=b99adcace0cd https://hg.mozilla.org/integration/mozilla-inbound/rev/4eb19eba16ea
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4eb19eba16ea
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•