Re: [mythtv-users] Front end memory usage

2005-10-30 Thread Michael T. Dean

Alberto Alonso wrote:

I am finding more info on this. It seems to be mostly 
related to theme and resolution. Going down to 640x480

I now get 57M of RES usage, which is a heck of a lot
better, but still rather large if you ask me.

What theme and resolution are you using to the 17M
resident?

Also, does anybody know of any setting to set things up
that maybe doesn't cache the whole theme stuff to memory?
It seems that reading from disk on a page change should be
fast enough.
 


I'm using Minimalist-wide (which is appropriate for widescreen TV's).

Another Myth box I maintain shows:

 PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
32076 root  15   0 69764  26m  18m S  6.3  5.3 752:49.75 mythfrontend

And the guy who owns it uses visor--the theme with the clouds (a 
complex background image)--at 1024x768.


I really don't think it's the theme's being cached that's causing the 
problem.  The default theme, as distributed (XML descriptions and 
unscaled images), is only 2736KB, Minimalist wide is 2900KB, and visor 
is 2828KB.  On disk, my themecache (the scaled 
images)--Minimalist-wide.1920.1080--is 7776KB, and visor.1024.768 is 
5712KB.  Also, TTBOMK, Myth doesn't maintain the entire theme in 
memory.  Images are cached on disk as just described.  Also, since it 
notices changes to the XML theme files at runtime, it may not even keep 
the theme descriptions in memory (although I haven't looked at the 
source to verify this--it could also be checking modification times or 
something).


Regardless, I can't see the theme causing it to take 50-100MB of RAM.  
Maybe for a program like Windows Media Player, but this is MythTV.  ;)


You can check your theme size with:

du -sk /usr/local/share/mythtv/themes/theme name

You can check your themecache size with:

du -sk ~mythtv/.mythtv/themecache

Mike
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Front end memory usage

2005-10-30 Thread Robert Johnston
On 30/10/05, Michael T. Dean [EMAIL PROTECTED] wrote:
 Alberto Alonso wrote:

 I am finding more info on this. It seems to be mostly
 related to theme and resolution. Going down to 640x480
 I now get 57M of RES usage, which is a heck of a lot
 better, but still rather large if you ask me.
 
 What theme and resolution are you using to the 17M
 resident?
 
 Also, does anybody know of any setting to set things up
 that maybe doesn't cache the whole theme stuff to memory?
 It seems that reading from disk on a page change should be
 fast enough.
 
 
 I'm using Minimalist-wide (which is appropriate for widescreen TV's).

 Another Myth box I maintain shows:

   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
 32076 root  15   0 69764  26m  18m S  6.3  5.3 752:49.75 mythfrontend

 And the guy who owns it uses visor--the theme with the clouds (a
 complex background image)--at 1024x768.

 I really don't think it's the theme's being cached that's causing the
 problem.  The default theme, as distributed (XML descriptions and
 unscaled images), is only 2736KB, Minimalist wide is 2900KB, and visor
 is 2828KB.  On disk, my themecache (the scaled
 images)--Minimalist-wide.1920.1080--is 7776KB, and visor.1024.768 is
 5712KB.  Also, TTBOMK, Myth doesn't maintain the entire theme in
 memory.  Images are cached on disk as just described.  Also, since it
 notices changes to the XML theme files at runtime, it may not even keep
 the theme descriptions in memory (although I haven't looked at the
 source to verify this--it could also be checking modification times or
 something).

 Regardless, I can't see the theme causing it to take 50-100MB of RAM.
 Maybe for a program like Windows Media Player, but this is MythTV.  ;)

Remember that those theme images are stored (on disk) in a compressed
form. I believe a QImage is the raw bitmap, uncompressed, in memory.
So a 1024x768x32-bit image would be 3MiB (25165824 bits)
--
Robert Anaerin Johnston
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Front end memory usage

2005-10-30 Thread Michael T. Dean

Robert Johnston wrote:


On 30/10/05, Michael T. Dean [EMAIL PROTECTED] wrote:
 


Alberto Alonso wrote:


I am finding more info on this. It seems to be mostly
related to theme and resolution. Going down to 640x480
I now get 57M of RES usage, which is a heck of a lot
better, but still rather large if you ask me.

What theme and resolution are you using to the 17M
resident?

Also, does anybody know of any setting to set things up
that maybe doesn't cache the whole theme stuff to memory?
It seems that reading from disk on a page change should be
fast enough.


I'm using Minimalist-wide (which is appropriate for widescreen TV's).

Another Myth box I maintain shows:

 PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
32076 root  15   0 69764  26m  18m S  6.3  5.3 752:49.75 mythfrontend

And the guy who owns it uses visor--the theme with the clouds (a
complex background image)--at 1024x768.

