From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 582A91F44D for ; Fri, 5 Apr 2024 21:58:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1712354287; bh=bGZzQpTXYT/c6oVTq9CHtQyPgfql+23bUC0K36/yrp0=; h=From:To:Subject:Date:From; b=Q03OLwQ2Oe6/wx8xik03MctX/QKLsDXDgbb2iH20+T70autTrggaVlccZgGBV/rq1 OfD/vgYZJN5QAiqDLkkFKPTgRt4+bKQM6bal+65fIyPTeejGFJApk9mEKTYrQakeS0 AG0s+IzpBybxAmaEDILeOdJtEDtoA6ZdfNslO9mY= From: Eric Wong To: spew@80x24.org Subject: [PATCH] trace: big buffers Date: Fri, 5 Apr 2024 21:58:07 +0000 Message-ID: <20240405215807.3177752-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: --- 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;