[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46881: 28.0.50; pdumper dumping causes way too many syscalls
From: |
Pip Cet |
Subject: |
bug#46881: 28.0.50; pdumper dumping causes way too many syscalls |
Date: |
Fri, 5 Mar 2021 14:02:33 +0000 |
On Fri, Mar 5, 2021 at 1:16 PM Pip Cet <pipcet@gmail.com> wrote:
> >I say let's go with stdio.
>
> Maybe setbuffer(3) could help us here? I could run some benchmarks for
> that if the idea isn't out of the question.
Actually, calling setbuffer() with a large buffer will make glibc
reread the entire file on every fseek(), rendering the dump so slow I
gave up and interrupted it.
However, there's open_memstream: that would have the added advantage
of actually making glibc write out the entire file in one go, so it
seems to shave a few extra milliseconds off the build.
(However however, glibc's memstreams are somewhat broken. I'll file a
bug report if there isn't one already...)
Still, that way we could use stdio today, leave the buffering to
glibc, and hopefully be able to switch trivially to a "open this file
but keep it in memory" combined memstream/FILE* one day.
Pip
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, (continued)
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Pip Cet, 2021/03/04
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Eli Zaretskii, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Pip Cet, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Eli Zaretskii, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Pip Cet, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Andrea Corallo, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Eli Zaretskii, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Lars Ingebrigtsen, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Eli Zaretskii, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Pip Cet, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls,
Pip Cet <=
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Daniel Colascione, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Eli Zaretskii, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Pip Cet, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Andreas Schwab, 2021/03/05
- bug#46881: 28.0.50; pdumper dumping causes way too many syscalls, Pip Cet, 2021/03/05