Let me just share my case. I'm on AMD64 (and therefor I am supposed to
accept programs swallowing huge amounts of memory).

Now, this is the line from 'top', it's the third biggest memory hog on my 
machine (running Gnome, Fx3, OOo, Icedove etc):
9154 gustaf    20   0  551m 182m  13m S    0  4.6   2:52.34 /usr/lib/ontv/o

So out of 551 megs (which forces other apps to swap and make the system lazy 
and require a dozen seconds delay to responds to virtual desktop switching 
after a few hours of non-usage), 182 megs are directly being used for OnTV. 
This is outrageous.
And just the fact that ontv has actually allocated _half a gigabyte_ is 
absolutely I-don't-know-what... WTF?!

Just some quick math: Let's say I care about (have registered for) 10
channels. They have 50 programs per day, and I have a few days (say 3)
in beforehand. This means 10 x 50 x 3 = 1500 tv programs. Let's say they
have in general, about 500 bytes of info (title + description, and this
is probably far over reality). This would mean .75 megs. Let me repeat
myself, ontv eats 182 megs. Ok, there are some channel logos and some
libraries, but come on! The fact that OnTV stores _everything_ isn't a
good enough explanation to why it has to just swallow such huge amounts
of ram.

The lunatics doesn't end here; When I haven't right-clicked the OnTV applet 
icon for a while, doing so causes the system to completely freeze for several 
seconds (I see lots of CPU usage on my load applet).
This program really acts like some enterprise data center super program, when 
in fact all it does is present a little TV info.

My suggestion:

When reading new shows (updating), convert the data into an SQLite database. 
Each minute, read the current (and +1) shows so that the GUI can quickly show 
it. Searching and other operations can easily be converted into SQLite queries. 
In other words, almost no programs will be resident (or even allocated) in 
memory.
This should drastically lower (if not minimize) the memory usage, and if this 
isn't enough, then perhaps someone will be kind enough to move this from python 
into something less memory hogging.

It's a shame that such a good little app is one of the worst hoggers on
the desktop.

-- 
Ontv uses lots of CPU and memory when updating tv listings
https://bugs.launchpad.net/bugs/191700
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to