Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh and memory

Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:

> I wrote:
> > I'm really tempted to allocate heaps using mmap()
> > (anonymous) to get them out of the way of the zalloc() allocator. I
> > small test showed that with this I only get 39KB of free memory after
> > the completion test, which is really not too bad. I don't have a patch 
> > for that yet, though.
> ... and now I don't think I'll ever write one: neither Solaris nor
> Linux seem to have MAP_ANONYMOUS. Sniff.

Hmmm ... how are you calling mmap exactly?  I've definitely used
MAP_ANONYMOUS on Linux (as far back as kernel 1.3) and I think I've used it
on Solaris too.  Linux doesn't have shared anonymous mappings, i.e. you have

tim writer <tim@xxxxxxxxxxx>                                  starnix inc.
tollfree: 1-87-pro-linux                         brampton, ontario, canada
http://www.starnix.com              professional linux services & products

Messages sorted by: Reverse Date, Date, Thread, Author