Closed
Bug 880435
Opened 12 years ago
Closed 12 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•12 years ago
|
OS: Windows 8 → Linux
Hardware: x86_64 → All
Updated•12 years ago
|
Attachment #763694 -
Flags: review?(benjamin) → review?(mh+mozilla)
Comment 2•12 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•12 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•12 years ago
|
||
Comment 5•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•