Hi, all

There is a small bug fixing in KeyValueStore to prevent osd crash

When run random write 4k test on rbd with KeyValueStore backend, random osd 
crashes, and ceph-osd.log shows a segmentation fault which caused by multi 
threads updating the strip_header->buffers, so add mutex here

Another problem is after running pretty long time, osd being killed by os due 
to OOM, which is also caused by there is no eviction mechanism in 
strip_header->buffers, so add a option in config_opts.h to turn 
strip_header->buffers off by default

I saw slight performance drop when turn off the strip_header->buffers in a 
short time test( for I can't run a long time test due to osd will crash ), so 
does the strip_header->buffers necessary? If so, can I add a random cache 
mechanism on that? 

===========================
KeyValueStore: 
Add mutex when update strip_header->buffers to avoid segmentation fault
Add option in config_opts.h to turn on/off strip_header->buffers to prevent OOM

The pull request : https://github.com/ceph/ceph/pull/2875#issue-48042745



Best Regards,
-Chendi

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to