Filesystem question

Ulf Bertilsson ulf.bertilsson at
Tue Oct 24 12:35:23 GMT 2000

> > > The performance hit I am observing from these
> > > failed lookups is trivial compared to other issues
> > > inside of the SMBD that I am seeing.
> >
> > It could be that mine "None Posix platform os"
> > is having great overhead due to this.
> My target platform, OpenVMS is somewhat Posix compliant, but 
> not enough to
> build SAMBA with out some help to the runtime library.  This help does
> include some overhead.

Same as me, AmigaOS don't have any multiuser conspept at all.
Olaf Barthel (Also the main man behind the 3.5 upgrade) made an custom
for Samba, linking calls to 'AmigaOS' friendly calls.

I gues something like this has to be done for your platform as well.
> > > I have not looked at the code base later than 2.0.6,
> > > but there appear to be other performance
> > > enhancements that should be both easier to
> > > do, and yield far better results.
> >
> > Cool, anything that comes to your head first ?
> I am seeing on the debug traces a lot of what appear to be redundant
> translations from dos filenames to unix ones.

Is this part of the "locking" ?

> And then I have to add a
> translation to VMS one before using the file.
> Most of these seem to end up calling the stat() function.
> Both the filename translations and the stat() function have 
> high overhead
> for me.  Especially the stat() function.

Then we are in the same boat, we might learn from eash other ports.
I think the AmigaOS related pacthes should be merged into the CVS soon (?)

Might even prove useful.
> When I look at the source code, I can not find where this is 
> happening.
> There is a macro that is supposed to short circuit some of 
> these calls to
> stat(), so maybe the logic inside of it is not working for 
> OpenVMS for some
> reason.

I hope to learn more Posix and C before I could work more with this.
Any suggestion for a good book ?
> I will be using some profiling tools after I get up to the 
> current version
> of SAMBA, until then I am aiming for functional compatability.

Interesting times, are the OpenVMS wrapper in the current source ?

Best Regards
Ulf Bertilsson
Amiga Samba Effort :)

More information about the samba-technical mailing list