GNU bug report logs -
#46881
28.0.50; pdumper dumping causes way too many syscalls
Previous Next
Reported by: Pip Cet <pipcet <at> gmail.com>
Date: Tue, 2 Mar 2021 20:35:01 UTC
Severity: normal
Found in version 28.0.50
Done: Mattias EngdegÄrd <mattiase <at> acm.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On Wed, Mar 3, 2021 at 5:51 AM Eli Zaretskii <eliz <at> gnu.org> wrote:
> > From: Pip Cet <pipcet <at> gmail.com>
> > Date: Tue, 2 Mar 2021 20:45:04 +0000
> >
> > On Tue, Mar 2, 2021 at 8:35 PM Pip Cet <pipcet <at> gmail.com> wrote:
> > > I've looked into the problem, and it seems easy to solve and worth it
> > > in terms of debuggability and performance.
Since debuggability is such a concern, we probably shouldn't leak the
buffer memory. Revised patch attached. (This patch also removes the
lseek() syscalls; while not quite as numerous as the read() ones,
those did clutter up straces here).
> In particular, is it safe to allocate
> large amounts of memory off the heap while dumping?
Even if it isn't, we'd still be faster re-running the dump after
growing the dumper image than the current approach is.
>A couple of
> places in pdumper.c says some parts of code should call malloc.
IIUC, the prohibition on calling malloc, if it is still a concern,
applies only when loading the dump, not while writing it.
My main concern is the possibility of a partly-written dump file,
since we no longer turn "!UMPEDGNUEMACS" into "DUMPEDGNUEMACS" after
the dump. Maybe it would make sense to restore that feature?
Pip
[0001-Prepare-pdumper-dump-file-in-memory-write-it-in-one-.patch (text/x-patch, attachment)]
This bug report was last modified 4 years and 34 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.