Re: Virtual memory allocator recommendations?



On Fri, 10 Oct 2008 00:35:17 +0100, David Given <dg@xxxxxxxxxxx>
wrote:

Richard Harter wrote:
[...]
You might be interested in the getspace allocator that I wrote.
The source code and documentation are at
http://home.tiac.net/~cri_a/source_code/getspace/

Thanks, but being built on top of malloc it doesn't actually allocate
its own chunks, so it doesn't seem to be suitable for what I want, alas.

Any suggestions for other places to look? comp.lang.programming?

As others have said, you need to look at groups specific to your
platform. There is no way to portably write a storage allocator
in standard C only - to get chunks of memory you have to have
access to the OS memory management facilities.


Richard Harter, cri@xxxxxxxx
http://home.tiac.net/~cri, http://www.varinoma.com
Save the Earth now!!
It's the only planet with chocolate.
.



Relevant Pages

  • Re: page sizes
    ... The documentation of malloc() on one of the ... Larger blocks allocate fastest if they are ... overhead by always putting chunks on cacheline boundaries (and wasting ...
    (comp.programming)
  • Re: Can Anyone Explain This Memory Leak?
    ... Some `malloc' implementations use mmapto allocate ... allocate many chunks of a certain size, free them, and then allocate many ... requests (as bunches of somewhat-too-small chunks are on the free lists) ...
    (comp.lang.ruby)
  • Re: Virtual memory allocator recommendations?
    ... but being built on top of malloc it doesn't actually allocate ... its own chunks, so it doesn't seem to be suitable for what I want, alas. ...
    (comp.lang.c)
  • Re: Need to Allocate more space than size_t
    ... Your particular implementation intends such large chunks of memory to ... System API function). ... Your particular implementation intends for you to be able to allocate ...
    (comp.lang.c)
  • Re: Maximum Size of Byte Array
    ... I do not allocate 400 MB in every case of course. ... The idea to trade the image in chunks is very good. ... Software Developer ... But I need to use this big array. ...
    (microsoft.public.dotnet.framework.aspnet)