<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 18, 2022 at 1:22 PM Larry Kennedy <<a href="mailto:lunchtimelarry@gmail.com">lunchtimelarry@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"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 18, 2022 at 1:09 PM Gary Buhrmaster <<a href="mailto:gary.buhrmaster@gmail.com" target="_blank">gary.buhrmaster@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">On Sat, Jun 18, 2022 at 1:20 PM Larry Kennedy <<a href="mailto:lunchtimelarry@gmail.com" target="_blank">lunchtimelarry@gmail.com</a>> wrote:<br>
<br>
> It was becoming apparent that nothing I tweaked was changing the result, so I decided to stand up a new database to see. Since I have a docker platform at hand, I installed a mariadb container and loaded the mythconverg database dump into that new database. Now, MFDB runs quickly! It took 30 minutes the first time since it was behind a couple of days (I assume that's why), and subsequent runs are just a few minutes. Woo Hoo!<br>
<br>
Tends to support the conclusion that your issues<br>
were database (configuration) related. The need<br>
for tuning for adequate performance is, as I recall,<br>
one of the reasons that some MythTV elders at<br>
one point proposed embedding the database<br>
into the app and configuring it specifically for<br>
MythTV (only) for default installs.<br></blockquote><div><br></div><div>I nuked and reinstalled mariadb, making sure that *everything* was cleaned out of /var/lib/mysql, as well as /etc/mysql/. Even so, the reload of the mythconverg database dump is definitely lower than it was when I loaded the docker instance of the same database dump yesterday. Clearly, there is something about the VM that is causing the poor performance.<br></div><div><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>
> Where is the mythweb database config located?<br>
<br>
Look inside your web server conf for settings such as:<br>
<br>
db_server "localhost"<br>
<br>
the actual location and syntax will vary depending<br>
on your choice of web server.<br>
<br>
And, of course, you may need to be sure your<br>
GRANTs are appropriate.<br></blockquote><div><br></div><div>OK, after much searching, I found the config file that points Mythweb to a database on another host. If you run apache2 and are looking for this, go here:</div><div><br></div><div>/etc/apache2/sites-enabled/mythweb.conf, which soft links to ../sites-available/mythweb.conf</div><div><br></div><div>Change the setenv db_server to whatever host you run the database on. There are other settings like default username and password. <br></div><div><br></div><div>And, and Gary pointed out, the database user (likely, mythtv) needs to be granted full permissions to mythconverg.*</div><div><br></div><div>Larry<br></div></div></div></blockquote><div><br></div><div>I discovered that I had a misconfigured VM that was causing the issue. I was able to isolate this issue by standing up an alternate database on another platform to prove that the grabber and the sqlite database and the number of channels were set up correctly and not part of the problem.</div><div><br></div><div>The configuration issue led to very expensive random I/O, which goes back to what Gary said about the dd test and sequential I/O being different from random I/O.</div><div><br></div><div>Larry</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<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>
</blockquote></div></div>