[Samba] Performance issue on AIX when deleting files in a directory with a large number of files

Claus Lund clund at tax.state.vt.us
Wed May 10 18:29:13 GMT 2006

Hi Bill,

I already tried updating AIX.
I'm on 5300-04 (only a couple of security related fixes added since the tech
level) on my production box (we're using Samba 3.0.21a on that box). And I'm
on the latest Technology Level + all the latest fixes on my test box (and
that's where I currently have 3.0.22).

Both machines are setup with JFS2 and neither use inline logs.

I am not all that familar with debugging tools like truss (I haven't really
done any real programming since my college days ... 6-7 years ago). But I
just ran:
truss -f -o /datavg/smb_truss.out /opt/Samba/3.0.22/sbin/smbd -D

I used Windows Explorer to browse to my test directory (with about 30K files
in it), highlighted all the files and hit delete. I let it delete a few
files and then cancelled. The truss file is about 185MB (4MB zipped). Do you
have a place where I can upload that?


> > >
> > > But the nfs or local access isn't performing the same access pattern
> > > that Samba is by being driven by the client. I'm guessing that if you
> > > performed the same actions locally that the client is requesting
> > > Samba perform you'd get the same results (in fact you *must* - as
> > > all of Samba is userspace, there's no magic in what Samba is doing
> > > here - it's doing what the client requests from userspace).
> > >
> > > My money is still on the kernel, as driven in this access pattern.
> > >
> >
> > Yep. I'd be curious what a truss of a smbd process shows for access on
> that
> > filesystem.
> >
> > Is this jfs2 using an inline log? Just curious...
> >
> Claus, can you run "oslevel -r" and send me the results. I think this may
> have been fixed in 5300-03.
> 5300-04-3 is available, I'd consider that as well...
> Cheers,
> Bill

More information about the samba mailing list