Re: patch for 2.1.65 smbfs

Gordon Chaffee (chaffee@CS.Berkeley.EDU)
Thu, 20 Nov 1997 23:35:39 -0800 (PST)


Bill Hawes writes:
> Hmm, I'm not sure what can be done to speed up ls -l -- it's doing a
> getattr on the files, so it generates a lot of message traffic.

Something is very wrong in 2.1.x for doing the getattr. In 2.0.31,
I could do an ls -l in an 810 entry directory, and here are the results
from time ls -l /hosts/feba/d/EMACS-19.34/LISP/:
0.11user 0.19system 0:02.56elapsed 11%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps

Compare that to the output in 2.1.x:
0.15user 0.33system 2:52.04elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps

That is 2 minutes and 52 seconds versus 2.56 seconds. A factor of 50X
slower is a pretty dramatic slowdown.

> Any way you could turn on debug logging on the samba side and see what
> happens during these events?

The server is an NT 4.0 machine, so I don't think I can turn anything on.
I tried using tcpdump-smb to log the network traffic, but it crashes
almost immediately once it sees a few packets.

- Gordon