all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Emacs 32 -> 64 bits on Win32
Date: Sun, 20 Nov 2011 23:16:48 +0100	[thread overview]
Message-ID: <CAFgFV9Pv64xNsWS9JUAZGbc6OgU7+crcfAUPcmSpZuNF=9Lr9Q@mail.gmail.com> (raw)
In-Reply-To: <8362ifbgf0.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1483 bytes --]

>
> I'm quite sure it is, but I don't have a 64-bit MinGW development
> environment installed to verify that.  I suggest to ask a question on
> emacs-devel@gnu.org.


I installed it and I can confirm it is the same size for int and long.


>  > Although, Emacs tries to virtually allocate a 2Gb heap. What should be
> done
> > on a 64bits machine ?
> > For sure, the heap could grow much further.
>
> How much physical memory would a typical 64-bit Windows box have?  I'd
> say set the reserved heap size to twice that much.  If the page file
> size is something like 1.5 to 2 times the size of physical RAM,
> Windows will probably refuse a larger reservation anyway.
>

No it doesn't.
Well, it was rather the process I find questionable when switching to a
large address space :
start trying to reserve 2Gb (hard coded value) and diminish the size up to
the point where it will fit.

With a 64 bits address space, you can reserve much more, even if after
that, you aren't able
to commit the pages. I have a 4Gb machine and I have been able to reserve
about
540Gb. So the question is : with a 64 bits emacs, where do you start ?
The 2Gb limit was half the address space for 32bits, and it makes sense to
start there.
But with 64bits, the 2Gb are honoured easily and you can even claim for
more.
So where do you start ?

I found this which may be of interest :
http://msdn.microsoft.com/en-us/library/aa384271(v=VS.85).aspx
if we prefer to stick with "small" address space.

Fabrice

[-- Attachment #2: Type: text/html, Size: 2221 bytes --]

       reply	other threads:[~2011-11-20 22:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAFgFV9MxVg1hN5YjkLDsSk2OAgvt93O7mUvqb6zkzPxkGuPqKw@mail.gmail.com>
     [not found] ` <8362ifbgf0.fsf@gnu.org>
2011-11-20 22:16   ` Fabrice Popineau [this message]
2011-11-21 10:03     ` Emacs 32 -> 64 bits on Win32 Eli Zaretskii

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='CAFgFV9Pv64xNsWS9JUAZGbc6OgU7+crcfAUPcmSpZuNF=9Lr9Q@mail.gmail.com' \
    --to=fabrice.popineau@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.