[Bug 1495] New: sftp performance of "ls -l" cmd is slow on network-authed servers

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Jul 30 06:50:04 EST 2008


https://bugzilla.mindrot.org/show_bug.cgi?id=1495

           Summary: sftp performance of "ls -l" cmd is slow on
                    network-authed servers
    Classification: Unclassified
           Product: Portable OpenSSH
           Version: -current
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sftp-server
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: masmitty at us.ibm.com


when sftp client connects to sftp-server and does "ls -l" command on a
large directory (many files), performance is unacceptably slow when the
sftp-server node used ldap/kerberos/NIS/...(etc) to look up EVERY
uid/gid on every file.

a simple fix is to cache/buffer the uid/gid of the previous file from
the stat()/fstat() & chk to see if they have changed before issuing the
lookup of the same uid/gid (ergo inhibiting a wait-for-network to get
info that we already have)

same issue true for v4.1p1 through current.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list