I really don't think it's the theme's being cached that's causing the
problem.  The default theme, as distributed (XML descriptions and
unscaled images), is only 2736KB, Minimalist wide is 2900KB, and visor
is 2828KB.  On disk, my themecache (the scaled
images)--Minimalist-wide.1920.1080--is 7776KB, and visor.1024.768 is
5712KB.  Also, TTBOMK, Myth doesn't maintain the entire theme in
memory.  Images are cached on disk as just described.  Also, since it
notices changes to the XML theme files at runtime, it may not even keep
the theme descriptions in memory (although I haven't looked at the
source to verify this--it could also be checking modification times or
something).

Regardless, I can't see the theme causing it to take 50-100MB of RAM.
Maybe for a program like Windows Media Player, but this is MythTV.  ;)
   


Remember that those theme images are stored (on disk) in a compressed
form. I believe a QImage is the raw bitmap, uncompressed, in memory.
So a 1024x768x32-bit image would be 3MiB (25165824 bits)

OK.  We've got 2.5MiB out of his 56MiB RES/VIRT unknown at 640x480 to 
107MiB RES/171MiB VIRT at some unspecified resolution, so where's the 
rest--especially considering there's probably only one full-size image.


Also, as specified earlier in the thread, my 1920x1080 frontend with a 
simple theme is only using 16MiB RES/57MiB VIRT--significantly less than 
his 640x480 frontend.  And, as shown in the message you quoted, the 
frontend with the 1024x768 complex theme is using 26MiB RES/68MiB VIRT.  
So if the theme is the major problem, both should be using more memory 
than he is...


Mike
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Front end memory usage

2005-10-29 Thread Michael T. Dean

Alberto Alonso wrote:


I am experimenting with a diskless setup based on Knoppmyth R5A16

After the frontend is done resizing things, memory usage of the
mythfrontend process starts to increase from 18M (right after the
resizing is done) to 107M of Resident memory (virtual is at 171M)

Trying to run the weather plugin kills the frontend, as I only
have 256M RAM and it runs out of memory.

So, the question is, where is the frontend memory going? It seems
that 107M of resident RAM just to display the main menu is quite
excessive. Did I miss-configure my system?
 

Mine is using 17M physical memory (16M shared) and 58M virtual memory 
while displaying the main menu after 44 1/2 CPU hours (just upgraded my 
TV to a digital TV, so I had to change my resolution) during which I've 
watched several shows and used plugins--and I'm now using a 1920x1080 X 
and Myth GUI resolution.


 PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  
COMMAND  
 660 root   9   0 58284  17m  16m R  0.7  3.5  44:28.03 
mythfrontend 

So, the only help I can really provide is that this is not normal and is 
not a Myth bug.  So, it's probably a configuration problem.  The 
question then becomes, Configuration of what?


Mike

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Front end memory usage

2005-10-29 Thread Alberto Alonso

Thanks, at least this confirms that it is something that
can be fixed.

What myth plugins are you using? My next step is to remove
them one by one and see if that helps.

Thanks,

Alberto


On Sat, 2005-10-29 at 15:40 -0400, Michael T. Dean wrote:
 Alberto Alonso wrote:
 
 I am experimenting with a diskless setup based on Knoppmyth R5A16
 
 After the frontend is done resizing things, memory usage of the
 mythfrontend process starts to increase from 18M (right after the
 resizing is done) to 107M of Resident memory (virtual is at 171M)
 
 Trying to run the weather plugin kills the frontend, as I only
 have 256M RAM and it runs out of memory.
 
 So, the question is, where is the frontend memory going? It seems
 that 107M of resident RAM just to display the main menu is quite
 excessive. Did I miss-configure my system?
   
 
 Mine is using 17M physical memory (16M shared) and 58M virtual memory 
 while displaying the main menu after 44 1/2 CPU hours (just upgraded my 
 TV to a digital TV, so I had to change my resolution) during which I've 
 watched several shows and used plugins--and I'm now using a 1920x1080 X 
 and Myth GUI resolution.
 
   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  
 COMMAND  
   660 root   9   0 58284  17m  16m R  0.7  3.5  44:28.03 
 mythfrontend 
 
 So, the only help I can really provide is that this is not normal and is 
 not a Myth bug.  So, it's probably a configuration problem.  The 
 question then becomes, Configuration of what?
 
 Mike
 
 ___
 mythtv-users mailing list
 mythtv-users@mythtv.org
 http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Front end memory usage

2005-10-29 Thread Michael T. Dean

Alberto Alonso wrote:


On Sat, 2005-10-29 at 15:40 -0400, Michael T. Dean wrote:
 


Alberto Alonso wrote:


I am experimenting with a diskless setup based on Knoppmyth R5A16

After the frontend is done resizing things, memory usage of the
mythfrontend process starts to increase from 18M (right after the
resizing is done) to 107M of Resident memory (virtual is at 171M)

Trying to run the weather plugin kills the frontend, as I only
have 256M RAM and it runs out of memory.

