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

From: Clifton Royston (cliftonr_at_lava.net)
Date: 10/23/04

  • Next message: Erik Udo: "label editing"
    Date: Fri, 22 Oct 2004 12:32:40 -1000
    To: hackers@freebsd.org
    
    

      I have seen some conflicting information posted about this in the
    past, and I figure this is the best place to get an authoritative
    answer.

      For a large temporary file system which must hold short-lived files,
    mostly small but occasionally several very large ones (e.g. 100MB+), is
    it better for performance and stability if this file system:

      1) resides on a swap-backed MFS and trusts the OS to swap out
    low-priority blocks if needed under RAM pressure, or

      2) on a regular UFS and trusts the OS to buffer as many blocks as
    possible into RAM when RAM is free?

      The application here is amavisd-new, which needs transient space for
    unpacking and virus-checking mail files in transit. It is designed
    such that the files never need to exist permanently; it's just fine if
    everything vanishes on a reboot.

      Each scanning server has about 1GB of RAM, which is mostly free most
    of the time. I initially had /var/amavis a regular directory under the
    /var fs; then I switched to a 128MB MFS system backed by a 1GB swap on
    /dev/ad0s1b. This works 99.99% of the time, and seemed to run a little
    faster, but occasionally a couple big ZIP files can come through at
    once and run it out of space.

      I temporarily enlarged it to 256MB which is working, but as I worked
    out the worst case scenario, I realized it really would need to be
    nearly 1GB to handle multiple zip-bombs each hitting the 100MB size
    limit. This makes me wonder if it's wise to specify a 1GB MFS on a
    system with only 1GB RAM, or wiser to just revert to a regular file
    system?

      -- Clifton

    -- 
              Clifton Royston  --  cliftonr@tikitechnologies.com 
             Tiki Technologies Lead Programmer/Software Architect
    Did you ever fly a kite in bed?  Did you ever walk with ten cats on your head?
      Did you ever milk this kind of cow?  Well we can do it.  We know how.
    If you never did, you should.  These things are fun, and fun is good.
                                                                     -- Dr. Seuss
    _______________________________________________
    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: Erik Udo: "label editing"

    Relevant Pages

    • Re: Technical Question
      ... I agree with Woodstock, I would miss your posts...I learn from them even ... and as far as I know no other RAM regular lives in my political district. ... responders have noticed RAM is a community where we share with each other. ...
      (rec.arts.mystery)
    • Re: Virtual Memory is too low
      ... the ram chips. ... 64 megabyte ram chip, then all it can mechanically move to and from ... megabytes of disk space that can be used for regular data is instead ... computer users never use 50 percent of the virtual memory anyways. ...
      (microsoft.public.windowsxp.general)
    • Starting in regular mode
      ... It is a PIII, 256 MB RAM, 10 GB free HD space. ... No viruses or malware evident - all anti virus, anti malware programs up to date and run regularly.. ... I can only get the computer to start in Safe Mode, whenever I try to start it normally, it starts up, shows the XP Professional splash screen, there is some hard disk activity for about 30 seconds and then nothing except a regular hard disk activity light flash. ...
      (microsoft.public.windowsxp.basics)
    • Re: A little scary -Not Really
      ... $2.81.9 Considering I have a gasser and the Ram, ... Gassed up the Dakota yesterday at $2.76 for regular. ...
      (rec.outdoors.rv-travel)
    • Re: Just passing through
      ... More on topic for RAM, for Christmas of 2007 my wonderful family gave me ... And then the answer appeared - gliders. ... gliders are definitely "Fun, Fun, Fun, 'til Daddy takes the towplane ... Bob McKellar ...
      (rec.aviation.military)