Re: Some ideas for FreeBSD



Am Freitag, 8. Februar 2008 17:54:03 schrieb millueradfa@xxxxxxxxx:
Well, actually, these are file backed swap devices.
You can do both file and memory backed devices. this
allows you to have a swap file on the hard disk and
mount it.

As I already wrote in another part of this thread: please explain to me why it
should be faster to have a file backed md set up as swap than a dedicated
swap partition (because there's at least two more levels of indirection
involved).

I can clearly see the need for file backed swap in special cases (for example,
where you need RAM desperately, for example for a compile, but cannot add
another partition to a system), but no matter what, it will never be faster
than a swap partition. And that was what the original poster of this
sub-thread suggested (and as such, I took it that he was referring to
memory-backed mds, because file-backed mds are never faster than "raw" access
to a hard-disk).

So, I still stand by my first assessment: the idea to use an md as swap is
stupid, at least from a performance standpoint.

--
Heiko Wundram
Product & Application Development
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: [opensuse] Swap Software RAID 1 not working, SuSE 10.3
    ... I do notice I do have swap space detected when I use ... didn't have to go raid 0 in order to fix this problem and now it works ... physical drives to make up multiple raid arrays, if my swap partition ... I have 3 G of RAM and I rarely use any swap on disk, ...
    (SuSE)
  • Re: Newbie Question About Swap Partition
    ... My swap partition is set to approximately double the RAM ... Think of swap as 'emergency memory' which the system can ...
    (comp.os.linux.setup)
  • Re: hibernate and swap partition size (newbie question)
    ... > able to hibernate/suspend to disk properly, the swap partition has to ... > be big enough to hold all of the RAM inside it, ... shut down without properly taking care of nvidia, so that is why I had ...
    (Debian-User)
  • Re: Gparted resize linux swap partition
    ... I wanted to try Ubuntu. ... partition during initial installation. ... I thought I was specifying 2Gb of swap, ... Ubuntu be aware of the newly shrunk swap partition WITHOUT reinstalling ...
    (Ubuntu)
  • Re: Which partitioning scheme gives best performance?
    ... I use several swap files in addtion to swap partition. ... > good for single kernel, 30 mb safer for multiple kernel. ...
    (comp.os.linux.misc)