Weird Samba slowness problem
Hello, I'm having some problems with a samba server.
Here is what I have: a samba server (3.2.5) running on debian lenny with windows vista clients.
The problem is that, while the server speed is quite fast (in MB/s), it sometimes has unusual latencies before the data transfers can start, something like 20-60 seconds.
I have been trying a lot of stuff to try to identify the source of the problem and I've narrowed it to something very specific: this latency only happens when the file being accessed is owned by a different user. To explain more, I'll give an example:
Say there are two users: user1 user2
both are in a group: group1
if user1 tries to access a file, it will be slow with files like this: (ls -lh output)
but it will be extremely fast with a file like this:
-rw-rw---- 1 user2 group1 93K 2009-11-07 01:32 somefile
-rw-rw---- 1 root group1 93K 2009-11-07 01:32 somefile
this is absolutely reproducible: if I change the file ownership with chown it will be fast, and if I revert it it will be slow again.
-rw-rw---- 1 user1 group1 93K 2009-11-07 01:32 somefile
this server has been in use since about 2 years and I *think* the problem started when I upgraded its hard drives.
Any help will be greatly appreciated, as I've searched with no success for a long time.