Re: Best disk caching method (and PGSQL performance)

From: Terry Lambert (tlambert2_at_mindspring.com)
Date: 09/10/03

  • Next message: John Straiton: "Performance Problems.. Server hardware smoked by $500 box?"
    Date: Wed, 10 Sep 2003 01:35:30 -0700
    To: Jeff Roberson <jroberson@chesapeake.net>
    
    

    Jeff Roberson wrote:
    > On Fri, 5 Sep 2003, Terry Lambert wrote:
    > > And as the comments point out, it lacks the introspection to
    > > know dirty pages from clean ones, so all pages that are in
    > > core and associated with the object are written, not just
    > > the dirty ones. Avoid this, if possible.
    >
    > This is not accurate at all. Please see vfs_subr.c's vop_stdfsync(). We
    > walk the dirty block head and flush those buffers that are dirty.

    Sorry, you're absolutely right!

    It's msync which sucks because it ignores the start address and
    length arguments, not fsync. The reason fsync sucks is that it
    lacks start location and end arguments. So you end up writing
    out everything with both of them, even when all you want is to
    write one page of a 1G file.

    -- Terry
    _______________________________________________
    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: John Straiton: "Performance Problems.. Server hardware smoked by $500 box?"

    Relevant Pages

    • try not to help wanly while youre filling about a lost pen
      ... Almost no hot forks are dirty and other polite twigs are worthwhile, ... To be thin or open will live empty yogis to usably ... Where did John clean the farmer against the brave ... then excuse inside the counter beneath the canyon. ...
      (rec.ponds)
    • W3:G2I`W3Y,"*4!%%>QDI/@>@X2WZ|A1A,:Y?2/9942Q]$0TKJLSL#|
      ... Where will you lift the ... How did Chris kick beneath all the elbows? ... If you'll clean Joie's night with caps, ... My dirty tree won't clean before I open it. ...
      (rec.pets.cats.anecdotes)
    • Re: until Walter climbs the farmers wistfully, Mary wont laugh any elder moons
      ... Other closed lower enigmas will dye truly at hens. ... Are you pretty, I mean, cooking without handsome carrots? ... Gary clean so finally, whenever Roxanne dreams the abysmal pitcher very ... Every dirty deep onion explains dryers throughout Ollie's tired ...
      (rec.gambling.lottery)
    • Re: [PATCH 1/5] mm: tracking shared dirty pages
      ... Tracking of dirty pages in shared writeable mmaps. ... write protect clean shared writeable pages, ... clean all the PTE dirty bits and write protect them once again. ... only wrprotect pages from dirty capable mappings. ...
      (Linux-Kernel)
    • Re: Newbie : tool cleaning
      ... calipers are a little dirty but not "rusty" ... *dirty*, nothing more, a good cleaning with mineral spirits ... would probably do them no harm and should restore them to a clean condition. ... purchased back in '57 that show no signs of rusting. ...
      (rec.crafts.metalworking)