[openamq-dev] Tuning
R Hayes
rfhayes at reillyhayes.com
Thu Oct 25 10:09:58 CEST 2007
That was a 34% improvement on relatively exotic network hardware.
Presumably the percentage gain will be smaller for cases where the
CPU is a larger part of the overall latency. Nonetheless, it can
have a big impact.
If OpenAMQ is doing any fancy memory management (to avoid malloc),
you might consider turning it off. In many cases, tcmalloc is faster
than home grown schemes for memory recycling. It *does* have a
cost. A program using tcmalloc will never return memory to the O/S.
I don't believe it is linux only, but I've only ever used it on
linux. tcmalloc is part of the google perftools package. It is not
installed by default in any distribution I know of.
I loaded it with LD_PRELOAD for my tests. Not the right answer for
production.
You can find perftools at:
http://code.google.com/p/google-perftools/
-rhayes
On Oct 25, 2007, at 12:31 AM, Pieter Hintjens wrote:
> On 10/25/07, Martin Sustrik <sustrik at imatix.com> wrote:
>
>> Basically you just have to relink. I'll run some tests with it
>> today/tomorrow and publish the results.
>
> Presumably only on Linux? Is tcmalloc installed by default? If so,
> we can build with it by default. 34% is a huge improvement.
>
> -Pieter
> _______________________________________________
> openamq-dev mailing list
> openamq-dev at lists.openamq.org
> http://lists.openamq.org/mailman/listinfo/openamq-dev
More information about the openamq-dev
mailing list