Re: Freeing vnodes.

From: Don Lewis (truckman_at_FreeBSD.org)
Date: 03/16/05

  • Next message: Alexander Leidinger: "Re: Freeing vnodes."
    Date: Wed, 16 Mar 2005 00:58:39 -0800 (PST)
    To: phk@phk.freebsd.dk
    
    

    On 16 Mar, Poul-Henning Kamp wrote:
    > In message <20050316084106.GC28328@cirb503493.alcatel.com.au>, Peter Jeremy wri
    > tes:
    >>On Tue, 2005-Mar-15 11:11:32 -0800, Matthew Dillon wrote:
    >>> syncer: I've always wanted to rewrite the syncer to be per-mount
    >>> or per-physical-device so it could sync out to multiple
    >>> physical devices simultaniously.
    >>
    >>My current bitch with syncer is that it can run for up to around 8msec
    >>(on an AMD XP-1800). This screws up interrupt latency.

    This is likely to be the MNT_VNODE_FOREACH loop in VOP_SYNC(). A lot of
    CPU cycles can be wasted even when there is no real work to do because
    the list of cached vnodes for the file system has to be traversed each
    time. This loop should be skipped in the MNT_LAZY case, and the inode
    timestamp updates should be handled by putting them on the syncer
    worklist.

    > And throw thousands of I/O requests on the queue at once, which screws
    > up I/O performance.

    That is also a problem with the loop in VOP_SYNC(). This behaviour is
    very noticeable when a machine modifies a lot of files.

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


  • Next message: Alexander Leidinger: "Re: Freeing vnodes."

    Relevant Pages

    • Re: It is not possible to create a recursive function over a pyGTK treeStore
      ... I would like to create a minimalist file browser using pyGTK. ... I wrote a recursive function that would go through the file system ... But I don't see the point of this listcomp when you could filter out special names in the for loop. ... for filename in filenames: ...
      (comp.lang.python)
    • Re: Recurring problem: processes block accessing UFS file system
      ... >> during a snapshot is fairly easy to reproduce, I did so and collected this ... so I traced each pid associated with a locked vnode separately. ... Softupdate processing performed after the loop has started might ... Maybe vnode recycling for a file system should be ...
      (freebsd-stable)
    • Re: get list of files in subdirectories?
      ... > drieux wrote: ... this is not a call for the return to 'town/gown' kvetching. ... of file system looping, it is less clear how one exits ... when it is time to get out of the loop... ...
      (perl.beginners)
    • Re: Excessive delays due to syncer kthread
      ... > I am trying to do some video capture and have been losing occasional ... > Can anyone suggest why syncer would be occasionally running for ... You're probably running into the inode timestamp update loop. ... VOP_FSYNCfor any that have unwritten timestamp updates. ...
      (freebsd-stable)
    • Re: Upgraded from W98 to XP Pro
      ... Checking consistency file system on C: ... Windows allocated files. ... The computer then went into a loop: Restart>Windows XP start ... I let the loop run approx 9 times - shut down computer. ...
      (microsoft.public.windowsxp.setup_deployment)