Re: Tuning Postgresql on FreeBSD 5.1

From: Scott Lambert (lambert_at_lambertfam.org)
Date: 08/26/03

  • Next message: Maciej Freudenheim: "Re: Tuning Postgresql on FreeBSD 5.1"
    Date: Tue, 26 Aug 2003 00:48:56 -0400
    To: freebsd-performance@freebsd.org
    
    

    On Mon, Aug 25, 2003 at 09:20:46PM -0700, Sean Chittenden wrote:
    > > > while still maintaining reasonable file system performance (ext2 is
    > > > faster than ext3 by a wide margin, but ext2 is _not_ a reliable FS).
    > >
    > > > > #fsync = true
    > > >
    > > > Change this to false.
    > >
    > > This is a funny thing to suggest after the filesystem comment.
    >
    > :) Did you enjoy that? :) I should clarify that piece of "advice"
    > though.
    >
    > If you're _sure_ power isn't going to fail (using a UPS) and make
    > regular backups (standard operating procedure), then fsync = false
    > can be a good thing in terms of performance (roughly speaking, it
    > <snip>
    > keep fsync = true. If, however, you have mitigated the risks to
    > levels that your business/operation is comfortable with (your data
    > center is on generators, your DB systems have UPSs, are using RAID,
    > and make frequent backups), then I would set fsync = false for most
    > noncritical apps (non-financial, non-medical).

    I've had more UPS failures than grid failures in the past year and a
    half. In the blackout, one of my APCs smoked rather than do it's job
    the second time the power went down.

    The UPS maintainance people at on of the colo facilities I use managed
    to drop power to everything while doing routine maintenance on their
    UPS. That left me with a lot of unexpected softupdates inconsistencies.
    And three machines that dropped to single user mode on restart. One
    machine's disk didn't survive. We lost a lot of files on the other two
    systems. The sad part being that the backups had just started for the
    day when they burped the UPS. Two hours later and it wouldn't have hurt
    as bad.

    A UPS doesn't necesarily reduce your likelyhood of having a power
    failure. Two fully online UPS's and redundant power supplies in each
    machine might.

    BTW, e-mail and web hosting for Grandma and Aunt Bessie and
    Uncle Joe are critical services too. No, really, I'm serious.

    -- 
    Scott Lambert                    KC5MLE                       Unix SysAdmin
    lambert@lambertfam.org      
    _______________________________________________
    freebsd-performance@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-performance
    To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"
    

  • Next message: Maciej Freudenheim: "Re: Tuning Postgresql on FreeBSD 5.1"

    Relevant Pages

    • Re: "Mysterious" system crashes
      ... did when I took electronics and worked in that trade before getting ... made to appear as a capacitive load and the power company may give you ... little to the home-computer UPS buyer other than when he's trying to ... and offer some protection for less than $600. ...
      (comp.os.vms)
    • Re: The Fuckup Fairy thwarted (was Re: Double Whammy - the Fuckup Fairy and the Pontificator)
      ... I finally got the UPS I've been requesting for the past ... When isdmon3 reboots, it now sends me a message to tell me so. ... failures since I started tracking this by an E-mail at reboot time. ... my Windows machine also lost power and rebooted. ...
      (alt.sysadmin.recovery)
    • Re: back-up power supply
      ... :I was thinking to get a back-up power supply for my PC and saw a book ... The least expensive type of UPS is 'passive'. ... the battery goes back out again when the power returns. ... One issue with passive UPSs is that the electricity is not flowing ...
      (comp.security.misc)
    • Re: UPS for servers?
      ... >> I'm looking for a UPS to hook up to a rack containing three servers. ... > 1) Power goes out. ... > 3) The machines send out a broadcast message to users telling them the ... I found "man apcupsd" very helpful. ...
      (Debian-User)
    • Re: Nut and RAID on FreeBSD 7.0
      ... >> power goes out for more than say 5 minutes or so. ... >> system goes into a safe state when the battery gets low, then the ups ... >> The second question has to do with a rc.d script that nut recommends ... The script does a 'upsdrvctl shutdown' and then a sleep ...
      (freebsd-questions)