Skip to contentSkip to conversation

client-facing feature bits and pending kernel changes

DISCUSSION Sage Weil 3 participants 8 messages Jan 29, 2016 – Feb 1, 2016

lore
Share & tools
lore

Sage Weil

author
#0 lore raw

Hi Zheng,

We have one feature already merged to ceph.git, CRUSH_TUNABLES5, that's a pretty trivial change to crush/mapper.c that we can add to the kernel.

But there are two more coming:

OSDOPREPLY_ENCODING makes a small change to the OSDOpReply encoding for performance reasons. Here is the PR

	https://github.com/ceph/ceph/pull/7386

The other is the file layout changes, which are much more invovled:

	https://github.com/ceph/ceph/pull/7098

Ideally we'd use the same feature bit for all of these, but it means they all need to upstream into Linux together. Do you see a problem with that? Assuming we get it all ready to go before the next merge window..

The tricky bit is we really need to know that we'll be able to do it together before we cut jewel too and commit to the overlapping feature bits.

sage

#1 lore raw
Quoted 16 lines · Sage Weil

Hi Zheng,

We have one feature already merged to ceph.git, CRUSH_TUNABLES5, that's a pretty trivial change to crush/mapper.c that we can add to the kernel.

But there are two more coming:

OSDOPREPLY_ENCODING makes a small change to the OSDOpReply encoding for performance reasons. Here is the PR

        https://github.com/ceph/ceph/pull/7386

The other is the file layout changes, which are much more invovled:

        https://github.com/ceph/ceph/pull/7098
Quoted 7 lines

Ideally we'd use the same feature bit for all of these, but it means they all need to upstream into Linux together. Do you see a problem with that? Assuming we get it all ready to go before the next merge window..

The tricky bit is we really need to know that we'll be able to do it together before we cut jewel too and commit to the overlapping feature bits.

In the worst case, we could advertise support for the new bit for rbd and not for cephfs - I don't think we ever get/put ceph file layout from/to the wire in the rbd case.

As for the two easy ones (TUNABLES5 in particular), I think we should try and get them in ASAP into 4.5 and then finalize the feature bit arrangement closer to the end of the cycle, if necessary. Otherwise we'll have jewel and no kernel supporting its default tunables.

Thanks,

Ilya

#2 lore raw
Quoted 25 lines · Ilya Dryomov
Quoted 16 lines · Sage Weil

Hi Zheng,

We have one feature already merged to ceph.git, CRUSH_TUNABLES5, that's a pretty trivial change to crush/mapper.c that we can add to the kernel.

But there are two more coming:

OSDOPREPLY_ENCODING makes a small change to the OSDOpReply encoding for performance reasons. Here is the PR

        https://github.com/ceph/ceph/pull/7386

The other is the file layout changes, which are much more invovled:

        https://github.com/ceph/ceph/pull/7098
Quoted 7 lines

Ideally we'd use the same feature bit for all of these, but it means they all need to upstream into Linux together. Do you see a problem with that? Assuming we get it all ready to go before the next merge window..

The tricky bit is we really need to know that we'll be able to do it together before we cut jewel too and commit to the overlapping feature bits.

Quoted 8 lines

In the worst case, we could advertise support for the new bit for rbd and not for cephfs - I don't think we ever get/put ceph file layout from/to the wire in the rbd case.

As for the two easy ones (TUNABLES5 in particular), I think we should try and get them in ASAP into 4.5 and then finalize the feature bit arrangement closer to the end of the cycle, if necessary. Otherwise we'll have jewel and no kernel supporting its default tunables.

To that end, I've pulled crush changes into the kernel client, aiming for -rc3.

Thanks,

Ilya

#3 lore raw
In reply to Sage Weil
Quoted 7 lines · Sage Weil

Hi Zheng,

We have one feature already merged to ceph.git, CRUSH_TUNABLES5, that's a pretty trivial change to crush/mapper.c that we can add to the kernel.

But there are two more coming:

Quoted 8 lines

OSDOPREPLY_ENCODING makes a small change to the OSDOpReply encoding for performance reasons. Here is the PR

        https://github.com/ceph/ceph/pull/7386

The other is the file layout changes, which are much more invovled:

        https://github.com/ceph/ceph/pull/7098

Can we avoid changing how file layout is encoded in MClientCaps and MClientReply? Instead, we encode the namespace information at the end of MClientCaps/MClientReply message. (like how we added inline data related fields to these message).

Regards
Yan, Zheng

Quoted 14 lines

Ideally we'd use the same feature bit for all of these, but it means they all need to upstream into Linux together. Do you see a problem with that? Assuming we get it all ready to go before the next merge window..

The tricky bit is we really need to know that we'll be able to do it together before we cut jewel too and commit to the overlapping feature bits.

sage
--
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

author
#4 lore raw
Quoted 13 lines · Zheng
Quoted 12 lines · Sage Weil

Hi Zheng,

We have one feature already merged to ceph.git, CRUSH_TUNABLES5, that's a pretty trivial change to crush/mapper.c that we can add to the kernel.

