Linked by Thom Holwerda on Fri 25th May 2007 21:51 UTC
General Development "Hoard is a scalable memory allocator (malloc replacement) for multithreaded applications. Hoard can dramatically improve your application's performance on multiprocessor machines. No changes to your source are necessary; just link it in. Hoard scales linearly up to at least 14 processors. The supported platforms include Linux, Solaris, and Windows NT/2000/XP."
Thread beginning with comment 243245
To read all comments associated with this story, please click here.
how to know i'm using hoard?
by gerryxiao on Sat 26th May 2007 05:42 UTC
gerryxiao
Member since:
2006-12-17

i have downloaded and build it on my box, and setup LD_PRELOAD envrion variable, but how did i know that i'm using libhoard instead of standard ones?

Reply Score: 1

RE: how to know i'm using hoard?
by Ponto on Sat 26th May 2007 07:30 in reply to "how to know i'm using hoard?"
Ponto Member since:
2006-06-18

1. Use man ld.so to get some information whether hoard is loaded at all.
2. Use a debugger and trace a malloc. You should at least see a hoard method in the traceback.

Reply Parent Score: 1

Elektronkind Member since:
2006-09-22

On Solaris, just run: pldd <pid>

Where <pid> is the PID of the process you want to make sure is runing with the Horde library. pldd is just like ldd, but is for use against running processes rather than just binaries.

I don't know if Linux or other OSes provide a tool for doing this.

Edited 2007-05-26 14:46

Reply Parent Score: 1

Doc Pain Member since:
2006-10-08

"I don't know if Linux or other OSes provide a tool for doing this. "

Besides Solaris, I've seen the pldd command only on HP-UX.

Reply Parent Score: 2

RE: how to know i'm using hoard?
by big_gie on Sat 26th May 2007 15:01 in reply to "how to know i'm using hoard?"
big_gie Member since:
2006-01-04

i have downloaded and build it on my box, and setup LD_PRELOAD envrion variable, but how did i know that i'm using libhoard instead of standard ones?

Compile your program. Then run "ldd" on it to see which (dynamic) library it is linked to:
> ldd myapp

Reply Parent Score: 1

gerryxiao Member since:
2006-12-17

Compile your program. Then run "ldd" on it to see which (dynamic) library it is linked to:
> ldd myapp

i'm not using it for developing, just want some programs in my box apply libhoard.so to improve performance

there aren't any programs in linux which have the same functions as pldd in solaris, but i'm not sure ;)

pmap seems working in linux
pmap <pid>

Edited 2007-05-26 15:19

Reply Parent Score: 1