Selon Zoran Vasiljevic <[EMAIL PROTECTED]>:
> > I didn't investigate more, but as I understand the "ttrace::getentry" proc
> > should be called only when resolving the function.
>
> Correctly. Once per thread and once per proc.
>
> > But adding some ns_log trace, I found the "getentry" proc was called on
> > ns_cleanup which is pretty strange (anyway I didn't read carefully all the
> > TTrace packages procedures).
> >
> > So it may be that the ns_cleanup (and so the ttrace::cleanup called in the
> > ns_cleanup) could delete all the functions and the functions need to be
> > resolved again on the next request in the same thread.
>
> Correct.
>
Here I am not sure to understand. Why do your "cleanup" code per request (the
ttrace::cleanup added) delete the loaded functions ?
They should not be deleted... (I am perhaps missing something, I didn't chek
carefully the cleanup code so far).
> >
> > I tried to comment the "ttrace::addcleanup { ...}" code and is looks much
> > better as getentry is not called tons of times in a request for the same
> > thread.
>
> This is what I want to suggest as well.
> >
> > Unless you really see a problem on the ttrace package, do not waste your
> > time as the problem may come from my code !!!
> >
>
> I do not think there is a problem in your code. It maybe so that the
> cleanup part is really trashing the thing.
> It would be good to know if the modified setup is now working
> better. If yes, than I might split the proc storage across several
> nsv arrays or perhaps make the cleanup part optional.
>
It looks like that commenting the ttrace::cleanup code is better for the lock
contention problem. If there is a problem with the cleanup, there will be no
need to split storage into several nsv arrays.
I will try to make tests on our production server with and without the
ttrace::cleanup to see what happens on big load and let you know.
Thanks for your help Zoran !
Regards.
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of
your email blank.