Google Answers Logo
View Question
 
Q: Optimized malloc library based on an application's use profile. ( No Answer,   2 Comments )
Question  
Subject: Optimized malloc library based on an application's use profile.
Category: Computers > Algorithms
Asked by: gregburd-ga
List Price: $5.00
Posted: 01 Dec 2005 08:55 PST
Expires: 31 Dec 2005 08:55 PST
Question ID: 600052
Where can I find the version of malloc that records allocation block
sizes at runtime and uses them to optimize memory allocation in future
invocations of the application?  It records this allocation pattern
information to disk.  I ask this knowing that I've found and used this
library in the past.  It has a particular use for a project I'm
working on now, but I can't seem to find it again.  The words
'profile' and 'malloc' combined produce a search result that is
totally off topic.  I've tried every combination of similar terms I
can think of with no luck.  Can you find it?
Answer  
There is no answer at this time.

Comments  
Subject: Re: Optimized malloc library based on an application's use profile.
From: m0hi1-ga on 06 Jan 2006 21:39 PST
 
Hoard is one such library, though the performance gain with it will be
seen only in case of multithreaded applications.
[www.hoard.org]
Subject: Re: Optimized malloc library based on an application's use profile.
From: m0hi1-ga on 02 Mar 2006 10:23 PST
 
Hey I just designed a new memory allocator!

m0hi1 12:13:34 Tue Dec 27$time mallocperf -v -v -n 10000000 -ul 512 -t 2
mallocperf: 0, T:2, P:10, N:10000000, LL:1, UL:512, K:5216, E:113

mallocperf: X  T:2, P:10, N:10000000, LL:1, UL:512, K:5216, A:113


real    1m54.340s
user    3m41.640s
sys     0m4.610s

 
 
 
m0hi1 12:13:37 Tue Dec 27$time mallocperf_mk -v -v -n 10000000 -ul 512 -t 2

 Thread Created Successfully  2

 Thread Created Successfully  3
mallocperf_mk: 0, T:2, P:10, N:10000000, LL:1, UL:512, K:7672, E:27

mallocperf_mk: X  T:2, P:10, N:10000000, LL:1, UL:512, K:7672, A:27


real    0m29.219s
user    0m44.250s
sys     0m0.120s

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy