NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 663 664 665 666 667 … 1231 Next »
why does gb-pvr take up so much memory?

 
  • 0 Vote(s) - 0 Average
why does gb-pvr take up so much memory?
glitch
Offline

Junior Member

Posts: 24
Threads: 11
Joined: Nov 2006
#1
2006-11-30, 02:20 AM
I have gbpvr.exe (61 megs), gbpvrRecordingService.exe (60 megs), and GBPVRTray.exe (35 megs !) running and I wondered why those applications are taking up so much memory? The numbers I quote are with a few recordings scheduled but with nothing playing and nothing currently being recorded. A better question is, why does a task bar tray icon app take up 35 megabytes? The memory numbers are the Mem Usage and VM Size numbers from Windows Task Manager and then summed. Oh, and gbpvr.exe sometimes jumps to 130 megs as it did while writing this. Memory jumps to 155 megs when I decide to watch live TV.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#2
2006-11-30, 02:34 AM
Thats just the way it is these days I'm afraid. .NET is a quite a memory hog.

Using your example of GBPVRTray.exe - its probably 200 lines of code, the program itself doesnt really allocate much in the way of memory (a dozen or so text strings), but uses .NET to create a window and to make remote calls (retrieving a few strings every 5 seconds or so from the recording service)... instantly we're up to 35MB.

To be fair though, its not very easy to see how that VM's memory is used. Much of it is actually shared with other .NET processes.
glitch
Offline

Junior Member

Posts: 24
Threads: 11
Joined: Nov 2006
#3
2006-11-30, 03:13 AM
hi sub,

I forgot you programmed it in .NET. I wonder if Java would be better or worse? At least gbpvr doesn't seem to suffer any performance problems but it would be nice if .NET wasn't such a hog but, then again, it is from MS so we shouldn't expect anything less. And I realize that the values I quoted also include other files too and not just your code (like the .NET overhead for one thing) and so with just using Task Manager it isn't possible to know just how much gbpvr uses itself.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#4
2006-11-30, 03:22 AM
From past experience, I'd guess Java would have been more or less the same.

