MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » MediaPortal 1 Talk


MediaPortal 1 Talk General talk regarding our HTPC-software MediaPortal 1 takes place here.

Reply
 
Thread Tools Display Modes
Old 2006-05-28, 14:34   #1 (permalink)
Portal Member
 
Join Date: Apr 2006
Location: Newcastle, Australia
Age: 31
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default Increased memory usage from RC2 to RC4

Hi, I have been using RC2 for a while now, and of late have started to use it exclusively for my home media requirements. As such my usage has increased and I cam across the memory leakage problem in RC2.

When RC2 started, mediaportal.exe use to sit at the homescreen with 14mb ram used, then after a day of watching tv and movies, music, picutes (whatever) the system would get very slow and eventually i would kill MP and be presented with a "you virtual memory is too low" ballon from the task bar. A reboot would empty the bit bucket and away I go again.

Tonight I got jack of it, and upgraded to RC4. And al of a sudden MP now uses 100MB sitting at the home screen, but the up side is, changing channels, starting/stopping movies has no great effect on the memory used.

I was and am still using DScaler for Audio and Video.

Has anyone else experience this significant jump in memory usage? Is it something the devs have done to eliminate the problem (prefetch data)....i did notice the disk chugs a bit more when going from plugin to plugin

and on a side note, my system is apparently running pirated software...so i have to sort that one out...looks like my license from joe blogs backyard compouter store wasnt legit!
__________________
My HTPC - Dell Optixplex GX620 - Intel Celeron 2.8GHz - 1GB DDR - 500GB - Compro DVB-T300 w\ remote
nitro is offline   Reply With Quote
Old 2006-05-28, 15:48   #2 (permalink)
Portal Member
 
Join Date: Oct 2004
Location: Denmark
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Yes, I have experienced this too!!!

Take a look at my post then: http://forum.team-mediaportal.com/vi...007&highlight=

I still have the same problem with RC4 - after viewing a recorded show, memory is NOT being released, so after playing 3-4 recordings, MP crashed with the same baloon tip
__________________
Minigal - a simple, free, good looking, dynamic image gallery!

(http://www.minigal.dk)
Rybber is offline   Reply With Quote
Old 2006-05-28, 15:53   #3 (permalink)
Super Moderator
 
Join Date: Feb 2005
Location: Melbourne
Posts: 1,932
Thanks: 67
Thanked 28 Times in 28 Posts

Country:

My System

Send a message via ICQ to Marcusb
Default

This has been discussed a few times before already and is to do with the way dot net handles memory.

When code no longer needs memory in DotNet it marks it as unneeded.
To increase efficiency and speed, the DotNet garbage collector monitors system memory and keeps that memory in a virtual "recycle bin" until it's either needed again by the code or if needed by other applications the memory is released.

Basically this is how Windows XP handles memory. Everything gets more than it needs as long as there is plenty to go around. There is only a problem if this is happening and your system has not enough memory (which should never be the case if the garbage collector is working poperly).
Marcusb is online now   Reply With Quote
Old 2006-05-28, 16:07   #4 (permalink)
Portal Member
 
Join Date: Apr 2006
Location: Newcastle, Australia
Age: 31
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

that may be the case in Rybber's problem, but that doesnt explaint the 86mb increase in memory usage from RC2 to RC4
__________________
My HTPC - Dell Optixplex GX620 - Intel Celeron 2.8GHz - 1GB DDR - 500GB - Compro DVB-T300 w\ remote
nitro is offline   Reply With Quote
Old 2006-05-28, 16:15   #5 (permalink)
Super Moderator
 
Join Date: Feb 2005
Location: Melbourne
Posts: 1,932
Thanks: 67
Thanked 28 Times in 28 Posts

Country:

My System

Send a message via ICQ to Marcusb
Default

I thought it explained it well. Does your system have ample spare memory? If so, then this is normal DotNet behaviour.
Is it causing you any problems?

To test, you can try turning of virtual memory (not recommended for XP for the resons I have just explained) and see if MP's memory usage decreases.

There is a very recent post where people have told stories of tiny DotNet apps that use >20Mb ram and similar. I suggest a search for further information.
FWIW, I used to get around 50Mb of memory usage in MP before .2rc3.

Edit: actually, I just read Rybbers thread he linked to. It looks like that is an issue with the DVR-MS files, since WMP also crashes when trying to play them.
Marcusb is online now   Reply With Quote
Old 2006-05-28, 16:30   #6 (permalink)
Portal Member
 
Join Date: Apr 2006
Location: Newcastle, Australia
Age: 31
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

but DotNET was used in RC2, i must be missing something.
I have diabled the pagefile on my system, the only differnence is that it take a little longer to swithc between plugins.

i have 512mb ram
__________________
My HTPC - Dell Optixplex GX620 - Intel Celeron 2.8GHz - 1GB DDR - 500GB - Compro DVB-T300 w\ remote
nitro is offline   Reply With Quote
Old 2006-05-28, 16:43   #7 (permalink)
Super Moderator
 
Join Date: Feb 2005
Location: Melbourne
Posts: 1,932
Thanks: 67
Thanked 28 Times in 28 Posts

Country:

My System

Send a message via ICQ to Marcusb
Default

But it still gets back to my first point. If your system has enough memory, then this shouldn't be an issue. This is just the way that Windows XP handles it's memory. On the surface it is similar to the 9x series, but there's a lot more to it.

I'm not sure why more memory is being allocated (not used) but it must be something to do with the many improvements to the way MP operates. My guess would be the increased use of MultiThreading processes (each one will use a certain minimum, vs, one process using a larger amount).

Also, disabling the page file to test the garbage collector will only work if you are running out of memory. Only then will it start to get rid of any excess memory usage. Just think of it like your recycle bin. Everything goes in there and stays, until you need to free up some space, then it is deleted.[/b]
Marcusb is online now   Reply With Quote
Reply

Bookmarks

Tags
increased, memory, rc2, rc4, usage

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory leak with just running TV in Media Portal Chewyfood The old Bugreport Forum 17 2006-12-08 00:42
Memory usage Configuration.exe WoBBeL General Support 9 2006-05-24 09:28
RC2 causes laptop to hibernate every 5 mins ms2005 MediaPortal 1 Talk 6 2005-12-19 15:26
many problems wallor General Support 9 2005-12-13 10:06
H E X A G O N new skin Beta release ! theboxhead Skins 32 2005-11-01 21:00


All times are GMT +1. The time now is 02:49.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden