From owner-freebsd-questions@FreeBSD.ORG Fri Jun 29 07:14:43 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 D857C16A41F for ; Fri, 29 Jun 2007 07:14:43 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from smtp.teledomenet.gr (smtp.teledomenet.gr [213.142.128.2]) by mx1.freebsd.org (Postfix) with ESMTP id 95A8913C447 for ; Fri, 29 Jun 2007 07:14:43 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from iris (unknown [192.168.1.71]) by smtp.teledomenet.gr (Postfix) with ESMTP id 1C93B1428B7; Fri, 29 Jun 2007 10:14:46 +0300 (EEST) From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Fri, 29 Jun 2007 10:14:07 +0300 User-Agent: KMail/1.9.1 References: <4D15FF0C-0531-4455-9631-F60D939F9EB2@falconknight.com> <200706290141.07063.pieter@degoeje.nl> In-Reply-To: X-NCC-RegID: gr.telehouse MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706291014.08311.nvass@teledomenet.gr> Cc: Pieter de Goeje , Shawn O'Connor Subject: Re: mdconfig using malloc() 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, 29 Jun 2007 07:14:43 -0000 On Friday 29 June 2007 03:01, Shawn O'Connor wrote: > >> I saw some old post advocated using -t swap instead, saying that swap > >> probably wouldn't be used until real memory was consumed. But, on my > >> 6.2 machine that immediately raises the swap usage to 2GB and does > >> use disk instead of RAM when I test using it. > > > > That's because you used -o reserve. Leave it out and it'll be fine. > > When using with -o reserve and swap it returns immediately, just like > with -t malloc without the -o reserve (except without the nasty > repercussions of running out of RAM). My problem isn't that it uses > the swap (nothing is using it anyway), but that it is using disk at > all, which is way to slow for what I'm trying to do. Why do you even have swap? Is it for kernel dumps? Why don't you simply eliminate the swap device? But, as Pieter also suggested, I believe tmpfs would be much more efficient in every regard. Perhaps not stability-wise, though the code is new in the FreeBSD src tree, it has been in the NetBSD src tree since right after SoC2005. Nikos