From owner-freebsd-questions@FreeBSD.ORG Fri Feb 8 17:16:54 2008 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 88B5516A421 for ; Fri, 8 Feb 2008 17:16:54 +0000 (UTC) (envelope-from millueradfa@yahoo.com) Received: from web34506.mail.mud.yahoo.com (web34506.mail.mud.yahoo.com [66.163.178.172]) by mx1.freebsd.org (Postfix) with SMTP id 4CF5E13C458 for ; Fri, 8 Feb 2008 17:16:54 +0000 (UTC) (envelope-from millueradfa@yahoo.com) Received: (qmail 2562 invoked by uid 60001); 8 Feb 2008 17:16:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=HHKg/7pT8dlM4ODBux8q4SQDibezL1i0BZaYYqJSpb/Sc/GpPOZb/wVV7+sfPtRcrci9JsSnYStYx5FDOfTWp2UwaUbFPRKtIuFlArFx9v/jogIfLyOZ0cETI7A1e6npyu9OfjJfJF1wMXnUmCJLpM6MX2qJv0SOZqpEvYRW548=; X-YMail-OSG: LzzauioVM1lHEFVHuZS6reLZjaKdtF..vUJz_xbVKPeYujTfZSH79V0TCBHIAElXSsGEouC62tTDdweiiubiWpRUzBkGJbKd1c1qqcX.J730ENp4N0Y- Received: from [72.187.244.205] by web34506.mail.mud.yahoo.com via HTTP; Fri, 08 Feb 2008 09:16:52 PST Date: Fri, 8 Feb 2008 09:16:52 -0800 (PST) From: "millueradfa@yahoo.com" To: "Jason C. Wells" , freebsd-questions@freebsd.org In-Reply-To: <47AB9DA9.8080006@highperformance.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <229884.2551.qm@web34506.mail.mud.yahoo.com> Cc: Subject: Re: Some ideas for FreeBSD 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, 08 Feb 2008 17:16:54 -0000 --- "Jason C. Wells" wrote: > Heiko Wundram (Beenic) wrote: > > Am Donnerstag, 7. Februar 2008 07:32:16 schrieb > Jason C. Wells: > >> Norberto Meijome wrote: > >>> But I agree with Wojciech..do you really want to > use swap files? > >> One could mount an md filesystem and then use > that as swap. That way > >> you wouldn't need to use any disc space. As a > plus, the performance > >> would be way better than disc. > > > > Ahem, sorry, that's just plain stupid. Either the > md system is backed up by > > RAM (in which case you don't need the swap anyway; > why'd you want to access > > RAM by putting it in a swap on an md in RAM?), or > it's backed up by swap, in > > which case you have a chicken and egg problem. > > Mmm, yes. That is quite a pickle. But a chicken or > an egg would still > be inferior to an md backed swap. :) > > Regards, > Jason > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Actually, you can have file backed swap files. I have done it. However, with more than one swap file, or a swap file and a swap partition on the same disk, there ends up being quite a bit of thrashing. This is due apparently to some interaction between having two swaps on the same disk but that is jut a guess, i dont know what the cause is. The idea behind having swap files is that swap space can more easily be expanded and added on the fly. If your initial swap partition was not big enough it is more easy to more swap in another file. As well, a swap file that can grow and shrink, also would allow you to avoid having a lot of disk space consumed by unused swap, so he disk space is allocated when needed, or allow more space to easily be added if you find out you do not have enough. With applications crashing because of swap partition running out, this would be an important feature, since more swap space can be allocated in a file which is easier to do than a partition. Swap is still important on systems with small amounts of RAM, FreeBSD should be able to run on some older hardware too and should not be like Windows where you have to have 2 GHZ 2 GB of ram to run it. dynamic swap space makes it more versatile which is a good thing ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping