unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mike Gran <spk121@yahoo.com>
To: Andy Wingo <wingo@pobox.com>,
	"guile-devel@gnu.org" <guile-devel@gnu.org>
Subject: Re: the page size bug
Date: Wed, 8 Mar 2017 21:32:05 +0000 (UTC)	[thread overview]
Message-ID: <1506166242.1562148.1489008725200@mail.yahoo.com> (raw)
In-Reply-To: <87zigv7b6p.fsf@pobox.com>




On Wednesday, March 8, 2017 12:42 PM, Andy Wingo <wingo@pobox.com> wrote:
Hi,

> The problem with the malloc path is that not only is it a bit slower, as
> it has to page in data that might not be needed, it doesn't share memory
> between processes.  So if the system supports mmap, Guile will use mmap
> to load its ELF images (.go files).


In trying to get Guile to work on Cygwin, I've reverted to the
malloc path by #undef'ing HAVE_SYS_MMAN_H.  The mmap path is broken,
as you note.

> One solution to this issue would be to choose target-specific page
> sizes.  This is still a little tricky; on amd64 for example, systems
> commonly have 4KB pages, but they are allowed by the ABI to have any
> multiple-of-2 page size up to 64 KB.  On Cygwin, pages are 4kB but they
> can only be allocated 16 at a time.  MIPS and ARM64 can use 64K pages
> too and that's not uncommon.


Cygwin wants its users to not second-guess the 64k pagesize it
provides as its interface.  It sees the 16x 4k pagesize as an internal
detail that it is trying to abstract away.


Regards,
Mike Gran



  reply	other threads:[~2017-03-08 21:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-08 20:42 the page size bug Andy Wingo
2017-03-08 21:32 ` Mike Gran [this message]
2017-03-08 21:58   ` Andy Wingo

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

  List information: https://www.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=1506166242.1562148.1489008725200@mail.yahoo.com \
    --to=spk121@yahoo.com \
    --cc=guile-devel@gnu.org \
    --cc=wingo@pobox.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).