[mythtv-users] Mythbackend recording glitches
Stephen Worthington
stephen_agent at jsw.gen.nz
Thu Oct 25 06:57:25 UTC 2018
On Wed, 24 Oct 2018 22:18:21 -0700, you wrote:
>On Wed, Oct 24, 2018 at 9:35 PM Stephen Worthington <
>stephen_agent at jsw.gen.nz> wrote:
>
>> On Wed, 24 Oct 2018 20:58:28 -0700, you wrote:
>>
>> >On Wed, Oct 24, 2018 at 7:54 PM Stephen Worthington <
>> >stephen_agent at jsw.gen.nz> wrote:
>> >
>> >> On Wed, 24 Oct 2018 15:40:48 -0700, you wrote:
>> >>
>> >>
>> >> >9) There is still swap used as time goes on which I don't understand.
>> >> >Right now I am recording and doing a mythcomfilter and the swap is
>> empty.
>> >> >Tomorrow the swap will be in use and files will be swapping in and
>> out. It
>> >> >is like a swaping leak.
>> >>
>> >> I have noticed just in the last few days that the swap usage on my
>> >> main MythTV system has completely disappeared, and on my mother's
>> >> system has reduced a great deal. So I am wondering if a bug that was
>> >> causing it has just been fixed. So if you are using the MythTV
>> >> version from the main Ubuntu repositories, I would recommend adding
>> >> the MythTV PPA and updating to the latest "fixes" version from there:
>> >>
>> >> https://launchpad.net/~mythbuntu
>> >>
>> >> This is my current version (mythutil --version):
>> >>
>> >> MythTV Version : v29.1-41-gd8a2db7
>> >> MythTV Branch : fixes/29
>> >> Network Protocol : 91
>> >> Library API : 29.20180316-1
>> >> QT Version : 5.9.5
>> >> Options compiled in:
>> >> linux profile use_hidesyms using_alsa using_oss using_pulse
>> >> using_pulseoutput using_backend using_bindings_perl
>> >> using_bindings_python using_bindings_php using_crystalhd using_dvb
>> >> using_firewire using_frontend using_hdhomerun using_vbox using_ceton
>> >> using_hdpvr using_ivtv using_joystick_menu using_libcec
>> >> using_libcrypto using_libdns_sd using_libfftw3 using_libxml2
>> >> using_lirc using_mheg using_opengl using_opengl_video
>> >> using_opengl_themepainter using_qtwebkit using_qtscript using_qtdbus
>> >> using_taglib using_v4l2 using_x11 using_xrandr using_xv
>> >> using_profiletype using_systemd_notify using_systemd_journal
>> >> using_bindings_perl using_bindings_python using_bindings_php
>> >> using_freetype2 using_mythtranscode using_opengl using_vaapi
>> >> using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2
>> >> using_libmp3lame
>> >>
>> >> Also recently, there has been a significant speedup in the scheduler
>> >> that is well worth having.
>> >>
>> >>
>> >Stephen said: "So if you are using the MythTV version from the main Ubuntu
>> >repositories"
>> >
>> >I am using Mythbuntu 16. Am I using that version?
>> >
>> >dad at NewMyth:~$ mythutil --version
>> >MythTV Version : v0.28-2-g15cf421
>> >MythTV Branch : fixes/0.28
>> >Network Protocol : 88
>> >Library API : 0.28.20160309-1
>> >QT Version : 5.5.1
>> >Options compiled in:
>> > linux profile use_hidesyms using_alsa using_oss using_pulse
>> >using_pulseoutput using_backend using_bindings_perl using_bindings_python
>> >using_bindings_php using_crystalhd using_dvb using_firewire using_frontend
>> >using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv
>> >using_joystick_menu using_libcec using_libcrypto using_libdns_sd
>> >using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl
>> >using_opengl_video using_qtwebkit using_qtscript using_qtdbus using_sdl
>> >using_taglib using_v4l2 using_x11 using_xrandr using_xv using_profiletype
>> >using_bindings_perl using_bindings_python using_bindings_php
>> >using_freetype2 using_mythtranscode using_opengl using_vaapi using_vdpau
>> >using_ffmpeg_threads using_mheg using_libass using_libxml2
>> >
>> >What exactly should I do? It increasingly looks like some kind of memory
>> >leak. The swap usage is just increasing with time. It is 130k and was 0
>> >this afternoon.
>> >
>> >Allen
>>
>> If you have not installed the PPA, then you will be using the version
>> from the main repository. Which only gets updated very rarely. But
>> your version is showing as fixes/0.28, which I believe should be the
>> PPA version. But it is possible that a later version has been pushed
>> to the main repository. To find out, run this command:
>>
>> apt-cache policy mythtv
>>
>> This is what I get:
>>
>> mythtv:
>> Installed: 2:29.1+fixes.20181018.d8a2db7-0ubuntu0mythbuntu2
>> Candidate: 2:29.1+fixes.20181018.d8a2db7-0ubuntu0mythbuntu2
>> Version table:
>> *** 2:29.1+fixes.20181018.d8a2db7-0ubuntu0mythbuntu2 500
>> 500 http://ppa.launchpad.net/mythbuntu/0.29/ubuntu bionic/main
>> amd64 Packages
>> 500 http://ppa.launchpad.net/mythbuntu/0.29/ubuntu bionic/main
>> i386 Packages
>> 100 /var/lib/dpkg/status
>> 2:29.1+fixes.20180414.329c235-0ubuntu3 500
>> 500 http://nz.archive.ubuntu.com/ubuntu bionic/multiverse
>> amd64 Packages
>> 500 http://nz.archive.ubuntu.com/ubuntu bionic/multiverse i386
>> Packages
>>
>> The top of my list is ppa.launchpad.net, so that is where I am getting
>> my packages from. Further down the list is the mirror I am getting
>> the main repository packages from: nz.archive.ubuntu.com.
>>
>> Note that I am on v29 - you are still on 0.28, so it is possible that
>> 0.28 will not have had this bug fix.
>>
>>
>dad at NewMyth:~$ apt-cache policy mythtv
>mythtv:
> Installed: 2:0.28.0+fixes.20160413.15cf421-0ubuntu2
> Candidate: 2:0.28.0+fixes.20160413.15cf421-0ubuntu2
> Version table:
> *** 2:0.28.0+fixes.20160413.15cf421-0ubuntu2 500
> 500 http://us.archive.ubuntu.com/ubuntu xenial/multiverse i386
>Packages
> 100 /var/lib/dpkg/status
>
>You may recall that I never upgrade so updates is turned off. It was
>advice I got 10 years ago when I first started using MythTV. I got it just
>after doing my first upgrade which broke the system.
>
>However, in the course of this long path, I down versioned because of some
>bug with the 6200 video card and am running 16.04.1 where I should be
>running 16.04.5. Damn...
>
>So dare I upgrade or will I just totally break everything.
>
>I have been reading to try and find how to do a simple upgrade so that I
>might have 16.04.5 and the mythtv upgrade you are talking about.
>
>I think what I do is to get the update is this, but does this get it all?
>And is this correct? Does it update everything I need to update?
>
>sudo add-apt-repository ppa:mythbuntu/0.28
>sudo apt-get update
>
>
>Allen
I think that is all that is needed, although as of 16.04, you can use
"apt update" instead of "apt-get update". But it is a long time since
I added the PPA repository. If you do not want to upgrade anything
other than MythTV, the next step is the one you need to worry about.
Normally, I would just do:
sudo apt upgrade
which would upgrade everything that has a newer version. If you
really want to keep running your current packages for everything
except MythTV, then you will need to do something else. I think you
would need to do:
sudo apt-get install <list of all installed MythTV package names>
But most people do not bother with that - if there is one package that
needs to be kept at the current version, they lock that package at
that version and allow all the others to be upgraded. The easiest way
I have found to do that is to install the "synaptic" package and use
synaptic to lock package versions from the "Package > Lock version"
menu. I have my Firefox version locked at the moment, and I have had
to lock the Nvidia driver version in the past when a bad version got
installed. But generally allowing all packages to upgrade usually
works. If you are worried about upgrading, the easy thing to do is
boot clonezilla and make an image backup before doing it, so you can
easily restore the old system if necessary. But you do have to have
enough time between recordings to be able to do the backup, upgrade,
test and if necessary restore from the backup. Now that you are
running 0.28, you can use my "gaps" Python program to tell you when
and how long your recording gaps are:
http://www.jsw.gen.nz/mythtv/gaps
It needs the Utilities.py module available in text form from here:
https://www.mythtv.org/wiki/Python_API_Examples
But you have to use a editor that can create a UTF-8 file with no
signature. So I have a copy of it in downloadable form on my web
server:
http://www.jsw.gen.nz/mythtv/Utilties.py
More information about the mythtv-users
mailing list