From: Eric Wong <e@80x24.org>
To: spew@80x24.org
Subject: [PATCH] trace: big buffers
Date: Fri, 5 Apr 2024 21:58:07 +0000 [thread overview]
Message-ID: <20240405215807.3177752-1-e@80x24.org> (raw)
---
mwrap_core.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/mwrap_core.h b/mwrap_core.h
index 02b42ad..e08604d 100644
--- a/mwrap_core.h
+++ b/mwrap_core.h
@@ -1170,6 +1170,9 @@ static int trace_on(const char *env)
pid_t wpid = waitpid(pid_a, &st, 0);
if (wpid != pid_a) err(1, "waitpid(a)");
if (st) errx(1, "gzip parent failed %d", st);
+#ifdef F_SETPIPE_SZ // use Linux /proc/sys/fs/pipe-max-size default
+ fcntl(pfds[1], F_SETPIPE_SZ, 1024 * 1024);
+#endif
if (uatomic_cmpxchg(&mwrap_trace_fd, -1, pfds[1]) != -1) {
close(pfds[1]);
return EBUSY;
reply other threads:[~2024-04-05 21:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20240405215807.3177752-1-e@80x24.org \
--to=e@80x24.org \
--cc=spew@80x24.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.
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).