From owner-freebsd-fs@FreeBSD.ORG Fri May 18 06:28:43 2007 Return-Path: X-Original-To: fs@freebsd.org Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C272616A400 for ; Fri, 18 May 2007 06:28:43 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.231]) by mx1.freebsd.org (Postfix) with ESMTP id 7B45813C448 for ; Fri, 18 May 2007 06:28:41 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: by qb-out-0506.google.com with SMTP id q12so430209qba for ; Thu, 17 May 2007 23:28:40 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hic7BPQ0tOF2jODWpUJU6xAanKZciH7JLEl+QjsL3vhYw7zn36NiGDSIznIgQe4byI4mHQgfvKIVhJSIFwqMeGMrcGnrnwwU6AsP1g/Ox7KBygN4fPwd1XpnchY4tyciZV+r+CwcoYBNYGX3/Z3i5mmuWhHs3FbeWw/dWCxEvn8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cqHHho2+hunHRB3c7XzQoEy7kenWzCirAFQZl5qwS1PnMpyhPNiHbrXr2fOhMOZUt1AWc4uYpQBk1+q1S4lSdb2c2cQxG5WqCCLdI7adtAJs6WfoMWqjJ9+M4ofZSHuF0nfW8aafPtYWr+ahyl/YBoO5HKngEr5fAtOTtklgGqs= Received: by 10.35.89.10 with SMTP id r10mr2214532pyl.1179469720779; Thu, 17 May 2007 23:28:40 -0700 (PDT) Received: by 10.35.78.11 with HTTP; Thu, 17 May 2007 23:28:40 -0700 (PDT) Message-ID: Date: Fri, 18 May 2007 14:28:40 +0800 From: "Howard Su" To: "Eric Anderson" In-Reply-To: <464C3DA7.3020003@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <464C3DA7.3020003@freebsd.org> Cc: fs@freebsd.org Subject: Re: size limit for TMPFS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 06:28:43 -0000 On 5/17/07, Eric Anderson wrote: > > Track the memory usage on your own? As you allocate, keep a counter and This is doable. The down site for this is we need another mutex to protect this resource usage. This mutex will result performance issue. because this mutex is per mount point. and when alloc/read a node, a directory. > total up the usage outside of uma. (3) sounds good, except it may not > be accurate, and that could lead to confusion for someone. Can we state, the tmpfs size only limit to the file size. Meta data will not be counted. Meta data limit will be adjusted by the kernel resource or explicitly specified by the user. -- -Howard