TCMalloc : Thread-Caching Malloc

124 views
Skip to first unread message

Joe

unread,
Jan 3, 2011, 6:03:14 AM1/3/11
to lusca-users
any chance to add TCMalloc into lusca source code as alternative
malloc besides dlmalloc ?

Adrian Chadd

unread,
Jan 4, 2011, 4:47:05 AM1/4/11
to lusca...@googlegroups.com
Well, I'm tempted to actually remove dlmalloc entirely from the codebase.
It can be linked in at compile and/or run time.

You can use tcmalloc yourself during build and run. I've done it before myself.
It doesn't have to be in the codebase. :)


Adrian

On 3 January 2011 19:03, Joe <joe....@rocketmail.com> wrote:
> any chance to add TCMalloc into lusca source code as alternative
> malloc besides dlmalloc ?
>

> --
> You received this message because you are subscribed to the Google Groups "lusca-users" group.
> To post to this group, send email to lusca...@googlegroups.com.
> To unsubscribe from this group, send email to lusca-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/lusca-users?hl=en.
>
>

Faysal Banna

unread,
Jan 4, 2011, 6:18:03 AM1/4/11
to lusca...@googlegroups.com
Guys.
One Question.
isn't TCMalloc memory hungry ??? at which limit would the trade of memory vs performance give us a good result???


much regards
--
============================
         Faysal Banna
 Meteorological Services
Rafic Harriri International Airport
      Beirut - Lebanon
    Mob: +961-3-258043
=============================

Joe

unread,
Jan 9, 2011, 9:46:48 PM1/9/11
to lusca-users
how to linked tcmalloc at compile, any hint/clue Adrian ?

On Jan 4, 6:18 pm, Faysal Banna <degre...@gmail.com> wrote:
> Guys.
> One Question.
> isn't TCMalloc memory hungry ??? at which limit would the trade of memory vs
> performance give us a good result???
>
> much regards
>
> On Tue, Jan 4, 2011 at 11:47 AM, Adrian Chadd <adrian.ch...@gmail.com>wrote:
>
>
>
> > Well, I'm tempted to actually remove dlmalloc entirely from the codebase.
> > It can be linked in at compile and/or run time.
>
> > You can use tcmalloc yourself during build and run. I've done it before
> > myself.
> > It doesn't have to be in the codebase. :)
>
> > Adrian
>
> > On 3 January 2011 19:03, Joe <joe.he...@rocketmail.com> wrote:
> > > any chance to add TCMalloc into lusca source code as alternative
> > > malloc besides dlmalloc ?
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > "lusca-users" group.
> > > To post to this group, send email to lusca...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > lusca-users...@googlegroups.com<lusca-users%2Bunsu...@googlegroups.com>
> > .
> > > For more options, visit this group at
> >http://groups.google.com/group/lusca-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "lusca-users" group.
> > To post to this group, send email to lusca...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > lusca-users...@googlegroups.com<lusca-users%2Bunsu...@googlegroups.com>
> > .

Faysal Banna

unread,
Jan 10, 2011, 2:07:27 AM1/10/11
to lusca...@googlegroups.com
Its easy to link at compile time 

if you use Redhat system (Fedora CentOS Scientific .... etc ) 
yum install google-perftools google-perftools-devel
then 
when u want to compile 
inside Lusca_Head dir 
./configure 'LIBS=-ltcmalloc'

much regards 

To unsubscribe from this group, send email to lusca-users...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/lusca-users?hl=en.

Adrian Chadd

unread,
Jan 10, 2011, 10:22:49 PM1/10/11
to lusca...@googlegroups.com
Faysal, hm, that sounds like a wiki article waiting to happen.


Adrian

Adrian Chadd

unread,
Jan 10, 2011, 10:28:10 PM1/10/11
to lusca...@googlegroups.com
There:

http://code.google.com/p/lusca-cache/wiki/UsingAnotherMalloc

Thanks!


adrian

On 10 January 2011 02:07, Faysal Banna <degr...@gmail.com> wrote:

Joe

unread,
Jan 14, 2011, 3:42:02 AM1/14/11
to lusca-users
@faysal ; thanks for the hint pals..

adrian, check this out »

http://code.google.com/p/squidstats/issues/detail?id=4

On Jan 11, 10:28 am, Adrian Chadd <adrian.ch...@gmail.com> wrote:
> There:
>
> http://code.google.com/p/lusca-cache/wiki/UsingAnotherMalloc
>
> Thanks!
>
> adrian
>
> On 10 January 2011 02:07, Faysal Banna <degre...@gmail.com> wrote:
>
> > Its easy to link at compile time
> > if you use Redhat system (Fedora CentOS Scientific .... etc )
> > yum install google-perftools google-perftools-devel
> > then
> > when u want to compile
> > inside Lusca_Head dir
> > ./configure 'LIBS=-ltcmalloc'
> > much regards
>
Reply all
Reply to author
Forward
0 new messages