samba profiling
Richard Sharpe
rsharpe at richardsharpe.com
Tue Mar 1 18:27:22 GMT 2005
On Tue, 1 Mar 2005, Ephi Dror wrote:
> Hi all,
>
> I have a question regarding SAMBA profiling.
>
> >From looking at the code, I understood stats are kept in shared memory.
>
> My question is, do you think we have a problem if we run on multi
> processors system and multiple smbd processes are trying to increment
> the same counter at the same time?. Don't we need to protect write
> operations or it is taken cared already by the OS.
Well, yes, there is a possibility that some increments can be lost if your
architecture does not have interlocked and cache-coherent increments etc.
Regards
-----
Richard Sharpe, rsharpe[at]richardsharpe.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com
More information about the samba-technical
mailing list