From owner-freebsd-hackers@freebsd.org Thu Jan 7 15:24:40 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C26B2A66383 for ; Thu, 7 Jan 2016 15:24:40 +0000 (UTC) (envelope-from mmatalka@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 64694141E for ; Thu, 7 Jan 2016 15:24:40 +0000 (UTC) (envelope-from mmatalka@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id u188so102744769wmu.1 for ; Thu, 07 Jan 2016 07:24:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=+5kBZ7KtlJafdrzDb5KMUA6dZmPgdqY3/rk2p1Fp9xg=; b=oP+AdWCs36Jyph2kCHj7QNb2gKPxDzn3ZlENB2hfQixvhGWmapDW3tZn0U7Y5MMBun auy0uHqSFwlT3XveNi68/tyCFYJUcJptdVYguVpQgQ/L6CrtgpWC52LBenbmevA0dXc+ 6qyymjROwUrMo04lBxn9wBEiMyjb7++tU9uhgfB5wkTAjLyHUgahJ7vCwyaOBco3qNC6 ypA6K4/cuP8mWg9xF2p1vIG7k+TPKJ2Fi27Ef3BGTJpq28ph+a461/cZgeHSXIkZcg+O ciR1Tt5LzVNzBUXgoJSbT7nt3D58tIkXbjWwA9a47z4J9BeEiqGNw2NPWdfoQNcJmUF6 44mg== X-Received: by 10.28.194.69 with SMTP id s66mr18595337wmf.93.1452180278875; Thu, 07 Jan 2016 07:24:38 -0800 (PST) Received: from localhost (li195-236.members.linode.com. [178.79.139.236]) by smtp.gmail.com with ESMTPSA id q6sm101580380wjx.28.2016.01.07.07.24.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jan 2016 07:24:37 -0800 (PST) From: Malcolm Matalka To: freebsd-hackers@freebsd.org Subject: Can PIPE_BUF be increased? Date: Thu, 07 Jan 2016 15:24:35 +0000 Message-ID: <86ziwho1jg.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2016 15:24:40 -0000 As far as I can tell, PIPE_BUF is 512 bytes by default. Using getconf and looking at the header files /usr/include. I'm writing a program that would benefit from a larger PIPE_BUF, is it possible to change this value? It looks like Linux and OS X have a higher default and OS X will do some magic to increase the size if necessary. I haven't found anything indicating the same in FreeBSD. Thanks, /Malcolm