From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Iain Barker Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Tru64 pipe buffer size Date: Mon, 11 Apr 2005 15:40:11 -0400 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1113248308 18838 80.91.229.2 (11 Apr 2005 19:38:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2005 19:38:28 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Apr 11 21:38:26 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1DL4jH-0002Mr-33 for gotm-tru64-unix-managers@gmane.org; Mon, 11 Apr 2005 21:37:51 +0200 Original-Received: (qmail 17519 invoked by uid 5); 11 Apr 2005 19:40:41 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 17504 invoked by uid 49501); 11 Apr 2005 19:40:41 -0000 Original-Received: from ibarker@aastra.com by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.119):SA:0(-2.0/5.0):. Processed in 0.387679 secs); 11 Apr 2005 19:40:41 -0000 X-Spam-Status: No, hits=-2.0 required=5.0 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 11 Apr 2005 19:40:40 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IES006DRRZOCH@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 11 Apr 2005 15:40:39 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute1.cind.ornl.gov by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0IES00C02RZA73@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 11 Apr 2005 15:40:30 -0400 (EDT) Original-Received: from mailfrnt.aastra.com (mail.aastra.com [216.94.98.95]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IES005IWRZ091@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 11 Apr 2005 15:40:15 -0400 (EDT) Original-Received: from bilmail.aastra.com ([10.50.2.10]) by mailfrnt.aastra.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 11 Apr 2005 15:40:12 -0400 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.5.7226.0 Thread-Topic: SUMMARY Re: 4.0F and UID length "Question Refresh." Thread-Index: AcU6z90/ZiEXeJD5S0iTmKXi0PehjQACYnzgAP0dBwA= Content-class: urn:content-classes:message X-Envelope-From: X-MS-Has-Attach: X-MS-TNEF-Correlator: X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on spam2.ornl.gov X-Spam-Level: X-OriginalArrivalTime: 11 Apr 2005 19:40:12.0568 (UTC) FILETIME=[4705E180:01C53ECE] Xref: news.gmane.org gmane.os.tru64.managers:8204 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8204 The problem was that the application detected whether its stdout was = going to file (pipe) or term, and did buffering in the case of a file. Thanks to John Lanier, who wrote: Reference these parameters in the "vfs" kernel subsystem: --> sysconfig -q vfs|grep pipe pipe_maxbuf_size =3D 262144 pipe_databuf_size =3D 8192 pipe_max_bytes_all_pipes =3D 134217728 --> sysconfig -Q vfs|grep pipe pipe_maxbuf_size - type=3DINT op=3DCRQ min_val=3D4096 = max_val=3D1048576 pipe_databuf_size - type=3DINT op=3DCRQ min_val=3D4096 = max_val=3D32768 pipe_max_bytes_all_pipes - type=3DINT op=3DCRQ min_val=3D819200 max_val=3D1717986918 In actual fact, there was an easier way around the problem in our = particular situation: Pipe the output via the tee command.=20 It seems that tee opens its stdin as a term, and its output as a file = handle. So it can happily sit in the middle of the pipe and do the = required un-buffering. - Iain -----Original Message----- From: tru64-unix-managers-owner@ornl.gov [mailto:tru64-unix-managers-owner@ornl.gov]On Behalf Of Iain Barker Sent: Wednesday, 06 April, 2005 14:57 To: tru64-unix-managers@ornl.gov Subject: Tru64 pipe buffer size Managers, Is there any way to alter the buffer size used for the pipe (|) command = on Tru64? We have a third-party tool which writes line-by-line to terminal device, = but when its output is piped it seems to be buffering the data in chunks = of approx 4KB at a guess. For example, assuming each line represents ~1.5K of data: ./foobar a b c d e f end of data ./foobar | tee outfile a b c <20 minute wait> d e f end of data thanks, Iain