PDA

View Full Version : SVN Memory Usage (SVN#18128)


Zeppstar
2009-03-06, 02:01
I was wondering if anyone else has been experiencing a slow memory loss(free ram) in #18128 SVN. Im showing xbmc.bin slowly increasing ram usage percentange as movies play.

From startup
top - 3.3 % xbmc.bin
XBMC Info - 1778 MB Free

From startup (idling 10 mins) [no change in memory usage]
top - 3.3 % xbmc.bin
XBMC Info - 1778 MB Free

After Idle (play .mkv for 15mins) - top during play
top - 14.5 % xbmc.bin

Return to idle
top - 14.5 % xbmc.bin
XBMC Info - 1312 MB Free

Idle addidtional 15min (Memory not recovered)
top - 14.5 % xbmc.bin
XBMC Info - 1312 MB Free

After continuous play (A few movies) I've found XBMC info shows only 68MB Free. If I restart XBMC, top shows xbmc.bin returning to normal 3.3% memory usage.

I've run out of time to continue testing. Will continue this evening.

My system:
Ubuntu Intrepid (i686) minimal install. Nvidia 9500, Dual Core 3.2, 2GB Ram

volenin
2009-03-06, 07:19
Yep, did notice that as well. Even before that build. From time to time the XBMC would take up all the ram. I'm restarting it relatively often though (ie, playing 3-5 movies at the most per each run of XBMC), so haven't found it to be too much of a problem. But, of course, in the 'final' version that would be quite a hassle...

Vlad

o_dog
2009-03-06, 19:52
it's the logging. Check size of the xbmc.log. Seems it's not limited to a size but jsut keeps getting bigger and bigger.

althekiller
2009-03-07, 00:52
More likely it's system buffers do to all those file accesses. You should see similar values as the "free -m" command. This is due to how we report freemem.

o_dog
2009-03-07, 01:24
aLthekiller. The memory usage is the same for me as the xbmc.log. Sometimes up towards 1gb or more. When you restart it the file is rewritten. Might be a fluke but don't think so.

Zeppstar
2009-03-07, 02:24
My xbmc.log and .old doesnt exceed 1 MB or 2 in total.

After svn'ing to version 18298 last night, a quick check show the same memory loss.

After two movies, .avi and a .iso (dvd) this time, reported free memory is ...

>free -m

total used free shared buffers cached
Mem: 2023 1967 55 0 5 1812
-/+ buffers/cache: 150 1873
Swap: 486 1 484

So file format makes no difference.

Zeppstar
2009-03-09, 05:48
After setting up a second xbmc box, I have found that this second box does not show the memory loss. The only difference between the boxes that I can see is that I installed samba. The box with samba installed shows the memory loss.

Could this somehow be conficting with XBMC's internal client ?

Also I noticed that the memory loss occured without playing a movie. All I was doing is transfering files via windows network.