]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: schedule agent from a priority queue
authorSage Weil <sage@inktank.com>
Wed, 12 Feb 2014 20:39:25 +0000 (12:39 -0800)
committerSage Weil <sage@inktank.com>
Sun, 16 Feb 2014 06:09:40 +0000 (22:09 -0800)
commit0dd1e07194996344dd8f744d2026cca4284b475d
tree32f068462a9fa7fd7ec125c1ae02bda01e9f3588
parenta8129829ce5fda788b097dbca39034fa5056cb22
osd: schedule agent from a priority queue

We need to focus agent attention on those PGs that most need it.  For
starters, full PGs need immediate attention so that we can unblock IO.
More generally, fuller ones will give us the best payoff in terms of
evicted data vs effort expended finding candidate objects.

Restructure the agent queue with priorities.  Quantize evict_effort so that
PGs do not jump between priorities too frequently.

Signed-off-by: Sage Weil <sage@inktank.com>
src/common/config_opts.h
src/osd/OSD.cc
src/osd/OSD.h
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h