Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh and memory
- X-seq: zsh-workers 9089
- From: Timothy Writer <tim@xxxxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: zsh and memory
- Date: 16 Dec 1999 13:01:02 -0500
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: Sven Wischnowsky's message of "Thu, 16 Dec 1999 11:39:48 +0100 (MET)"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199912161039.LAA13865@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: tim@xxxxxxxxxx
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
to use MAP_PRIVATE with MAP_ANONYMOUS.
--
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