Re: Relative performance of swap-backed MFS vs. regular UFS?

From: Robert Watson (rwatson_at_freebsd.org)
Date: 10/24/04

  • Next message: Ketrien I. Saihr-Kesenchedra: "Re: [PATCH] Re: Linksys PCM200"
    Date: Sun, 24 Oct 2004 00:17:18 +0100 (BST)
    To: Igor Pokrovsky <ip@doom.homeunix.org>
    
    

    On Sat, 23 Oct 2004, Igor Pokrovsky wrote:

    > On Sat, Oct 23, 2004 at 01:12:46PM -0500, Ryan Sommers wrote:
    > > >
    > > >You can also use md(4). In my case I use it for /tmp.
    > > >
    > > MFS is the same thing as md(4). mfs = Memory File System, md = Memory
    > > Disk. Difference is only in the name.
    >
    > I thought mfs is allocated from virtual memory, while md - directly from
    > RAM. Am I wrong?

    When you use mdconfig(8) to configure the md device, you get to specify
    where you want the storage to come from. The possibilities include malloc
    (kernel address space + locked memory), but also vnode (file) and swap
    (pageable memory). Except during early netboot where swap is not
    available, I would recommend against using malloc-backed disks. For small
    disks it's OK, but as they get large they chew into kernel memory and
    address space, and so make it much easier for the system to run out of
    kernel address space.

    Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
    robert@fledge.watson.org Principal Research Scientist, McAfee Research

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Ketrien I. Saihr-Kesenchedra: "Re: [PATCH] Re: Linksys PCM200"

    Relevant Pages

    • Re: How does Debian load the kernel modules
      ... Windows stupidly swaps the System memory by default. ... Does linux force the modules to stay in RAM or does it try to swap them when it's RAM-hungry? ... I think linux does not swap kernel memory due to its "monolitic kernel" ...
      (Debian-User)
    • Re: Kernel option: SWAP
      ... > recompiling the kernel. ... > for socalled swap devices or swap files in your kernel that are ... Linux uses is paging space) is space on the hard drive for the memory ...
      (Fedora)
    • Re: limitiation on memory allocation
      ... arrays that are considerably bigger than the physical memory size? ... Yes, upto kernel limits... ... swap space is completely separate from the rest of the equation. ... GB of memory total (for obvious reasons). ...
      (freebsd-questions)
    • Re: [ck] Re: 2.6.20-ck1
      ... > Has anyone tried booting a kernel with the various patches in question ... > when the kernel thinks it has relatively little memory ... performance improvements for these machines are based on numbers, ... Is it possible to command a program's memory usage be put into swap on ...
      (Linux-Kernel)
    • Re: Whats an oom-killer when its at home?
      ... Anyway the kernel is between a rock and a hard place when it decides to deploy the OOMK, the other choice would be to abend. ... Fedora docs say that oom-killer should pick on big niced programs first, which would make Malaria-control its prime target. ... The program is capable of oversubscribing memory all by itself: it has successfully run to completion despite expanding its heap so it occupies up to 400 MB of virtual memory despite my box only having 256 MB RAM and 1 GB of swap space. ...
      (uk.comp.os.linux)