failing LOCK1 smbtorture test

Andrew Tridgell tridge at
Fri Jul 27 03:52:11 GMT 2001

> For instance, the issue with HP-UX not having a unified
> buffer/page cache could be addressed by HP in the near future, and then we
> would PASS the test that Jeremy is proposing, and once again be able to take
> advantage of the mmap performance gains, without a code modification.  If
> however, we set up a 'blacklist', where we hardcode ifdef's against
> particular os'es, when they have addressed the issues, then a code
> modification is required.

the problem is that this test would need to be 100% reliable, and that
is very hard. I'm sure that HPUX would occasionally pass a mmap
coherency test as the pages are backed by the file, and if the system
happens to be low on ram and happens to flush them to disk at the
right time then a test will pass.

Maybe we need a "use mmap" option in smb.conf? Then we could default
it to off on the blacklist OSes, and sysadmins who know they have a
fixed system could enable it. This would also fix the problems we have
with people running Samba on NFS, where on some systems mmap on NFS
is broken.

More information about the samba-technical mailing list