From owner-freebsd-questions@FreeBSD.ORG Sun Jun 17 07:24:23 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 8E19716A4A1 for ; Sun, 17 Jun 2007 07:24:23 +0000 (UTC) (envelope-from gurdiga@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 279B813C4B0 for ; Sun, 17 Jun 2007 07:24:22 +0000 (UTC) (envelope-from gurdiga@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so1281207uge for ; Sun, 17 Jun 2007 00:24:21 -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:mime-version:content-type:content-transfer-encoding:content-disposition; b=Q28uPT9sok0vP24N2SUQDpZqZ+t+Bv9bK1fdlrUrS5ypJ/V6gbK+WL4etFQ4FYWDMYo2ixYlyQ/Oy8hHWFEsTaOttg3jqxJ6tbW6m3pItIDgQyEd4uwAYZrYMHZjUiE2sykmkFlN014S1UcDWyTaRq+rzcXxNKiOHQvylCbc38o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QJ2AExZMvHtlfmcQnAN4aWemZwm+Fio0Y30TBE3gycwTaqIxFg91PkV/1Sp0T0z9sIXcderzUZ7r418T4ltn0u/DC5Z7Grsz6CIoW3qMwQVN63bIMEkLvOislNT0VkW3o4lsLHz7PfASgFK7n8dSs6EqrNauZqnxHDfLN0cqGzY= Received: by 10.78.97.7 with SMTP id u7mr1832819hub.1182065061709; Sun, 17 Jun 2007 00:24:21 -0700 (PDT) Received: by 10.78.194.12 with HTTP; Sun, 17 Jun 2007 00:24:21 -0700 (PDT) Message-ID: Date: Sun, 17 Jun 2007 10:24:21 +0300 From: "Vlad GURDIGA" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: fs cache 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: Sun, 17 Jun 2007 07:24:23 -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, cu NCQ; As far as I know, FreeBSD does not have support for NCQ, and I do not know about Ubuntu.