You are not logged in.
Hi, This is more of a developer thing but thought it would be useful to have within Arch since everything is now multicore.
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.
Last edited by judfilm (2007-05-27 08:05:00)
Offline
Hi judfilm.
Just uploaded the PKGBUILD to AUR, get it here http://aur.archlinux.org/packages.php?d … 1&ID=11199 and please let me know of any issues or further requests about hoard.
Last edited by anakin (2007-05-26 16:25:48)
www.geekslot.com - a place where peculiar people fit
Offline
It currently builds only the x86 version though I'll change it to support x86_64 soon.
www.geekslot.com - a place where peculiar people fit
Offline
It now detects whether it's an i686 or x86_64 machine and calls make with the appropriate target. Though it should be seamless with autoconf the author of hoard doesn't use it.
www.geekslot.com - a place where peculiar people fit
Offline
Wow! Thanks for the PKGBUILD!
Offline
It's an interesting piece of software indeed, hopefully I'll be going multicore soon and I'll certainly use it myself. Meanwhile do you know of any alternative memory allocator which is particularly suited for single cpu/core yielding faster results than the default one?
www.geekslot.com - a place where peculiar people fit
Offline
Good stuff.
How may one check if the allocator is actually used? # env shows LD_PRELOAD set up, but pmap <pid> does not show the lib used.
Suggestions?
Offline
Good stuff.
How may one check if the allocator is actually used? # env shows LD_PRELOAD set up, but pmap <pid> does not show the lib used.
Suggestions?
Well I've managed to check wheather hoard was actually being used indirectly by comparing running times before and after setting LD_PRELOAD.
www.geekslot.com - a place where peculiar people fit
Offline
LD_PRELOAD="/path/libhoard.so:/usr/lib/libdl.so"
what does it mean and how I make it work?
Offline
add
export LD_PRELOAD="/usr/lib/libhoard.so"
to /etc/profile
Offline
LD_PRELOAD="/path/libhoard.so:/usr/lib/libdl.so"
what does it mean and how I make it work?
It means you must set the LD_PRELOAD environment variable to the path where Hoard is installed, which is /usr/lib/libhoard.so in the PKGBUILD I've submitted. This will override the way the dynamic linker works by default allowing some functions to be replaced by the Hoard's ones (like malloc, the heap memory allocator). There's many ways you can achieve that depending on what distro or shell you're using although raeven suggests quite a standard way which you can follow under Archlinux.
www.geekslot.com - a place where peculiar people fit
Offline
I put this into /etc/profile, but the variable isn't set. How can i check, if a program is linked against the library?
Offline
I put this into /etc/profile, but the variable isn't set. How can i check, if a program is linked against the library?
Did you reload /etc/profile or rebooted after the changes? You can reload it with:
source /etc/profile
www.geekslot.com - a place where peculiar people fit
Offline
Can I install this for improve my laptop speed?
Offline
Can I install this for improve my laptop speed?
Yes, as long as your laptop has a multi core processor.
www.geekslot.com - a place where peculiar people fit
Offline
Ok i have install it
Offline
Program which use mono don't work with it, I have error when i launch tomboy and beagle
Offline
create a launch script or edit theirs.. and do something like
#!/bin/sh
LD_PRELOAD="" /usr/bin/app
Offline
Ok I try thanks
edit: this is working, i have edit tomboy and all beagle* files
Last edited by atlas95 (2007-06-06 08:29:43)
Offline
Fantastic results guys. Thanks to all who have tried this out. Is it possible to combine all the information here and add it to a wiki page?
Offline
Hmm,
My processor is a intel core 2 duo T5600 is it really usefull for me ?
I'm not sure :s
Offline