From: Christopher Faylor <cgf@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: PATCH: fail to improve psymtab memory consumption
Date: Tue, 24 Jul 2001 09:35:00 -0000 [thread overview]
Message-ID: <20010724123527.A12918@redhat.com> (raw)
In-Reply-To: <1010724161525.ZM20208@ocotillo.lan>
[Reply-To set to gdb-patches -- beware!!!]
On Tue, Jul 24, 2001 at 09:15:25AM -0700, Kevin Buettner wrote:
>On Jul 24, 1:15am, Daniel Berlin wrote:
>
>> If you look at the code, you'll note this is a perfectly fair
>> benchmark, since i'm not pulling any tricks, just using a different
>> method of getting a memory buffer for a part of a section (With mmap,
>> it mmap's it, without it, it fread's it).
>
>I've always been a fan of mmap(). As Dan has pointed out, there can
>be several different performance wins (faster, uses less memory)
>associated with using it.
>
>However, one of the problems with mmap() is that it's not terribly
>portable. Most unices these days will have it, but some might have
>buggy implementations or take slightly different sets of options.
>Also, those systems which don't have mmap frequently have something
>comparable. The point that I'm driving towards is that if we're going
>to use mmap(), I think it would be best if we provide a layer above it
>so that all of the nasty "#ifdef HAVE_MMAP" baggage can be hidden away
>in one place. This layer will attempt to use mmap() or equivalent
>facilities, but failing that, it'll simply read() into a suitably
>sized buffer...
FWIW, Cygwin's mmap is not 100% compliant with UNIX. There is not
a complete overlap in functionality between Windows and UNIX. This
is *especially* true of Windows 9x/Me.
We ran into problems when gcc decided to use mmap more heavily. This
immediately highlighted Cygwin's problems. We hacked around things
so that gcc actually works on NT and 9x but I think we've pushed the
envelope of what is possible for UNIX emulation.
cgf
next prev parent reply other threads:[~2001-07-24 9:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20010720212013.7DA695E9D8@zwingli.cygnus.com>
2001-07-20 15:17 ` Daniel Berlin
2001-07-20 22:22 ` Jim Blandy
2001-07-20 23:17 ` Daniel Berlin
2001-07-21 8:50 ` Jim Blandy
2001-07-23 20:36 ` Andrew Cagney
2001-07-23 22:15 ` Daniel Berlin
2001-07-24 7:49 ` Andrew Cagney
2001-07-24 9:47 ` Daniel Berlin
2001-07-24 9:16 ` Kevin Buettner
2001-07-24 9:35 ` Christopher Faylor [this message]
2001-07-24 10:13 ` Frank Ch. Eigler
2001-07-24 10:57 ` Christopher Faylor
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=20010724123527.A12918@redhat.com \
--to=cgf@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox