"ls -l" command and performance of sftp
ponraj
tryponraj at gmail.com
Fri May 12 16:25:26 EST 2006
Hi all,
Patch to cache group and userids is attched along with this mail. The patch
looks up the cache first before proceeding with getgrgid,getpwuid calls and
thus reduces the amount of lookups and increases preformance in environments
such as LDAP database.
--
M.P
----- Original Message -----
From: ponraj
To: openssh-unix-dev at mindrot.org
Sent: Saturday, May 06, 2006 10:01 AM
Subject: "ls -l" command and performance of sftp
Hi all,
I am using OpenSSH4.3p2. User database is stored in LDAP server.When I tried
to list about 400 files using "ls -l" command in ftp and sftp, I observed
that sftp took considerable amount of time greater than ftp. I suspect sftp
does not cache the username and groupname lookups and makes fresh calls to
getpwuid(), getgrgid() functions for each file that makes its performance
worse. Any comments ?
--
M.P
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sftp_ls.txt
Url: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20060512/98b5051b/attachment.txt
More information about the openssh-unix-dev
mailing list