From owner-freebsd-questions@FreeBSD.ORG Wed Jun 27 10:36:59 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8728716A479 for ; Wed, 27 Jun 2007 10:36:59 +0000 (UTC) (envelope-from unixvn@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.freebsd.org (Postfix) with ESMTP id 47BBD13C4B8 for ; Wed, 27 Jun 2007 10:36:59 +0000 (UTC) (envelope-from unixvn@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so238736pyb for ; Wed, 27 Jun 2007 03:36:58 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=n4WVh7CaYdwfb9Qtrpnnof4IzjJMNl9thxL1by219DoUAQgRmSBSrK4H/4lUwMXmVpdLC57xAJa2fZcZeeuQp4ws1eHSlfmU75GEV2IWL+4Jwkp798ZULPq/wBYNVHJ5YJs3dhneE1VlfhBqKLB+bqFB8WCxjMBPGlF+nwF/JTw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=OQFY9h0MczZEgeFYDvojSOivT/6FxyKngcOB7Ky8HGEi1Lxw9FG/UzjnB0i/igNWhbIRLMJacSdZgTZb+MMhdeCMgyskfTSUWpemaLbKAOg0oq7slIIqPKv7gLgR2qO/Ein1Gs4y5Iv9CKVSb9JavdSECgnc2OjaDriKibc/pDQ= Received: by 10.65.138.4 with SMTP id q4mr604884qbn.1182939079281; Wed, 27 Jun 2007 03:11:19 -0700 (PDT) Received: by 10.65.252.9 with HTTP; Wed, 27 Jun 2007 03:11:19 -0700 (PDT) Message-ID: <64b284310706270311j2a6af2f6i6766b483a4b66a5c@mail.gmail.com> Date: Wed, 27 Jun 2007 14:11:19 +0400 From: "Nguyen Tam Chinh" To: FreeBSD-Questions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-stable@freebsd.org Subject: UFS2 optimization for many small files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 10:36:59 -0000 Greetings, We're going to build a server with some 1Tb of over 500 million small files with size from 0,5k to 4k. I'm wonder if the ufs2 can handle this kind of system well. From newfs(8) the min block size is 4k. This is not optimal in our case, a 1k or 0,5k block is more effective IMHO. I'd be happy if anyone can suggest what does fragment (block/8) in the ufs2 mean and how this parameter works. I know It's better to read the full ufs2 specification, but hope that someone here can give a hint. Please advice with optimizations or tricks. Thank you very much. -- With best regards, | The Power to Serve Nguyen Tam Chinh | http://www.FreeBSD.org