From owner-freebsd-security@FreeBSD.ORG Sat Apr 14 19:37:47 2012 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D6BC1065674 for ; Sat, 14 Apr 2012 19:37:47 +0000 (UTC) (envelope-from krichy@tvnetwork.hu) Received: from krichy.tvnetwork.hu (unknown [IPv6:2a01:be00:0:2::10]) by mx1.freebsd.org (Postfix) with ESMTP id F39708FC16 for ; Sat, 14 Apr 2012 19:37:46 +0000 (UTC) Received: by krichy.tvnetwork.hu (Postfix, from userid 1000) id EFBE3216B2; Sat, 14 Apr 2012 21:37:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by krichy.tvnetwork.hu (Postfix) with ESMTP id E3078203CC for ; Sat, 14 Apr 2012 21:37:38 +0200 (CEST) Date: Sat, 14 Apr 2012 21:37:38 +0200 (CEST) From: Richard Kojedzinszky To: freebsd-security@freebsd.org Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: ufs multilabel performance (fwd) X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2012 19:37:47 -0000 Dear list, Although it is not only security-related question, I did not get any answer from freebsd-performance. The original question is below. Can someone give some advice? Thanks in advance, Kojedzinszky Richard Euronet Magyarorszag Informatikai Zrt. ---------- Forwarded message ---------- Date: Thu, 10 Nov 2011 06:16:57 +0100 (CET) From: Richard Kojedzinszky To: freebsd-performance@freebsd.org Subject: ufs multilabel performance Dear List, I've noticed that when I enable multilabel on an fs, a file creation gets around 20-30 times slower than without multilabel set. This one-liner can be used to test the differences: $ truss -D perl -e 'open(F, ">$_.file") for 1 .. 1000' And one can see that the open call takes much more when multilabel is set on an fs. It seems that only file creation needs that many time, when a file exists it is opened much faster. Could someone acknowledge this, and have some suggestions how to make it faster? Regards, Kojedzinszky Richard TvNetWork Nyrt. E-mail: krichy (at) tvnetwork [dot] hu PGP: 0x54B2BF0C8F59B1B7 Fingerprint = F6D4 3FFE AF03 CACF 0DCB 46A1 54B2 BF0C 8F59 B1B7