This is the approach that Casey and I lean toward, but if the intrusive ptr change is ready now, I'd work on merging it. Matt ----- Original Message ----- > From: "Allen Samuels" <Allen.Samuels@xxxxxxxxxxx> > To: "Sage Weil" <sweil@xxxxxxxxxx>, ceph-devel@xxxxxxxxxxxxxxx > Sent: Thursday, February 4, 2016 5:43:36 PM > Subject: RE: reducing buffer allocations > > Looks like another place for small_vector ;-) > > > Allen Samuels > Software Architect, Fellow, Systems and Software Solutions > > 2880 Junction Avenue, San Jose, CA 95134 > T: +1 408 801 7030| M: +1 408 780 6416 > allen.samuels@xxxxxxxxxxx > > > -----Original Message----- > From: ceph-devel-owner@xxxxxxxxxxxxxxx > [mailto:ceph-devel-owner@xxxxxxxxxxxxxxx] On Behalf Of Sage Weil > Sent: Thursday, February 04, 2016 2:33 PM > To: ceph-devel@xxxxxxxxxxxxxxx > Subject: reducing buffer allocations > > https://github.com/ceph/ceph/pull/5534 > > does two things: (1) combine the buffer::raw reference count and buffer into > a single allocation (ala make_shared), and (2) convert buffer::list into an > intrusive_list, while embedding N (=3) buffer::ptr's in the buffer::raw so > that most buffers require only 1 allocation (provided they aren't on more > than N lists). > > This needs a rebase, and some benchmarking. But before I pull it up, is this > the right direction? I saw little benefit from (2) after doing (1), but I > was doing a really simple microbenchmark. Do we want both, or just 1, or is > there an alternative we should consider? > > sage > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the > body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at > http://vger.kernel.org/majordomo-info.html > PLEASE NOTE: The information contained in this electronic mail message is > intended only for the use of the designated recipient(s) named above. If the > reader of this message is not the intended recipient, you are hereby > notified that you have received this message in error and that any review, > dissemination, distribution, or copying of this message is strictly > prohibited. If you have received this communication in error, please notify > the sender by telephone or e-mail (as shown above) immediately and destroy > any and all copies of this message in your possession (whether hard copies > or electronically stored copies). > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- -- Matt Benjamin Red Hat, Inc. 315 West Huron Street, Suite 140A Ann Arbor, Michigan 48103 http://www.redhat.com/en/technologies/storage tel. 734-707-0660 fax. 734-769-8938 cel. 734-216-5309 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html