From owner-freebsd-fs@FreeBSD.ORG Wed Jun 20 06:54:33 2007 Return-Path: X-Original-To: freebsd-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 7519416A421 for ; Wed, 20 Jun 2007 06:54:33 +0000 (UTC) (envelope-from gurdiga@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by mx1.freebsd.org (Postfix) with ESMTP id 35F8013C458 for ; Wed, 20 Jun 2007 06:54:33 +0000 (UTC) (envelope-from gurdiga@gmail.com) Received: by wx-out-0506.google.com with SMTP id h28so83575wxd for ; Tue, 19 Jun 2007 23:54:32 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cp4Cmin1JUPjO3it+IN7cwF78yRYS+itHcxJE/OMnCHdhtCPFMWtoiayFiOdk6FVp44DbB2PK9BxbFaSOdfEgYaMyR8xa4tCh+QCm6npbTOelAQ0ptJCuxfMdP3owtWZBUL/Qh/EPXEC+wxfYNQNjroq1wVSDtbkWEFGdLeFnxo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kNdw0PTfO2nfjzOoqW90XlYSgLteQp7bYJgbqkNrsmInyomcQSEsjZEzCaucxH/GzYjBNgHiJ1Rtb7Ih8uyo5JzXQXUZPDD5d5mhQzNIIS4KlKIR8vubHGYNdKA3XIca+5Jh87+zn28fBSoMk7onmjGREgvc+tnSjCesdUUzZc8= Received: by 10.78.200.20 with SMTP id x20mr108444huf.1182321006320; Tue, 19 Jun 2007 23:30:06 -0700 (PDT) Received: by 10.78.194.12 with HTTP; Tue, 19 Jun 2007 23:30:06 -0700 (PDT) Message-ID: Date: Wed, 20 Jun 2007 09:30:06 +0300 From: "Vlad GURDIGA" To: freebsd-fs@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: fs cache 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: Wed, 20 Jun 2007 06:54:33 -0000 Hello, I have FreeBSD 7-CURRENT and Ubuntu on the same computer but Firefox takes twice as long to start on a fresh boot. I've run some simple tests: - on FreeBSD it takes about 7 seconds on the first start and about 3 on subsequent startups; - on Ubuntu it takes about 3 seconds on the first start and about 1 on subsequent startups; The only difference I can see is that on Ubuntu, after first start of Firefox the memory use for cache is 22% vs. 0% on FreeBSD. My guess is that this is the cause of slower startups on FreeBSD. My question is: can I tune UFS2 in such a way that the most frequently used desktop applications would remain for a longer time in disk cache? In both cases I use GNOME 2.18, GNOME System Monitor 2.18, and Firefox 2. Both FreeBSD 7-CURRENT (src and ports tree) and Ubuntu 7.01 (2.6.20-16-generic kernel) are up to date. Both are SMP and 32bit. Here is the system configuration: - Intel DP965LT mother-board; - dual-core Pentium D 820; - 1GB of dual-channel-enabled DDR2 PC5300 at 667 MHz; - Seagate, BARRACUDA 7200.7 Plus, 160GB, ST3160827AS, 8M cache, with NCQ;