Re: NFS small files

From: Joseph Koshy (joseph.koshy_at_gmail.com)
Date: 03/09/05

  • Next message: ISP Informatique: "FreeBSD 5.3 et multiprocessor"
    Date: Wed, 9 Mar 2005 04:15:51 +0000
    To: Peter Hessler <phessler@coverity.com>
    
    

    > I should mention that copying the same directory on the nfs server takes

    Filename resolution over NFS involves multiple round-trip requests,
    one for each component of the file's pathname.

    For example, assuming that '/mnt' is an NFS mount-point, accessing a
    file named '/mnt/FreeBSD/src/sys/sys/file.h,v' results in the following
    NFS requests:

    [Edited output from ethereal]

     1 0.000000 ::1 ::1 NFS V3
    LOOKUP Call (Reply In 2), DH:0xa9a212b8/FreeBSD
    V3 Procedure: LOOKUP (3)
    what: dir
    Name: FreeBSD

    2 0.000116 ::1 ::1 NFS V3
    LOOKUP Reply (Call In 1), FH:0xcd6610c4
    Status: OK (0)

    3 0.000162 ::1 ::1 NFS V3
    LOOKUP Call (Reply In 4), DH:0xcd6610c4/src
    V3 Procedure: LOOKUP (3)
    what: dir
    Name: src

    4 0.000194 ::1 ::1 NFS V3
    LOOKUP Reply (Call In 3), FH:0x5c9e0ec6
    Status: OK (0)

    5 0.000224 ::1 ::1 NFS V3
    LOOKUP Call (Reply In 6), DH:0x5c9e0ec6/sys
    V3 Procedure: LOOKUP (3)
    what: dir
    Name: sys

    6 0.000253 ::1 ::1 NFS V3
    LOOKUP Reply (Call In 5), FH:0xb4d2113a
    Status: OK (0)

    7 0.000281 ::1 ::1 NFS V3
    LOOKUP Call (Reply In 8), DH:0xb4d2113a/sys
    V3 Procedure: LOOKUP (3)
    what: dir
    Name: sys

    8 0.000312 ::1 ::1 NFS V3
    LOOKUP Reply (Call In 7), FH:0xb0f9f738
    Status: OK (0)

    9 0.000338 ::1 ::1 NFS V3
    LOOKUP Call (Reply In 10), DH:0xb0f9f738/file.h,v
    V3 Procedure: LOOKUP (3)
    what: dir
    Name: file.h,v

    10 0.000366 ::1 ::1 NFS V3
    LOOKUP Reply (Call In 9), FH:0x58ea0f3a
    Status: OK (0)

    11 0.002220 ::1 ::1 NFS V3
    ACCESS Call, FH:0xa9a212b8
    V3 Procedure: ACCESS (4)
    object
    access: 0x3f

    I can imagine that the extra latency induced by these round-trips would be
    adding to elapsed time for your test.
     

    -- 
    FreeBSD Volunteer, http://people.freebsd.org/~jkoshy
    _______________________________________________
    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: ISP Informatique: "FreeBSD 5.3 et multiprocessor"

    Relevant Pages

    • Re: Diskless boot problem
      ... No complaints whatsoever.The exact os version on NFS server is 5.4-RC2. ... Building the boot loader arguments ... exec /sbin/oinit: error 70 ... lookup ...
      (freebsd-stable)
    • [opensuse] nfs server /require/ reverse DNS lookup working?!
      ... I have learned long time ago that NFS require working reverse DNS ... client machines. ... No reverse DNS lookup! ...
      (SuSE)
    • Re: link() not increasing link count on NFS server
      ... linknot increasing link count on NFS server ... On Thu, 15 Nov 2007, Mohan Srinivasan wrote: ... lookup code for NFSv2, where the file handle of the new ... RCS file: ...
      (freebsd-current)
    • Re: [PATCH 00/37] Permit filesystem local caching
      ... The problem is that you have to do a database lookup of some sort, ... involving several synchronous disk operations. ... a fair bit better then BTRFS when the disk cache is cold. ... NFS, for example, wants to access a new inode, it first has to go to the ...
      (Linux-Kernel)
    • Re: link() not increasing link count on NFS server
      ... which launches a lookup on the receipt ... The logic predates the NFS/UDP duplicate request cache, ... which all NFS servers will support. ...
      (freebsd-current)