It could have used much less memory by writing it in C++, but then my original goal for the project wouldnt have been fulfilled (learning .NET and C#)
Carlito
Offline

Posting Freak

Posts: 817
Threads: 41
Joined: May 2006
#5
2006-11-30, 02:31 PM
.NET will hold on to memory if it needs it but gladly frees it up when it is needed. The numbers you are looking at in Task Manager are not really reflective to the amount of memory a .NET program needs. The program will anticipate the amount of memory needed and hold it, but again if another program or resource needs memory .NET will gladly give it up.
----------------------
[SIZE="1"]PVRX2 1.3.11
Shuttle SG33G5 Case
Core2Duo E8400 3Ghz -- 4 GB RAM
Hauppauge PVR-150
Adaptec AVC-3610 Dual Tuner
Onboard Intel GMA 3100 through HDMI -- 500GB
37" Westinghouse LCD (1920 x 1080p)

Projects
Program Image Tool[/SIZE]
JDeSimone
Offline

Junior Member

Posts: 20
Threads: 6
Joined: Nov 2006
#6
2006-11-30, 02:53 PM
What are we talking here? Less than 160meg total? This at a time that I wouldn't even consider building a PC and not putting 2-4gig of ram in it. Of course I am from a time of pc's with 48k total memory that cost $500.00 and 80k floppy drives. that were $450.00 each.
nbarsley
Offline

Member

Posts: 242
Threads: 36
Joined: Oct 2006
#7
2006-11-30, 04:18 PM
I only have 128mb of ram in my gbpvr Tongue
The menu runs a little slow but everything works perfectly fine.
BoomerBrian
Offline

Member

Posts: 56
Threads: 11
Joined: Mar 2006
#8
2006-11-30, 04:33 PM
That is the price you pay for "RAD" (Rapid Application Development). You are at the mercy of all of the developers that wrote all of these libraries. At least memory is cheap.

I am just now learning .NET but I think for this type of application .NET is the way to go. I am a JAVA developer. JAVA has it's own issues.
"220. 221. Whatever it takes."
Carlito
Offline

Posting Freak

Posts: 817
Threads: 41
Joined: May 2006
#9
2006-11-30, 04:59 PM
BoomerBrian Wrote:JAVA has it's own issues.

Yep, nothing like creating a non-portable version of java and calling it C# :p

From developing in .NET for quite a few years now (since the first beta) I consider it to be a very stable coding environment. I used to code primarily for *nix systems as well as web development on many different platforms, and every language I have used has their own set of problems/quirks. .Net, IMHO, is one of the better ones.

*prepares for the ensuing re-talliations Wink *
----------------------
[SIZE="1"]PVRX2 1.3.11
Shuttle SG33G5 Case
Core2Duo E8400 3Ghz -- 4 GB RAM
Hauppauge PVR-150
Adaptec AVC-3610 Dual Tuner
Onboard Intel GMA 3100 through HDMI -- 500GB
37" Westinghouse LCD (1920 x 1080p)

Projects
Program Image Tool[/SIZE]
BoomerBrian
Offline

Member

Posts: 56
Threads: 11
Joined: Mar 2006
#10
2006-11-30, 05:21 PM
Carlito Wrote:Yep, nothing like creating a non-portable version of java and calling it C# :p

From developing in .NET for quite a few years now (since the first beta) I consider it to be a very stable coding environment. I used to code primarily for *nix systems as well as web development on many different platforms, and every language I have used has their own set of problems/quirks. .Net, IMHO, is one of the better ones.

*prepares for the ensuing re-talliations Wink *

No retaliation from me. We chose JAVA at work simply because we wanted all applications to be web based and we liked the J2EE standard. JAVA has come a long way the last few years. The problem is keeping up with all of the new technologies that come out like Spring, JSF, Hibernate, etc... We use Oracle JDeveloper IDE and it has become a really nice IDE.

I have programmed in the past with VB6 and Borland Delphi,C++. I really liked Borlands IDEs. I really hated Visual C++. The IDE I thought sucked. The learning curve was too steep. I used VB and when I tried Visual C++ I was like "WTF". Borlands looked the same. Wheter I used Delphi or C++ the controls and IDE looked the same. However from what I have seen with .NET the little that I have used is that they have standardized the IDE.

My belief is that you can skin a cat multiple ways. Choose the technology that will get you there. Whether it be .Net or JAVA. They both exist for a reason. Because both have their own quarks and issues.
"220. 221. Whatever it takes."
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Updating EPG consumes all physical memory allstarnz 4 1,941 2010-04-09, 12:24 AM
Last Post: allstarnz
  Very high Memory footprint with 1.4.7 All Steamed Out 3 1,579 2009-11-10, 04:39 AM
Last Post: pBS
  PVRX2.EXE Shows High Memory Usage in Task Manager ViperDragon 11 4,517 2009-10-02, 07:54 PM
Last Post: hoborg
  ATI 4xxx users memory pBS 12 3,390 2009-10-01, 12:08 AM
Last Post: pBS
  Corrupted Memory Error - MDAPI Solution dennit 0 1,235 2009-06-08, 01:58 PM
Last Post: dennit
  Client TS streaming memory usage fuzzweed 5 2,437 2009-03-04, 06:01 AM
Last Post: fuzzweed
  'Attempted to read or write protected memory' with Hotfix installed macgyver 11 3,447 2008-03-30, 07:56 PM
Last Post: garymeds
  .NET Memory Corrupt message on usage Technotrend 1500-S nwagenaar 4 1,925 2008-03-17, 08:08 PM
Last Post: nwagenaar
  Slo-Mo HD (and possible memory leak?) SkipRudder 8 2,328 2008-02-02, 05:16 PM
Last Post: jonm
  Recording failed: memory access violation Braklet 0 1,100 2008-01-27, 03:42 PM
Last Post: Braklet

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode