Jeremy Allison
2009-Apr-24 07:13 UTC
[Samba] Re: Samba configuration options when using with FUSE file system
On Thu, Apr 23, 2009 at 11:44:00AM -0500, Jim Casey wrote:> It seems that metadata operations involved in writing new files into the > same directory become increasingly expensive as the number of files > grows larger. Determining whether a file exists in a directory (in our > case this will never be true since we are always writing new files) > seems like it should be a simple operation, but in fact seems to involve > a huge number of opendir->readdir->closedir calls. I am using Samba to > share a FUSE filesystem for which these directory operations are very > expensive compared to file systems like ext3. > > Are there configuration options in Samba that would help us out in this > case, perhaps by caching directory information or some such? > > Thank you for any assistance you are able to provide.See my post on large numbers of files in a directory: http://lists.samba.org/archive/samba-technical/2005-February/039409.html Jeremy.
Jim Casey
2009-Apr-28 12:39 UTC
[Samba] Samba configuration options when using with FUSE file system
It seems that metadata operations involved in writing new files into the same directory become increasingly expensive as the number of files grows larger. Determining whether a file exists in a directory (in our case this will never be true since we are always writing new files) seems like it should be a simple operation, but in fact seems to involve a huge number of opendir->readdir->closedir calls. I am using Samba to share a FUSE filesystem for which these directory operations are very expensive compared to file systems like ext3. Are there configuration options in Samba that would help us out in this case, perhaps by caching directory information or some such? Thank you for any assistance you are able to provide. James Casey
Apparently Analagous Threads
- [PATCH] COM32R documentation: fix typo 'pm_cs'
- [PATCH 1/1] COM32 API: Add functions for directory use
- How to get file info of a directory in linux kernel space?
- How to get file info of a directory in linux kernel space?
- [PATCH 1/2] daemon: free the string on stringsbuf add failure