> -----Original Message----- > From: ceph-devel-owner@xxxxxxxxxxxxxxx [mailto:ceph-devel- > owner@xxxxxxxxxxxxxxx] On Behalf Of ??? > Sent: Wednesday, November 04, 2015 4:34 PM > To: Gregory Farnum > Cc: ceph-devel@xxxxxxxxxxxxxxx > Subject: Re: ceph encoding optimization > > I agree with pg_stat_t (and friends) is a good first start. > The eversion_t and utime_t are also good choice to start because they are > used at many places. On Ceph Hackathon, Josh Durgin made initial steps in right direction in terms of pg_stat_t encoding and decoding optimization, with the endianness-awareness thing left out. Even in that state, performance improvements offered by this change were huge enough to make it worthwhile. I'm attaching the patch, but please note that this is prototype and based on mid-August state of code, so you might need to take that into account when applying the patch. With best regards / Pozdrawiam Piotr Dałek
Attachment:
0001-prototype-of-fixed-size-encode-decode-for-pg_stat_t.patch
Description: 0001-prototype-of-fixed-size-encode-decode-for-pg_stat_t.patch