From owner-freebsd-performance@FreeBSD.ORG Thu Nov 10 05:43:43 2011 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C613106564A for ; Thu, 10 Nov 2011 05:43:43 +0000 (UTC) (envelope-from krichy@tvnetwork.hu) Received: from smtp-a.tvnetwork.hu (smtp-a.tvnetwork.hu [109.61.0.51]) by mx1.freebsd.org (Postfix) with SMTP id 780B48FC0C for ; Thu, 10 Nov 2011 05:43:41 +0000 (UTC) Received: (qmail 30561 invoked by uid 1001); 10 Nov 2011 06:16:59 +0100 Received: from 109.61.101.194 by smtp-a.tvnetwork.hu (envelope-from , uid 64011) with qmail-scanner-1.25st (clamdscan: 0.88.1/1396. spamassassin: 3.0.3. perlscan: 1.25st. Clear:RC:1(109.61.101.194):SA:0(-1.0/5.0):. Processed in 1.751712 secs); 10 Nov 2011 05:16:59 -0000 X-Spam-Status: No, hits=-1.0 required=5.0 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp-a.tvnetwork.hu X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.3.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Envelope-From: krichy@tvnetwork.hu Received: from unknown (HELO krichy.tvnetwork.hu) (109.61.101.194) by smtp-a.tvnetwork.hu with SMTP; 10 Nov 2011 06:16:57 +0100 Received: by krichy.tvnetwork.hu (Postfix, from userid 1000) id 79F9F4C25; Thu, 10 Nov 2011 06:16:57 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by krichy.tvnetwork.hu (Postfix) with ESMTP id 6F7944C24 for ; Thu, 10 Nov 2011 06:16:57 +0100 (CET) Date: Thu, 10 Nov 2011 06:16:57 +0100 (CET) From: Richard Kojedzinszky To: freebsd-performance@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 X-Mailman-Approved-At: Thu, 10 Nov 2011 11:55:10 +0000 Subject: ufs multilabel performance X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2011 05:43:43 -0000 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