]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fadvise hint WILL_NEED when reading encoded osdmaps
authorSage Weil <sage@redhat.com>
Thu, 25 May 2017 19:42:39 +0000 (15:42 -0400)
committerSage Weil <sage@redhat.com>
Fri, 26 May 2017 02:52:33 +0000 (22:52 -0400)
commitc489d451131f539e979a50b77f7c7ac999bb5711
tree231380fd1c0c7307254ba8a68d9bae59afcd59e8
parent73985a5b106eb21b757a329e6f304ae31f5809d3
osd: fadvise hint WILL_NEED when reading encoded osdmaps

This way will ensure we cache data for recent osdmaps if we need to for
the benefit of laggy clients... even if (in bluestore's case)
bluestore_default_buffered_reads = false (it's true by default).  This
should mitigate any tail latency/work even if the osdmap cache size is too
small.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc