zsh-workers
 help / color / mirror / code / Atom feed
From: Mike Fletcher <fletch@phydeaux.org>
To: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
Cc: zsh-workers@sunsite.auc.dk
Subject: Re: zsh and memory
Date: 16 Dec 1999 06:16:25 -0500	[thread overview]
Message-ID: <m2iu1zuody.fsf@godzilla.phydeaux.org> (raw)
In-Reply-To: Sven Wischnowsky's message of "Thu, 16 Dec 1999 11:39:48 +0100 (MET)"

>>>>> "Sven" == Sven Wischnowsky <wischnow@informatik.hu-berlin.de> writes:

    Sven> 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.

    Sven> ... and now I don't think I'll ever write one: neither
    Sven> Solaris nor Linux seem to have MAP_ANONYMOUS. Sniff.

        My copy seems to, at least according to mmap(2):

[...]
       The  above three flags are described in POSIX.1b (formerly
       POSIX.4).  Linux also knows about MAP_DENYWRITE,  MAP_EXE-
       CUTABLE and MAP_ANON(YMOUS).
[...]

        There's also Ralf Engelschall's mm library that hides shared
memory allocations in a platform independent way:

http://www.engelschall.com/sw/mm/

        But that's more for handling shared segments between multiple
processes.  Of course there was that talk of making all zsh processes
share the same zcompdump . . . :).

-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch@phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
678 443-6239(w)       |  scary questions." -- Jules                =(___)=
                      |                                               U


  reply	other threads:[~1999-12-16 19:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-16 10:39 Sven Wischnowsky
1999-12-16 11:16 ` Mike Fletcher [this message]
1999-12-16 18:01 ` Timothy Writer
  -- strict thread matches above, loose matches on Subject: below --
1999-12-17 11:49 Sven Wischnowsky
1999-12-17 10:40 Sven Wischnowsky
1999-12-16  9:56 Sven Wischnowsky
1999-12-17  7:16 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2iu1zuody.fsf@godzilla.phydeaux.org \
    --to=fletch@phydeaux.org \
    --cc=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).