From owner-freebsd-stable@FreeBSD.ORG Tue May 15 18:27:10 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B36216A402; Tue, 15 May 2007 18:27:10 +0000 (UTC) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3707013C44C; Tue, 15 May 2007 18:27:10 +0000 (UTC) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.13.8/8.13.7) with ESMTP id l4FIR90N007653; Tue, 15 May 2007 11:27:10 -0700 (PDT) Received: (from dillon@localhost) by apollo.backplane.com (8.13.8/8.13.4/Submit) id l4FIR9Yk007652; Tue, 15 May 2007 11:27:09 -0700 (PDT) Date: Tue, 15 May 2007 11:27:09 -0700 (PDT) From: Matthew Dillon Message-Id: <200705151827.l4FIR9Yk007652@apollo.backplane.com> To: freebsd-stable@freebsd.org, scrappy@freebsd.org References: <200705151714.l4FHEEhH030766@lurza.secnetix.de> Cc: Subject: Re: Does a pipe take a socket ... ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 18:27:10 -0000 :Marc G. Fournier wrote: : > For those that remmeber the other day, I had that swzone issue, where I ran out : > of swap space? I just about hit it again today, swap was up to 99% used ... I : > was able to get a ps listing in, and there were a whack of find processes : > running ... : > : > Now, I think I know which VPS they were running in, so that isn't a problem ... : > and I suspect that the find was just part of a longer pipe ... I'm just curious : > if those pipes would happen to use up any of those sockets that are : > 'evaporating', or is this totally unrelated to sockets? : :In FreeBSD, pipe() is implemented with the socketpair(2) :system call. Every pipe uses two sockets (one for each :endpoint). : :Best regards : Oliver : :-- :Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Nuh uh. pipe() is a direct implementation... no sockets anywhere. Using socketpair() will eat sockets up, but using pipe() will not. -Matt