Re: Some ideas for FreeBSD




--- "Jason C. Wells" <jcw@xxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxx mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@xxxxxxxxxxx"


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
_______________________________________________
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: Cant Compile Stalin
    ... Recent versions of gcc require a lot more memory with high ... increasing the amount of swap space you have, ... This performs very poorly, swap is bad enough, but a swap file is ... Linux memory management lies. ...
    (comp.lang.scheme)
  • Re: Hibernation fails
    ... the fact that suspend to hibernation was currently implemented. ... The hibernation image is saved in a swap partition or in a swap file ... The kernel can be configured to use a swap partition or a swap file (or ...
    (Ubuntu)
  • SUMMARY: performances of swap file vs swap partition
    ... The evoked reasons are that a swap file will be a bit slower because of the ... another disk and even better, the latter being on another controller. ... swap partition in /etc/vfstab. ...
    (SunManagers)
  • Re: Swapping even when turned off?
    ... P.S. I've got 4GB of RAM, with 2GB swap files on each of two physical hard ... > Swapping memory is used for one thing and one thing only: ... > Swapping them out would free memory, but that memory would not be used, ... >> What on earth would prompt someone to turn off the swap file. ...
    (microsoft.public.windowsxp.general)
  • Re: swap file vs swap partition
    ... I would like to share some difference between swap file and swap ... If the hard disk is full or corrupted,swap file will get damaged. ... We can able to create and keep the swap file on external device eg: ... Swap Partition ...
    (comp.os.linux.setup)