Uri Simchoni
2009-Feb-21 11:37 UTC
[Samba] samba 3.2.6 - Does locking.tdb has a maximum size?
Hi, I've noticed that locking.tdb file grows over time. This happened while running the following test: - delete locking.tdb and restart samba - connect a linux client using cifs mount -run the following script on the client: #!bin/bash for i in `seq 1 130000`;do echo $i echo == KB_rand=$(((RANDOM % 300 + 1)*(1000)) dd if=/dev/urandom of=/mnt/cifs/files/smallfile$i bs=$KB_rand count=1 done So there's only one client writing many files. The locking.tdb file grew to 2 megs, at which point space was exhausted (I put the temp files in tmpfs, perhaps a mistake :)). Is this to be expected? what causes this increase? does it saturate at some point? is it possible to configure it? Thanks, Uri. _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx
Jeremy Allison
2009-Feb-22 00:25 UTC
[Samba] samba 3.2.6 - Does locking.tdb has a maximum size?
On Sat, Feb 21, 2009 at 01:30:42PM +0200, Uri Simchoni wrote:> > Hi, > > > > I've noticed that locking.tdb file grows over time. This happened while running the following test: > > - delete locking.tdb and restart samba > > - connect a linux client using cifs mount > > -run the following script on the client: > > > > #!bin/bash > > for i in `seq 1 130000`;do > echo $i > echo ==> KB_rand=$(((RANDOM % 300 + 1)*(1000)) > dd if=/dev/urandom of=/mnt/cifs/files/smallfile$i bs=$KB_rand count=1 > done > > > So there's only one client writing many files. > > > > The locking.tdb file grew to 2 megs, at which point space was exhausted (I put the temp files in tmpfs, perhaps a mistake :)). > > > > Is this to be expected? what causes this increase? does it saturate at some point? is it possible to configure it?There's no maximum size but as you use Samba it should stabilize (as the freelist gets large enough to cope with most uses). 2mb is small, it *will* grow larger than this. Putting these files on tmpfs is not a good idea. Jeremy.
Seemingly Similar Threads
- Gluster native mount is really slow compared to nfs
- Gluster native mount is really slow compared to nfs
- Gluster native mount is really slow compared to nfs
- Gluster native mount is really slow compared to nfs
- Gluster native mount is really slow compared to nfs