But there are two more coming:

OSDOPREPLY_ENCODING makes a small change to the OSDOpReply encoding for performance reasons. Here is the PR

        https://github.com/ceph/ceph/pull/7386
Quoted 8 lines
Quoted 3 lines

The other is the file layout changes, which are much more invovled:

        https://github.com/ceph/ceph/pull/7098

Can we avoid changing how file layout is encoded in MClientCaps and MClientReply? Instead, we encode the namespace information at the end of MClientCaps/MClientReply message. (like how we added inline data related fields to these message).

Hmm.. yeah, we do that, at least for MClientCaps. It just means that if we ever add more fields to that struct we need to maintain the message encoding in parallel by hand, but that shouldn't be too bad.

The MClientReply one is a bit trickier because there can be N instances of InodeStat (or whatever) in there... on that one I'd lean toward switching the encoding. What do you think?

sage

#5 lore raw
Quoted 23 lines · Sage Weil
Quoted 13 lines · Zheng
Quoted 12 lines · Sage Weil

Hi Zheng,

We have one feature already merged to ceph.git, CRUSH_TUNABLES5, that's a pretty trivial change to crush/mapper.c that we can add to the kernel.

But there are two more coming:

OSDOPREPLY_ENCODING makes a small change to the OSDOpReply encoding for performance reasons. Here is the PR

        https://github.com/ceph/ceph/pull/7386
Quoted 8 lines
Quoted 3 lines

The other is the file layout changes, which are much more invovled:

        https://github.com/ceph/ceph/pull/7098

Can we avoid changing how file layout is encoded in MClientCaps and MClientReply? Instead, we encode the namespace information at the end of MClientCaps/MClientReply message. (like how we added inline data related fields to these message).

Quoted 8 lines

Hmm.. yeah, we do that, at least for MClientCaps. It just means that if we ever add more fields to that struct we need to maintain the message encoding in parallel by hand, but that shouldn't be too bad.

The MClientReply one is a bit trickier because there can be N instances of InodeStat (or whatever) in there... on that one I'd lean toward switching the encoding. What do you think?

We can use conection's features to decide how many memory each InodeStat uses. It's how inline data was added to InodeStat

Regards
Yan, Zheng

#6 lore raw
In reply to Yan, Zheng
Quoted 13 lines · Zheng
Quoted 12 lines · Sage Weil

Hi Zheng,

We have one feature already merged to ceph.git, CRUSH_TUNABLES5, that's a pretty trivial change to crush/mapper.c that we can add to the kernel.

But there are two more coming:

OSDOPREPLY_ENCODING makes a small change to the OSDOpReply encoding for performance reasons. Here is the PR

        https://github.com/ceph/ceph/pull/7386
Quoted 8 lines
Quoted 3 lines

The other is the file layout changes, which are much more invovled:

        https://github.com/ceph/ceph/pull/7098

Can we avoid changing how file layout is encoded in MClientCaps and MClientReply? Instead, we encode the namespace information at the end of MClientCaps/MClientReply message. (like how we added inline data related fields to these message).

see

https://github.com/ukernel/ceph/commit/930c4982e9fda9e894dda9d5c91d17a7bed1b13a
https://github.com/ceph/ceph-client/commit/4cc460f0d57ca735bf484e63fcde917827c1775b

patch for kernel is small. should be OK for 4.5-rc

Regards
Yan, Zheng

Quoted 18 lines

Regards
Yan, Zheng

Quoted 14 lines

Ideally we'd use the same feature bit for all of these, but it means they all need to upstream into Linux together. Do you see a problem with that? Assuming we get it all ready to go before the next merge window..

The tricky bit is we really need to know that we'll be able to do it together before we cut jewel too and commit to the overlapping feature bits.

sage
--
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

author
#7 lore raw
Quoted 23 lines · Zheng
Quoted 13 lines · Zheng
Quoted 12 lines · Sage Weil

Hi Zheng,

We have one feature already merged to ceph.git, CRUSH_TUNABLES5, that's a pretty trivial change to crush/mapper.c that we can add to the kernel.

But there are two more coming:

OSDOPREPLY_ENCODING makes a small change to the OSDOpReply encoding for performance reasons. Here is the PR

        https://github.com/ceph/ceph/pull/7386
Quoted 8 lines
Quoted 3 lines

The other is the file layout changes, which are much more invovled:

        https://github.com/ceph/ceph/pull/7098

Can we avoid changing how file layout is encoded in MClientCaps and MClientReply? Instead, we encode the namespace information at the end of MClientCaps/MClientReply message. (like how we added inline data related fields to these message).

Quoted 6 lines

see

https://github.com/ukernel/ceph/commit/930c4982e9fda9e894dda9d5c91d17a7bed1b13a
https://github.com/ceph/ceph-client/commit/4cc460f0d57ca735bf484e63fcde917827c1775b

patch for kernel is small. should be OK for 4.5-rc

Cool, sounds good to me, then! I'll squash the ceph.git patch down into the original commit(s) in wip-file-layout.

sage