Date: Tue, 15 May 2007 19:14:14 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-stable@FreeBSD.ORG, scrappy@FreeBSD.ORG Subject: Re: Does a pipe take a socket ... ? Message-ID: <200705151714.l4FHEEhH030766@lurza.secnetix.de> In-Reply-To: <56C58BA5691DD189D68AE399@ganymede.hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "FreeBSD is Yoda, Linux is Luke Skywalker" -- Daniel C. Sobral
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705151714.l4FHEEhH030766>