From owner-freebsd-fs@FreeBSD.ORG Thu Jul 29 07:48:25 2010 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA0AE1065672 for ; Thu, 29 Jul 2010 07:48:25 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 92BD98FC1C for ; Thu, 29 Jul 2010 07:48:25 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3B41F.dip.t-dialin.net [87.179.180.31]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 4265D84401F for ; Thu, 29 Jul 2010 09:32:03 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 852721F20 for ; Thu, 29 Jul 2010 09:31:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1280388719; bh=3ImWOpd0xUtDdPb1+ZkXpmzCjAnRtXL9Q3d7Jbb79I0=; h=Message-ID:Date:From:To:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=MD5uZqqwvkjdgSLhPSdsK1NMWtPzVTcCFTqYAS6nI0ReaPOw7blKQfrbd2wWyqyaH Skdxa3mb50q19S+P0GjMl12amIKGlEk7+3ahRX+d/kOVENo3dtfmeePCWQlFUcvvG7 dcoPdFrrj0/o46AwyO/D/b9sNltARAROnKCYM3/RkVg4YiQJ1msSrGlrnjGsZ3svQh w3w01P0VAmDB6OHW9pEXHBkLvKOnNgITXUp18f9ihR49qTfBivBaoi4lQTANH5pgsR 5dfg6wxRH8FOrrL5Tfv7hiXrGpM/bY4kq36VJUuwlMpinFywea29aBcspPGck8Sqc/ UNMU8FjGzjxZA== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o6T7VxuV047366 for fs@freebsd.org; Thu, 29 Jul 2010 09:31:59 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Thu, 29 Jul 2010 09:31:58 +0200 Message-ID: <20100729093158.86036msee9pbayw4@webmail.leidinger.net> Date: Thu, 29 Jul 2010 09:31:58 +0200 From: Alexander Leidinger To: fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 4265D84401F.A458F X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.1, required 6, autolearn=disabled, ALL_TRUSTED -1.00, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1280993524.56211@ooiHb94NgdK1QcU3lGha9Q X-EBL-Spam-Status: No Cc: Subject: arc cache: pagesize and/or power of 2 constraints? 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: Thu, 29 Jul 2010 07:48:26 -0000 Hi, while writting some acceptance tests for the Solaris machines at work I wondered if the size of the arc cache should be a multiple of the page size and/or a power of 2. I searched the net, but was not able to find some info regarding this. I would expect that it does not make sense to have an arc cache size which is not a multiple of the page size. And depending on how the arc cache is implemented, it would make sense to have it even as a power of 2 size (even if it is able to handle non-power-of-2 sizes). Did someone had a look at this in FreeBSD? Bye, Alexander. -- Reporter, n.: A writer who guesses his way to the truth and dispels it with a tempest of words. -- Ambrose Bierce, "The Devil's Dictionary" http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137