| Summary: | sftp performance of "ls -l" cmd is slow on network-authed servers | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | mark smith <masmitty> | ||||
| Component: | sftp-server | Assignee: | Assigned to nobody <unassigned-bugs> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | normal | CC: | djm, dtucker, michael.rhyner | ||||
| Priority: | P2 | ||||||
| Version: | -current | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 1626 | ||||||
| Attachments: |
|
||||||
|
Description
mark smith
2008-07-30 06:49:57 AEST
Isn't this the role of nscd (or similar)? nscd helped on this issue, issuing e.g. 'ls -l' is now as fast as expected. Cache times within nscd.conf could be quite small, e.g. between 20 and 60 seconds, it you want to avoid that services rely on outdated information. Created attachment 1779 [details]
sftp-namecache.patch
Add a small LRU to cache user and group names.
deraadt points out that similar functions (user_from_uid and group_from_gid) exist in OpenBSD's libc ( both keep a 64-entry hash table as a cache) We have just commited a change with that. We'll add these functions to the compat library for any platform that doesn't have them. With the release of 5.4p1, this bug is now considered closed. |