lkml.org 
[lkml]   [2002]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Stress testing cifs filesystem
From
Date

Some observations about what to expect when fs stress testing against the
CIFS filesystem.

The NFS connectathon tests seem to work against CIFS at least until the end
when one of the final (optional) tests fails in which it tries to delete an
open file (this is not allowed with CIFS servers - don't know a way around
this yet but I have a few ideas that might work against Windows servers but
not Samba).

Windows servers do not support chmod/chown/chgrp easily using the CIFS
network protocol so the basic/test4 test has to be commented out in the NFS
test script. In theory these chmod/chown/chgrp ops could be done remotely
(sort-of) using Windows ACLs but there is more code to write for this and
it is a fairly esoteric part of the protocol which requires some more
experimentation. Also note that the cifs vfs memory mapping code is
disabled until oplock handling is more complete so I compile the nfs
connectathon tests with memory mapping disabled.

Samba does support chmod/chgrp/chown so, unlike against Windows servers,
the connectathon nfs tests run unaltered but only if the "unix extensions"
smb.conf parm is on in the server's smb.conf file and also the "delete
readonly" parm is on (deleting read-only files is tested late in the nfs
tests). Note that if you have an access mask specified on the server
(optional parms in smb.conf) it can make chmod generate less permission for
chmod than testcases might expect so best not to set an access mask on your
test shares while running the testcase.

The fsx file system stress testing also runs against the CIFS VFS to either
Windows or Samba servers (if -W -R options are specified when launching the
fsx test in order to disable memory mapping) although I am not sure that I
have ever been patient enough to run it all the way until the end. I
have tried the newer versions of LTP as well and have not found any
problems so far but have not run all the way through every test on the
current code but plan to. I would like to find a test that tests more
esoteric combinations of open flags, multiply opening the same files from
the same process as well as from multiple processes on both the same and
different machines. Not all remote filesystems pass through every open to
the remote target server (always restricting multiple opens of the same
file to a single network file open) but in file systems like the cifs vfs
that do, it would be nice to exhaustively test this useful feature. It
will be especially useful when testing oplock (distributed file caching) to
do multiple conflicting and non-conflicting opens of the same files from
both the same and different clients simulataneously.

Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench@us.ibm.com


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.024 / U:11.448 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site