* Enlarge dumped_data[]
[not found] <87edrj4fnq.fsf.ref@yahoo.com>
@ 2023-01-25 0:32 ` Po Lu
2023-01-25 12:10 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: Po Lu @ 2023-01-25 0:32 UTC (permalink / raw)
To: emacs-devel
The MS Windows build fails to dump, telling me to enlarge the
dumped_data[] array.
I find it hard to believe that loadup now generates more than 13 MB.
Is there a bug here, or is Emacs really so big now.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Enlarge dumped_data[]
2023-01-25 0:32 ` Enlarge dumped_data[] Po Lu
@ 2023-01-25 12:10 ` Eli Zaretskii
2023-01-25 12:14 ` Po Lu
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2023-01-25 12:10 UTC (permalink / raw)
To: Po Lu; +Cc: emacs-devel
> From: Po Lu <luangruo@yahoo.com>
> Date: Wed, 25 Jan 2023 08:32:57 +0800
>
> The MS Windows build fails to dump, telling me to enlarge the
> dumped_data[] array.
>
> I find it hard to believe that loadup now generates more than 13 MB.
> Is there a bug here, or is Emacs really so big now.
Is this during bootstrap or during a "regular" build that has just a
few of the preloaded *.el that need to be byte-compiled, and the rest
already have up-to-date *.elc files?
The 64-bit unexec build on GNU/Linux reports about 21MB of static heap
used up, and that with only a few *.el files, the rest *.elc. So I
think 13MB on Windows is not outrageous. I'm okay with increasing the
value, especially since most builds will be unaffected anyway.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Enlarge dumped_data[]
2023-01-25 12:10 ` Eli Zaretskii
@ 2023-01-25 12:14 ` Po Lu
2023-01-25 13:20 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: Po Lu @ 2023-01-25 12:14 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
> Is this during bootstrap or during a "regular" build that has just a
> few of the preloaded *.el that need to be byte-compiled, and the rest
> already have up-to-date *.elc files?
During bootstrap, yes, but it also happened on a regular build before I
tried bootstrapping.
> The 64-bit unexec build on GNU/Linux reports about 21MB of static heap
> used up, and that with only a few *.el files, the rest *.elc. So I
> think 13MB on Windows is not outrageous. I'm okay with increasing the
> value, especially since most builds will be unaffected anyway.
Okay, should the adjustment be made on emacs-29 or master?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Enlarge dumped_data[]
2023-01-25 12:14 ` Po Lu
@ 2023-01-25 13:20 ` Eli Zaretskii
2023-01-25 14:11 ` Po Lu
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2023-01-25 13:20 UTC (permalink / raw)
To: Po Lu; +Cc: emacs-devel
> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Wed, 25 Jan 2023 20:14:06 +0800
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > The 64-bit unexec build on GNU/Linux reports about 21MB of static heap
> > used up, and that with only a few *.el files, the rest *.elc. So I
> > think 13MB on Windows is not outrageous. I'm okay with increasing the
> > value, especially since most builds will be unaffected anyway.
>
> Okay, should the adjustment be made on emacs-29 or master?
If you see the problem on emacs-29, please install the change there.
If it happens only on master, please install on master.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Enlarge dumped_data[]
2023-01-25 13:20 ` Eli Zaretskii
@ 2023-01-25 14:11 ` Po Lu
2023-01-26 1:14 ` Po Lu
0 siblings, 1 reply; 12+ messages in thread
From: Po Lu @ 2023-01-25 14:11 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
> If you see the problem on emacs-29, please install the change there.
I haven't built Emacs 29 on that (new) machine yet, I will do that
tomorrow and ack. Thanks.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Enlarge dumped_data[]
2023-01-25 14:11 ` Po Lu
@ 2023-01-26 1:14 ` Po Lu
2023-01-26 6:55 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: Po Lu @ 2023-01-26 1:14 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Po Lu <luangruo@yahoo.com> writes:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>> If you see the problem on emacs-29, please install the change there.
>
> I haven't built Emacs 29 on that (new) machine yet, I will do that
> tomorrow and ack. Thanks.
Now Emacs dumps correctly if preloaded Lisp has been compiled to
bytecode, but it needs an outrageous 40 megabytes to dump
bootstrap-emacs during bootstrap, so that still fails.
What changed recently so as to require so much memory?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Enlarge dumped_data[]
2023-01-26 1:14 ` Po Lu
@ 2023-01-26 6:55 ` Eli Zaretskii
2023-01-26 9:54 ` Po Lu
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2023-01-26 6:55 UTC (permalink / raw)
To: Po Lu; +Cc: emacs-devel
> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Thu, 26 Jan 2023 09:14:13 +0800
>
> Po Lu <luangruo@yahoo.com> writes:
>
> > Eli Zaretskii <eliz@gnu.org> writes:
> >
> >> If you see the problem on emacs-29, please install the change there.
> >
> > I haven't built Emacs 29 on that (new) machine yet, I will do that
> > tomorrow and ack. Thanks.
>
> Now Emacs dumps correctly if preloaded Lisp has been compiled to
> bytecode, but it needs an outrageous 40 megabytes to dump
> bootstrap-emacs during bootstrap, so that still fails.
>
> What changed recently so as to require so much memory?
I don't know. Which branch is that, and when did you last build it
with the old size of dumped_data?
Is this a 32-bit build --with-wide-int or without it? More generally,
what is the configuration?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Enlarge dumped_data[]
2023-01-26 6:55 ` Eli Zaretskii
@ 2023-01-26 9:54 ` Po Lu
2023-01-26 10:47 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: Po Lu @ 2023-01-26 9:54 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Po Lu <luangruo@yahoo.com>
>> Cc: emacs-devel@gnu.org
>> Date: Thu, 26 Jan 2023 09:14:13 +0800
>>
>> Po Lu <luangruo@yahoo.com> writes:
>>
>> > Eli Zaretskii <eliz@gnu.org> writes:
>> >
>> >> If you see the problem on emacs-29, please install the change there.
>> >
>> > I haven't built Emacs 29 on that (new) machine yet, I will do that
>> > tomorrow and ack. Thanks.
>>
>> Now Emacs dumps correctly if preloaded Lisp has been compiled to
>> bytecode, but it needs an outrageous 40 megabytes to dump
>> bootstrap-emacs during bootstrap, so that still fails.
>>
>> What changed recently so as to require so much memory?
>
> I don't know. Which branch is that, and when did you last build it
> with the old size of dumped_data?
It worked when I built it around a week ago. It's the master branch,
emacs-29 builds fine.
> Is this a 32-bit build --with-wide-int or without it? More generally,
> what is the configuration?
It's a 32 bit build without wide int, and with libXpm and gnutls (both
from ezwinports.)
The system on which Emacs is being built identifies itself as "Windows
XP Service Pack 3".
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Enlarge dumped_data[]
2023-01-26 9:54 ` Po Lu
@ 2023-01-26 10:47 ` Eli Zaretskii
2023-01-26 11:44 ` Po Lu
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2023-01-26 10:47 UTC (permalink / raw)
To: Po Lu; +Cc: emacs-devel
> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Thu, 26 Jan 2023 17:54:17 +0800
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> Now Emacs dumps correctly if preloaded Lisp has been compiled to
> >> bytecode, but it needs an outrageous 40 megabytes to dump
> >> bootstrap-emacs during bootstrap, so that still fails.
> >>
> >> What changed recently so as to require so much memory?
> >
> > I don't know. Which branch is that, and when did you last build it
> > with the old size of dumped_data?
>
> It worked when I built it around a week ago. It's the master branch,
> emacs-29 builds fine.
Strange. I don't see any obvious candidate. Suggest to bisect. From
12 MB to 40 MB sounds a lot to me, I cannot even begin to think what
kind of change could cause that. Did anything change on your build
system since then? Did you move the source tree to a different place,
perhaps (file names are recorded in the dumped data, so if file names
are longer, you will need more data).
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Enlarge dumped_data[]
2023-01-26 10:47 ` Eli Zaretskii
@ 2023-01-26 11:44 ` Po Lu
2023-01-26 12:57 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: Po Lu @ 2023-01-26 11:44 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
> Strange. I don't see any obvious candidate. Suggest to bisect. From
> 12 MB to 40 MB sounds a lot to me, I cannot even begin to think what
> kind of change could cause that. Did anything change on your build
> system since then? Did you move the source tree to a different place,
> perhaps (file names are recorded in the dumped data, so if file names
> are longer, you will need more data).
No, nothing changed on that machine.
Does the unexec build work for you, BTW?
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2023-01-27 0:42 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <87edrj4fnq.fsf.ref@yahoo.com>
2023-01-25 0:32 ` Enlarge dumped_data[] Po Lu
2023-01-25 12:10 ` Eli Zaretskii
2023-01-25 12:14 ` Po Lu
2023-01-25 13:20 ` Eli Zaretskii
2023-01-25 14:11 ` Po Lu
2023-01-26 1:14 ` Po Lu
2023-01-26 6:55 ` Eli Zaretskii
2023-01-26 9:54 ` Po Lu
2023-01-26 10:47 ` Eli Zaretskii
2023-01-26 11:44 ` Po Lu
2023-01-26 12:57 ` Eli Zaretskii
2023-01-27 0:42 ` Po Lu
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).