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

Soft soft at lindenlab.com
Tue May 27 07:42:02 PDT 2008


On Mon, May 26, 2008 at 4:21 PM, Michael Schlenker
<schlenk at uni-oldenburg.de> wrote:
>
> When stepping over with gdb it showed that getCurrentRSS() took 99% of the
> time time for
> the whole routine (about 10seconds), but the actual getCurrentRSS() code in
> llmemory.cpp
> is really fast in isolation (even with 4 GB memory on this Mac Book Pro).
>
> So i patched out the call in send_stats() and do not longer notice these
> specific periodic
> slowdowns on OS X, others still there...
>
> (in llviererstats.cpp around line 692)
>
>        agent["agents_in_view"] = LLVOAvatar::sNumVisibleAvatars;
>        agent["ping"] = gAvgSimPing;
>        agent["meters_traveled"] = gAgent.getDistanceTraveled();
>        agent["regions_visited"] = gAgent.getRegionsVisited();
>        // agent["mem_use"] = getCurrentRSS() / 1024.0;
>        agent["mem_use"] = 100.0;
>
>        LLSD &system = body["system"];
>
> 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


More information about the SLDev mailing list