Hi Sage,
This is the mempool dump of my osd.1
ceph daemon osd.0
dump_mempools {"bloom_filter": { "items": 0, "bytes": 0 }, "bluestore_alloc": { "items": 10301352, "bytes": 10301352 }, "bluestore_cache_data": { "items": 0, "bytes": 0 }, "bluestore_cache_onode": { "items": 386, "bytes": 145136 }, "bluestore_cache_other": { "items": 91914, "bytes": 779970 }, "bluestore_fsck": { "items": 0, "bytes": 0 }, "bluestore_txc": { "items": 16, "bytes": 7040 }, "bluestore_writing_deferred": { "items": 11, "bytes": 7600020 }, "bluestore_writing": { "items": 0, "bytes": 0 }, "bluefs": { "items": 170, "bytes": 5688 }, "buffer_anon": { "items": 96726, "bytes": 5685575 }, "buffer_meta": { "items": 30, "bytes": 1560 }, "osd": { "items": 72, "bytes": 554688 }, "osd_mapbl": { "items": 0, "bytes": 0 }, "osd_pglog": { "items": 197946, "bytes": 35743344 }, "osdmap": { "items": 8007, "bytes": 144024 }, "osdmap_mapping": { "items": 0, "bytes": 0 }, "pgmap": { "items": 0, "bytes": 0 }, "mds_co": { "items": 0, "bytes": 0 }, "unittest_1": { "items": 0, "bytes": 0 }, "unittest_2": { "items": 0, "bytes": 0 }, "total": { "items": 10696630, "bytes": 60968397 } } And the memory use by
ps: ceph 8173 27.3 41.0 1509892 848768
? Ssl Oct31 419:30 /usr/bin/ceph-osd
--cluster=ceph -i 0 -f --setuser ceph --setgroup ceph
And ceph tell osd.0 heap stats
osd.0 tcmalloc heap stats:------------------------------------------------ MALLOC: 398397808 ( 379.9 MiB) Bytes in use by application MALLOC: + 340647936 ( 324.9 MiB) Bytes in page heap freelist MALLOC: + 32574936 ( 31.1 MiB) Bytes in central cache freelist MALLOC: + 22581232 ( 21.5 MiB) Bytes in transfer cache freelist MALLOC: + 51663048 ( 49.3 MiB) Bytes in thread cache freelists MALLOC: + 3152096 ( 3.0 MiB) Bytes in malloc metadata MALLOC: ------------ MALLOC: = 849017056 ( 809.7 MiB) Actual memory used (physical + swap) MALLOC: + 128180224 ( 122.2 MiB) Bytes released to OS (aka unmapped) MALLOC: ------------ MALLOC: = 977197280 ( 931.9 MiB) Virtual address space used MALLOC: MALLOC: 16765 Spans in use MALLOC: 32 Thread heaps in use MALLOC: 8192 Tcmalloc page size ------------------------------------------------ I have run test for about 10hrs writing,so far no
oom happened.The osd uses 9xxMB memory max and keep stable at around
800-900MB.
I set blue store cache to 100MB by this
config
bluestore_cache_size =
104857600
bluestore_cache_size_hdd = 104857600 bluestore_cache_size_ssd = 104857600 bluestore_cache_kv_max = 103809024 I am not sure how to calculate if it
is right because if i use bluestore_cache_size-512m it would be a negative
value.
Did you mean rocksdb would cost about
512MB memory?
2017-11-01
lin.yunfan
|
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com