* [PATCH] trace: big buffers
@ 2024-04-05 21:58 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2024-04-05 21:58 UTC (permalink / raw)
To: spew
---
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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-05 21:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-05 21:58 [PATCH] trace: big buffers Eric Wong
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).