[sldev] [PATCH] possible getCurrentRSS() hang/slowdown on OS X?

Michael Schlenker schlenk at uni-oldenburg.de
Tue May 27 11:49:02 PDT 2008


Soft schrieb:
> On Mon, May 26, 2008 at 4:21 PM, Michael Schlenker
> <schlenk at uni-oldenburg.de> wrote:

>>
>> Can anyone confirm:
>> a) getCurrentRSS() is really slow inside the SL viewer
>> b) removing the getCurrentRSS() call fixes the 10-minute periodic hang?
> 
> Hmm - this sounds like it may relate to Ellen's comment on
> https://jira.secondlife.com/browse/VWR-1715
Yes.

It IS that issue. I put the getCurrentRSS() code into a trivial hello 
world app that does random malloc() calls between the calls to 
getCurrentRSS() and that massivly slows down the calls, which are near 
instant when i just do one huge malloc() or reuse memory.

As it is debug statistics anyway, is there a reason why this slowdown is 
'inflicted' on regular users, just disabling the getCurrentRSS() call 
for Mac OS X in release builds shouldn't hurt.

Michael




More information about the SLDev mailing list