Re: Problem running on a cluster & performance...

From: Jason Duell (jcduell_at_lbl_dot_gov)
Date: Wed Sep 20 2006 - 11:02:52 PDT

  • Next message: Konstantin Kleisouris: "building libgasnet-smp-seq.a ..."
    On Tue, Sep 19, 2006 at 11:42:42PM -0400, Samy Bahra wrote:
    > Hi Konstantin,
    > 
    > Also, note that if the threads are running locally on the same
    > process malloc() itself will have a lot of lock contention. dlmalloc is not
    > known for its scalability with threads so much. If you want to avoid too much
    > contention as you scale with threads please take a look at "jemalloc", a new
    > malloc implementation FreeBSD is using optimized for threaded applications. A
    > paper describing it is available at
    > http://www.bsdcan.org/2006/papers/jemalloc.pdf 
    
    It's true that there are some lock overheads associated with using malloc and
    pthreads, but unless Konstantin's code is making a lot of malloc/free calls,
    this shouldn't be a big factor.
    
    -- 
    Jason Duell             Future Technologies Group
    <jcduell_at_lbl_dot_gov>       Computational Research Division
    Tel: +1-510-495-2354    Lawrence Berkeley National Laboratory
    

  • Next message: Konstantin Kleisouris: "building libgasnet-smp-seq.a ..."