So, the question is, where is the frontend memory going? It seems
that 107M of resident RAM just to display the main menu is quite
excessive. Did I miss-configure my system?

Mine is using 17M physical memory (16M shared) and 58M virtual memory 
while displaying the main menu after 44 1/2 CPU hours (just upgraded my 
TV to a digital TV, so I had to change my resolution) during which I've 
watched several shows and used plugins--and I'm now using a 1920x1080 X 
and Myth GUI resolution.


 PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  
COMMAND  
 660 root   9   0 58284  17m  16m R  0.7  3.5  44:28.03 
mythfrontend 

So, the only help I can really provide is that this is not normal and is 
not a Myth bug.  So, it's probably a configuration problem.  The 
question then becomes, Configuration of what?



Thanks, at least this confirms that it is something that
can be fixed.

What myth plugins are you using? My next step is to remove
them one by one and see if that helps.
 

I've got MythControls, MythDVD, MythGallery, MythGame, MythMusic, 
MythNews, MythVideo, MythWeather, and MythStream (not MythStreamTV) 
installed (and MythWeb, but that doesn't even touch mythfrontend).


I just went in to MythWeather and got this while it was displaying the 
weather:


 PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  
COMMAND  
 660 root   9   0 59972  19m  12m S  1.3  3.8  49:12.06 
mythfrontend 


and after

 PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  
COMMAND  
 660 root   9   0 59976  19m  13m D  1.3  4.0  49:12.94 
mythfrontend 


Happy hunting.

Mike
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Front end memory usage

2005-10-29 Thread Alberto Alonso

I am finding more info on this. It seems to be mostly 
related to theme and resolution. Going down to 640x480
I now get 57M of RES usage, which is a heck of a lot
better, but still rather large if you ask me.

What theme and resolution are you using to the 17M
resident?

Also, does anybody know of any setting to set things up
that maybe doesn't cache the whole theme stuff to memory?
It seems that reading from disk on a page change should be
fast enough.

Thanks again for your help,

Alberto


On Sat, 2005-10-29 at 19:13 -0400, Michael T. Dean wrote:
 Alberto Alonso wrote:
 
 On Sat, 2005-10-29 at 15:40 -0400, Michael T. Dean wrote:
   
 
 Alberto Alonso wrote:
 
 I am experimenting with a diskless setup based on Knoppmyth R5A16
 
 After the frontend is done resizing things, memory usage of the
 mythfrontend process starts to increase from 18M (right after the
 resizing is done) to 107M of Resident memory (virtual is at 171M)
 
 Trying to run the weather plugin kills the frontend, as I only
 have 256M RAM and it runs out of memory.
 
 So, the question is, where is the frontend memory going? It seems
 that 107M of resident RAM just to display the main menu is quite
 excessive. Did I miss-configure my system?
 
 Mine is using 17M physical memory (16M shared) and 58M virtual memory 
 while displaying the main menu after 44 1/2 CPU hours (just upgraded my 
 TV to a digital TV, so I had to change my resolution) during which I've 
 watched several shows and used plugins--and I'm now using a 1920x1080 X 
 and Myth GUI resolution.
 
   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  
 COMMAND  
   660 root   9   0 58284  17m  16m R  0.7  3.5  44:28.03 
 mythfrontend 
 
 So, the only help I can really provide is that this is not normal and is 
 not a Myth bug.  So, it's probably a configuration problem.  The 
 question then becomes, Configuration of what?
 
 Thanks, at least this confirms that it is something that
 can be fixed.
 
 What myth plugins are you using? My next step is to remove
 them one by one and see if that helps.
   
 
 I've got MythControls, MythDVD, MythGallery, MythGame, MythMusic, 
 MythNews, MythVideo, MythWeather, and MythStream (not MythStreamTV) 
 installed (and MythWeb, but that doesn't even touch mythfrontend).
 
 I just went in to MythWeather and got this while it was displaying the 
 weather:
 
   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  
 COMMAND  
   660 root   9   0 59972  19m  12m S  1.3  3.8  49:12.06 
 mythfrontend 
 
 and after
 
   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  
 COMMAND  
   660 root   9   0 59976  19m  13m D  1.3  4.0  49:12.94 
 mythfrontend 
 
 Happy hunting.
 
 Mike
 ___
 mythtv-users mailing list
 mythtv-users@mythtv.org
 http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


[mythtv-users] Front end memory usage

2005-10-28 Thread Alberto Alonso
I am experimenting with a diskless setup based on Knoppmyth R5A16

After the frontend is done resizing things, memory usage of the
mythfrontend process starts to increase from 18M (right after the
resizing is done) to 107M of Resident memory (virtual is at 171M)

Trying to run the weather plugin kills the frontend, as I only
have 256M RAM and it runs out of memory.

So, the question is, where is the frontend memory going? It seems
that 107M of resident RAM just to display the main menu is quite
excessive. Did I miss-configure my system?

Thanks,

Alberto

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users