Re: "ls -l" command and performance of sftp

This is a discussion on Re: "ls -l" command and performance of sftp within the OpenSSH Development forums, part of the Networking and Network Related category; On Fri, 12 May 2006, ponraj wrote: > Hi all, > > Patch to cache group and userids is attched ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-12-2006
Damien Miller
 
Posts: n/a
Default Re: "ls -l" command and performance of sftp

On Fri, 12 May 2006, ponraj wrote:

> 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.


BTW a related problem in sftp is that it effectively does the
remote stat() operations twice during a remote glob().

The SSH2_FXP_READDIR operation returns an Attrib (the protocol's
equivalent of "struct stat"), but we throw it away when we do a
remote_glob() because the libc glob() API has no way to report
this information back. For things like "ls -l" we end up doing
a remote stat() because we need this information anyway...

A relatively easy performance win would be to take the glob()
implementation from OpenBSD's libc (also in openbsd-compat/ in
portable OpenSSH) and modify its API so that it does native
remote sftp operations and retains the Attrib information that
they provide.

Any takers? This is pretty small project...

-d

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:22 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0