<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 14, 2022 at 12:30 PM Peter Bennett <<a href="mailto:pb.mythtv@gmail.com">pb.mythtv@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 6/4/22 22:50, Stephen Worthington wrote:<br>
> On Sat, 4 Jun 2022 21:33:09 -0400, you wrote:<br>
><br>
>> Recently, I'm noticing that mythfilldtabase is taking something like 12<br>
>> hours to finish. I know we had some issues with SD and the backend<br>
>> maintenance, so not sure if that has been fully resolved.<br>
>><br>
>> I'm on Ubuntu 18.04 and mythtv v30.0.  I use the sdjson_sqlite grabber<br>
>> v1.109 and xmltv v0.5.70.  I only have about 100 channels set as "selected"<br>
>> in the sqlite database.<br>
>><br>
>> Mythfilldatabase sits forever on the message "pruning local database"<br>
>><br>
>> I see very low CPU utilization on a four vCPU i7 VM with 8GB RAM.<br>
>><br>
>> Any thoughts on why this is taking so long?<br>
>><br>
>> Larry<br>
<br>
Does the disk thrash during the run? I found that mythfilldatabase took <br>
a long time and there was considerable disk thrashing. My solution was <br>
to add nobarrier in the fstab for the fie system that stores the mysql <br>
database.<br>
<br>
UUID=f8877741-668e-462b-8315-613a44fc5698 /               ext4 <br>
nobarrier,errors=remount-ro  0       1<br>
<br>
If you have an SSD this is likely not applicable. In my case with a hard <br>
drive this was a huge improvement.<br>
<br>
HTH. YMMV.<br></blockquote><div><br></div><div>Peter, I looked into this, thinking it might be slow I/O.  I ran a test using dd to copy to a file on the same filesystem as mysql.</div><div><br></div><div>sudo dd if=/dev/zero of=/var/lib/test.img bs=1G count=1 oflag=dsync<br></div><div><br></div><div>I got ~36MB/sec which is about right for spinning disks.  I've not noticed any disk thrashing.</div><div><br></div><div>Larry<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div></div>