Adding a delay when restarting all OSDs on a host

2014-07-22 Thread Wido den Hollander
Hi, Currently on Ubuntu with Upstart when you invoke a restart like this: $ sudo restart ceph-osd-all It will restart all OSDs at once, which can increase the load on the system a quite a bit. It's better to restart all OSDs by restarting them one by one: $ sudo ceph restart ceph-osd id=X

Re: Adding a delay when restarting all OSDs on a host

2014-07-22 Thread Andrey Korolyov
On Tue, Jul 22, 2014 at 5:19 PM, Wido den Hollander w...@42on.com wrote: Hi, Currently on Ubuntu with Upstart when you invoke a restart like this: $ sudo restart ceph-osd-all It will restart all OSDs at once, which can increase the load on the system a quite a bit. It's better to restart

Re: Adding a delay when restarting all OSDs on a host

2014-07-22 Thread Wido den Hollander
On 07/22/2014 03:48 PM, Andrey Korolyov wrote: On Tue, Jul 22, 2014 at 5:19 PM, Wido den Hollander w...@42on.com wrote: Hi, Currently on Ubuntu with Upstart when you invoke a restart like this: $ sudo restart ceph-osd-all It will restart all OSDs at once, which can increase the load on the

wip-memstore and wip-objectstore

2014-07-22 Thread Sage Weil
Hi Haomai, Do you mind looking at wip-memstore at https://github.com/ceph/ceph/pull/2125 A couple minor fixes and then we can enable it in ceph_test_objectstore. Also, I would love any feedback on wip-objectstore https://github.com/ceph/ceph/pull/2124 That one is RFC at this

Re: Adding a delay when restarting all OSDs on a host

2014-07-22 Thread Andrey Korolyov
On Tue, Jul 22, 2014 at 6:28 PM, Wido den Hollander w...@42on.com wrote: On 07/22/2014 03:48 PM, Andrey Korolyov wrote: On Tue, Jul 22, 2014 at 5:19 PM, Wido den Hollander w...@42on.com wrote: Hi, Currently on Ubuntu with Upstart when you invoke a restart like this: $ sudo restart

Re: wip-memstore and wip-objectstore

2014-07-22 Thread Sage Weil
Hi Haomai, Hmm, one other thing: I'm testing the fix in wip-8701 and it is tripping over the KeyValueStore test. This ./ceph_test_objectstore --gtest_filter=ObjectStore/StoreTest.BigRGWObjectName/1 fails with 0 2014-07-22 08:45:25.640932 7fe617fff700 -1 *** Caught signal (Segmentation

Re: wip-memstore and wip-objectstore

2014-07-22 Thread Haomai Wang
Thanks, I will dive into it and fix it next. On Tue, Jul 22, 2014 at 11:49 PM, Sage Weil sw...@redhat.com wrote: Hi Haomai, Hmm, one other thing: I'm testing the fix in wip-8701 and it is tripping over the KeyValueStore test. This ./ceph_test_objectstore

[PATCH] rbd: Use kmem_cache_free

2014-07-22 Thread Himangi Saraogi
Free memory allocated using kmem_cache_zalloc using kmem_cache_free rather than kfree. The Coccinelle semantic patch that makes this change is as follows: // smpl @@ expression x,E,c; @@ x = \(kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\)(c,...) ... when != x = E when != x

Re: [PATCH] rbd: Use kmem_cache_free

2014-07-22 Thread Ilya Dryomov
On Tue, Jul 22, 2014 at 10:11 PM, Himangi Saraogi himangi...@gmail.com wrote: Free memory allocated using kmem_cache_zalloc using kmem_cache_free rather than kfree. The Coccinelle semantic patch that makes this change is as follows: // smpl @@ expression x,E,c; @@ x =

Re: Disabling CRUSH for erasure code and doing custom placement

2014-07-22 Thread Shayan Saeed
Another question along the same lines. For erasure code, same as replicated files, the request goes through the primary member. Isn't it possible to send the request to any of the members and get the file. While this might have kept things neater on the development side and might have made some

Re: Forcing Ceph into mapping all objects to a single PG

2014-07-22 Thread Alex Elsayed
Gregory Farnum wrote: On Mon, Jul 21, 2014 at 3:27 PM, Daniel Hofmann dan...@trvx.org wrote: Preamble: you might want to read the decent formatted version of this mail at: https://gist.github.com/daniel-j-h/2daae2237bb21596c97d snip aggressively --- Ceph's object mapping depends on the

Re: Forcing Ceph into mapping all objects to a single PG

2014-07-22 Thread Alex Elsayed
Gah, typed fletcher4 when I meant rjenkins - still, the same applies. -- To unsubscribe from this list: send the line unsubscribe ceph-devel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: Cache tiering read-proxy mode

2014-07-22 Thread Alex Elsayed
Sage Weil wrote: [Adding ceph-devel] On Mon, 21 Jul 2014, Wang, Zhiqiang wrote: Sage, I agree with you that promotion on the 2nd read could improve cache tiering's performance for some kinds of workloads. The general idea here is to implement some kinds of policies in the cache tier to

Re: Adding a delay when restarting all OSDs on a host

2014-07-22 Thread Gregory Farnum
On Tue, Jul 22, 2014 at 6:19 AM, Wido den Hollander w...@42on.com wrote: Hi, Currently on Ubuntu with Upstart when you invoke a restart like this: $ sudo restart ceph-osd-all It will restart all OSDs at once, which can increase the load on the system a quite a bit. It's better to restart

Re: wip-memstore and wip-objectstore

2014-07-22 Thread Haomai Wang
Hi sage, The fix is https://github.com/ceph/ceph/pull/2136. :-) On Wed, Jul 23, 2014 at 12:48 AM, Haomai Wang haomaiw...@gmail.com wrote: Thanks, I will dive into it and fix it next. On Tue, Jul 22, 2014 at 11:49 PM, Sage Weil sw...@redhat.com wrote: Hi Haomai, Hmm, one other thing: I'm