]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: limit size of OSDMap cache
authorSage Weil <sage.weil@dreamhost.com>
Sat, 24 Sep 2011 22:16:53 +0000 (15:16 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 24 Sep 2011 22:16:53 +0000 (15:16 -0700)
commit59bcb0deb77a1af6872fbc35dd6c755ad4f79c92
treec834d8edc9b0ea3dd620bf61d1f38efc3125d2f8
parent720788c052e54dcb6e8b80b97567b4b88b9534a6
osd: limit size of OSDMap cache

If we get way way behind on our maps, we may end up with a really large
OSDMap cache because we currently on trim old maps based on
oldest_last_clean, which may be way in the past.  Avoid eating up gobs of
RAM by putting a ceiling on the cache size.  It'll mean more disk IO in
those situations, but it also means that we'll only load up the old maps
that we actually need (not every single one).

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