From: Alexandre DERUMIER Subject: Re: Ceph Hackathon: More Memory Allocator Testing Date: Sun, 23 Aug 2015 15:12:57 +0200 (CEST) Message-ID: <316455461.43834300.1440335577243.JavaMail.zimbra@oxygem.tv> References: <55D409F0.3050802@redhat.com> <755F6B91B3BE364F9BCA11EA3F9E0C6F2CE12966@SACMBXIP01.sdcorp.global.sandisk.com> <755F6B91B3BE364F9BCA11EA3F9E0C6F2CE1DC70@SACMBXIP01.sdcorp.global.sandisk.com> <2058625694.43353019.1440262638523.JavaMail.zimbra@oxygem.tv> <755F6B91B3BE364F9BCA11EA3F9E0C6F2CE1FD73@SACMBXIP01.sdcorp.global.sandisk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mailpro.odiso.net ([89.248.209.98]:51371 "EHLO mailpro.odiso.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753111AbbHWNNA convert rfc822-to-8bit (ORCPT ); Sun, 23 Aug 2015 09:13:00 -0400 In-Reply-To: <755F6B91B3BE364F9BCA11EA3F9E0C6F2CE1FD73@SACMBXIP01.sdcorp.global.sandisk.com> Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Somnath Roy Cc: Sage Weil , Milosz Tanski , Shishir Gowda , Stefan Priebe , Mark Nelson , ceph-devel >>I am not sure in your case the benefit you are seeing is because of q= emu is more efficient with tcmalloc/jemalloc or the entire client stack= ?=20 =46rom my test, qemu, fio or "rados bench" are more efficient with tcma= lloc/jemmaloc when using librbd. =46or qemu, I don't see any difference with other backends (iscsi,nfs,l= ocal), only rbd backend have a big difference when using another memory= allocator. Here some qemu results (1disk / 1 iothread): glibc malloc ------------ 1 disk 29052 2 disks 55878 4 disks 127899 8 disks 240566 15 disks 269976 jemalloc -------- 1 disk 41278 2 disks 75781 4 disks 195351 8 disks 294241 15 disks 298199 tcmalloc default cache (increasing threads hit tcmalloc bug) ---------------------------- 1 disk 37911 2 disks 67698 4 disks 41076 8 disks 43312 15 disks 37569 tcmalloc : 256M cache --------------------------- 1 disk 33914 2 disks 58839 4 disks 148205 8 disks 213298 15 disks 218383 ----- Mail original ----- De: "Somnath Roy" =C3=80: "aderumier" Cc: "Sage Weil" , "Milosz Tanski" = , "Shishir Gowda" , "Stefan Priebe" , "Mark Nelson" , "ceph-devel" Envoy=C3=A9: Samedi 22 Ao=C3=BBt 2015 19:03:41 Objet: RE: Ceph Hackathon: More Memory Allocator Testing Need to see if client is overriding the libraries built with different = malloc libraries I guess..=20 I am not sure in your case the benefit you are seeing is because of qem= u is more efficient with tcmalloc/jemalloc or the entire client stack ?= =20 -----Original Message-----=20 =46rom: Alexandre DERUMIER [mailto:aderumier@odiso.com]=20 Sent: Saturday, August 22, 2015 9:57 AM=20 To: Somnath Roy=20 Cc: Sage Weil; Milosz Tanski; Shishir Gowda; Stefan Priebe; Mark Nelson= ; ceph-devel=20 Subject: Re: Ceph Hackathon: More Memory Allocator Testing=20 >>Wanted to know is there any reason we didn't link client libraries wi= th tcmalloc at the first place (but did link only OSDs/mon/RGW) ?=20 Do we need to link client librairies ?=20 I'm building qemu with jemalloc , and it's seem to be enough.=20 ----- Mail original -----=20 De: "Somnath Roy" =20 =C3=80: "Sage Weil" , "Milosz Tanski" =20 Cc: "Shishir Gowda" , "Stefan Priebe" , "aderumier" , "Mark Nelson" , "ceph-devel" =20 Envoy=C3=A9: Samedi 22 Ao=C3=BBt 2015 18:15:36=20 Objet: RE: Ceph Hackathon: More Memory Allocator Testing=20 Yes, even today rocksdb also linked with tcmalloc. It doesn't mean all = the application using rocksdb needs to be built with tcmalloc.=20 Sage,=20 Wanted to know is there any reason we didn't link client libraries with= tcmalloc at the first place (but did link only OSDs/mon/RGW) ?=20 Thanks & Regards=20 Somnath=20 -----Original Message-----=20 =46rom: Sage Weil [mailto:sage@newdream.net]=20 Sent: Saturday, August 22, 2015 6:56 AM=20 To: Milosz Tanski=20 Cc: Shishir Gowda; Somnath Roy; Stefan Priebe; Alexandre DERUMIER; Mark= Nelson; ceph-devel=20 Subject: Re: Ceph Hackathon: More Memory Allocator Testing=20 On Fri, 21 Aug 2015, Milosz Tanski wrote:=20 > On Fri, Aug 21, 2015 at 12:22 AM, Shishir Gowda=20 > wrote:=20 > > Hi All,=20 > >=20 > > Have sent out a pull request which enables building librados/librbd= with either tcmalloc(as default) or jemalloc.=20 > >=20 > > Please find the pull request @=20 > > https://github.com/ceph/ceph/pull/5628=20 > >=20 > > With regards,=20 > > Shishir=20 >=20 > Unless I'm missing something here, this seams like the wrong thing to= =2E=20 > Libraries that will be linked in by other external applications shoul= d=20 > not have a 3rd party malloc linked in there. That seams like an=20 > application choice. At the very least the default should not be to=20 > link in a 3rd party malloc.=20 Yeah, I think you're right.=20 Note that this isn't/wasn't always the case, though.. on precise, for i= nstance, libleveldb links libtcmalloc. They stopped doing this sometime= before trusty.=20 sage=20 ________________________________=20 PLEASE NOTE: The information contained in this electronic mail message = is intended only for the use of the designated recipient(s) named above= =2E If the reader of this message is not the intended recipient, you ar= e 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) immed= iately and destroy any and all copies of this message in your possessio= n (whether hard copies or electronically stored copies).=20 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html