From owner-svn-src-head@FreeBSD.ORG Thu Jan 8 00:22:36 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 54593D3A; Thu, 8 Jan 2015 00:22:36 +0000 (UTC) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 06E81864; Thu, 8 Jan 2015 00:22:35 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 8448225D37D1; Thu, 8 Jan 2015 00:22:32 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 404DBC76FDA; Thu, 8 Jan 2015 00:22:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id le-QMW-U3i4P; Thu, 8 Jan 2015 00:22:30 +0000 (UTC) Received: from [IPv6:fde9:577b:c1a9:4410:49fb:45e3:fe1f:48d4] (unknown [IPv6:fde9:577b:c1a9:4410:49fb:45e3:fe1f:48d4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 6A8BFC76FD6; Thu, 8 Jan 2015 00:22:29 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Subject: Re: svn commit: r276747 - head/sys/netpfil/pf From: "Bjoern A. Zeeb" In-Reply-To: <20150107204631.GG15484@FreeBSD.org> Date: Thu, 8 Jan 2015 00:21:57 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201501060903.t06934qp081875@svn.freebsd.org> <20150107204631.GG15484@FreeBSD.org> To: Gleb Smirnoff X-Mailer: Apple Mail (2.1993) Cc: Craig Rodrigues , svn-src-head@freebsd.org, svn-src-all@freebsd.org, Nikos Vassiliadis , src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2015 00:22:36 -0000 > On 07 Jan 2015, at 20:46 , Gleb Smirnoff wrote: >=20 > On Tue, Jan 06, 2015 at 09:03:04AM +0000, Craig Rodrigues wrote: > C> Author: rodrigc > C> Date: Tue Jan 6 09:03:03 2015 > C> New Revision: 276747 > C> URL: https://svnweb.freebsd.org/changeset/base/276747 > C>=20 > C> Log: > C> Instead of creating a purge thread for every vnet, create > C> a single purge thread and clean up all vnets from this thread. > C> =20 > C> PR: 194515 > C> Differential Revision: D1315 > C> Submitted by: Nikos Vassiliadis >=20 > I am not sure that this is a good idea. The core idea of VNETs > is that they are isolated from each other. If we serialize purging, > then vnets are strongly affecting each other. >=20 > AFAIU, from the PR there is some panic fixed. What is the actual bug > and why couldn't it be fixed with having per-vnet thread? You don=E2=80=99t 30000 whatever pf purging threads on a system all = running, possibly competing for some resources, e.g., locks? =E2=80=94=20 Bjoern A. Zeeb Charles Haddon Spurgeon: "Friendship is one of the sweetest joys of life. Many might have failed beneath the bitterness of their trial had they not found a friend."