From owner-freebsd-questions@FreeBSD.ORG Fri Jun 12 06:07:35 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACF8F1065670 for ; Fri, 12 Jun 2009 06:07:35 +0000 (UTC) (envelope-from z.szalbot@lcwords.com) Received: from relay.lc-words.com (relay.lc-words.com [62.121.130.110]) by mx1.freebsd.org (Postfix) with ESMTP id 609DD8FC19 for ; Fri, 12 Jun 2009 06:07:35 +0000 (UTC) (envelope-from z.szalbot@lcwords.com) Received: from localhost (localhost [127.0.0.1]) by relay.lc-words.com (Postfix) with ESMTP id 3EA51B808F for ; Fri, 12 Jun 2009 08:05:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lcwords.com; s=mainlcwords; t=1244786748; bh=wu158RgCZO+ze9BScOesylzPl5mpzmLuwct/Z8fsiUk=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=EjK4Q7zmps/cB/7LPEEHKBkVebAJVcNQnIzPIi+L0Y0TxwhwTUXAhGoAUdRNyfoHs e04noRe60Kf1+/LU0jYVv7oSm3LuPEM7a9CHgGxbvDkb6C6ebT1thq8WsW5jumQAvY gc9Uw+MuoAaaVPUCEP5h8/90ZEgx96QEeNDkcGdg= Received: from relay.lc-words.com ([127.0.0.1]) by localhost (relay.lc-words.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 84620-01 for ; Fri, 12 Jun 2009 08:05:47 +0200 (CEST) Received: from [127.0.0.1] (aejo234.neoplus.adsl.tpnet.pl [79.186.248.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: z.szalbot@lcwords.com) by relay.lc-words.com (Postfix) with ESMTPSA id 96994B807E for ; Fri, 12 Jun 2009 08:05:47 +0200 (CEST) Message-ID: <4A31F0A2.3060704@lcwords.com> Date: Fri, 12 Jun 2009 08:07:30 +0200 From: Zbigniew Szalbot User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Subject: ramdisk creation 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: Fri, 12 Jun 2009 06:07:35 -0000 Hello, I would like to speed up amavisd operation by allowing it to use ramdisk, so I thought I would follow the advice given here: http://www.stahl.bau.tu-bs.de/~hildeb/postfix/amavisd_tmpfs.shtml However, I just want to make sure I get the procedure right. In my case, the temp folder is /var/amavisd/tmp So (1) I need to create an entry in /etc/fstab md /var/amavisd/tmp mfs rw,-s512m 2 0 (2) create the ramdisk mdmfs -s 512m md /var/amavids/tmp (3) mount the ramdisk mount /var/amavids/tmp Is the procedure right? I read mdmfs man and hope I am OK here. If it is OK, I guess I need to stop amavisd before creating ramdisk and mounting it, right? Thanks a lot for all feedback you can give me! -- Zbigniew Szalbot www.fairtrade.net.pl