From: Matt Benjamin Subject: Re: reducing buffer allocations Date: Thu, 4 Feb 2016 18:49:17 -0500 (EST) Message-ID: <862942027.32511349.1454629757280.JavaMail.zimbra@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mx6-phx2.redhat.com ([209.132.183.39]:50833 "EHLO mx6-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750901AbcBDXtU (ORCPT ); Thu, 4 Feb 2016 18:49:20 -0500 In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Allen Samuels Cc: Sage Weil , ceph-devel@vger.kernel.org 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" > To: "Sage Weil" , ceph-devel@vger.kernel.org > 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@SanDisk.com > > > -----Original Message----- > From: ceph-devel-owner@vger.kernel.org > [mailto:ceph-devel-owner@vger.kernel.org] On Behalf Of Sage Weil > Sent: Thursday, February 04, 2016 2:33 PM > To: ceph-devel@vger.kernel.org > 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@vger.kernel.org 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@vger.kernel.org > 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