diff options
| author | Shreyas Siravara <sshreyas@fb.com> | 2017-09-07 15:45:55 -0700 | 
|---|---|---|
| committer | Shreyas Siravara <sshreyas@fb.com> | 2017-09-07 23:04:37 +0000 | 
| commit | 9aca3f636b0fbf3122e6893c9771c08d7eb5c9f6 (patch) | |
| tree | 0322388ba22ac12b84e1edaa8604eef55aa66d72 /tests | |
| parent | dbd30776f26e9c3c0ce1cf8ad66ee95fc1adf484 (diff) | |
posix: fadvise filedescriptors POSIX_FADV_RANDOM to bypass kernel read-size bug
Summary:
- There is a known kernel bug that causes reads to disk to be limited by the RA setting in /sys/block/sd[a-z]/queue/read_ahead_kb.
- The workaround is to fadvise POSIX_FADV_RANDOM on file descriptors before reading.
- This is a port of D4585521 to 3.8
Test Plan: Still need to figure out a good test for this, other than simple inspection.
Reviewers: rwareing, kvigor
Reviewed By: kvigor
Change-Id: I4a307573da620d9a1955fb5f4e8cd67154e11ace
Reviewed-on: https://review.gluster.org/18229
Reviewed-by: Shreyas Siravara <sshreyas@fb.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
