NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 143 144 145 146 147 … 433 Next »
EPG Update

EPG Update
jcole998
Offline

Posting Freak

New York, USA
Posts: 865
Threads: 186
Joined: Jun 2015
#1
2016-02-09, 04:34 PM
I was looking through the NRecord.log file and noticed that it's taking about 20 of the 26-minute update time just to delete old listings. Is this normal? Is there no faster way to delete rows from the database? My update consists of a 14-day look ahead period. I'm just concerned that for that length of time, the update is exposed to any manner of system glitch that could corrupt the database. (and I'm curious)

Thanks for the help.
Later...JohnC

System Status: Humming nicely!  Smile
Desktop: Intel DX38BT MB - Intel Q9650 3GHz Quad - NVIDIA GeForce GTX 1050 Ti Graphics
Software: Win 10 Pro(Build 1909) - NextPVR - WinTV8
Video: Verizon FiOS - Hauppauge DCR-3250 - Hauppauge 1512 HDPVR2
RaspberryPi 4 Raspbian and FLIRC
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2016-02-09, 04:44 PM
It usually wouldn't take that long. This section of the logs is actually saving the listings to the database too though, not just deleting.

You might have to look how the CPU, memory and I/O usage looks during an EPG update, so you can tell which is proving a bottleneck.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#3
2016-02-09, 04:58 PM
To try emulating your setup, I added a schedules direct lineup with 668 channels (yours had 563). An EPG update here is taking about 4 minutes from beginning to end.
jcole998
Offline

Posting Freak

New York, USA
Posts: 865
Threads: 186
Joined: Jun 2015
#4
2016-02-09, 10:03 PM
Thank you, sub. I will dig further and post any insights. Maybe there is some aspect of the database I can tweak.
Later...JohnC

System Status: Humming nicely!  Smile
Desktop: Intel DX38BT MB - Intel Q9650 3GHz Quad - NVIDIA GeForce GTX 1050 Ti Graphics
Software: Win 10 Pro(Build 1909) - NextPVR - WinTV8
Video: Verizon FiOS - Hauppauge DCR-3250 - Hauppauge 1512 HDPVR2
RaspberryPi 4 Raspbian and FLIRC
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#5
2016-02-09, 10:09 PM
I'd start by looking at the disk/cpu/memory usage during an EPG update. It's likely one of these is the bottleneck.

You could always delete the channels you know you never watch. I'm guessing at lot of those 563 channels are never used.

Otherwise you could reduce the number of days of listings.
jcole998
Offline

Posting Freak

New York, USA
Posts: 865
Threads: 186
Joined: Jun 2015
#6
2016-02-11, 04:36 PM
OK...

Launched the Resource Monitor from the Task Manager during the EPG Update. During the "slow" part of the update with NextPVR showing "Saving EPG Listings" CPU time is less than 1% but there is tremendous disk activity on a file named c:\users\npvr\npvr.db3-journal. Watching the folder within which this file resides, the file is continually popping in and out of view like it's being deleted and created hundreds of times.

Could this be the cause of the the lengthy update? Can I control the manner with which the database manipulates this file?
Later...JohnC

System Status: Humming nicely!  Smile
Desktop: Intel DX38BT MB - Intel Q9650 3GHz Quad - NVIDIA GeForce GTX 1050 Ti Graphics
Software: Win 10 Pro(Build 1909) - NextPVR - WinTV8
Video: Verizon FiOS - Hauppauge DCR-3250 - Hauppauge 1512 HDPVR2
RaspberryPi 4 Raspbian and FLIRC
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,180
Threads: 958
Joined: May 2006
#7
2016-02-11, 05:03 PM
I've reported that deleting channel by channel has always been a bottleneck fo me and it looks like the same for you too

2016-02-09 04:19:21.245 [DEBUG][10] Deleting old listings from Channel OID: 7472 (Smithsonian Cha)
2016-02-09 04:19:23.179 [DEBUG][10] Deleting old listings from Channel OID: 7473 (TLC HD)
2016-02-09 04:19:25.427 [DEBUG][10] Deleting old listings from Channel OID: 7474 (Lifetime HD)
2016-02-09 04:19:27.645 [DEBUG][10] Deleting old listings from Channel OID: 7475 (LMN HD)

2 seconds a channel adds up when you have so many channels. I tried emptying the epg table first and it doesn't help.

Martin
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#8
2016-02-11, 05:10 PM
jcole998 Wrote:... there is tremendous disk activity on a file named c:\users\npvr\npvr.db3-journal.

The journal file is an integral part of the SQLite database process used by NextPVR and is outside of NextPVR control. I doubt that there is much that can be done with regard to the journal ... https://www.sqlite.org/tempfiles.html
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#9
2016-02-11, 05:14 PM
mvallevand Wrote:I've reported that deleting channel by channel has always been a bottleneck fo me and it looks like the same for you too

2016-02-09 04:19:21.245 [DEBUG][10] Deleting old listings from Channel OID: 7472 (Smithsonian Cha)
2016-02-09 04:19:23.179 [DEBUG][10] Deleting old listings from Channel OID: 7473 (TLC HD)
2016-02-09 04:19:25.427 [DEBUG][10] Deleting old listings from Channel OID: 7474 (Lifetime HD)
2016-02-09 04:19:27.645 [DEBUG][10] Deleting old listings from Channel OID: 7475 (LMN HD)

2 seconds a channel adds up when you have so many channels. I tried emptying the epg table first and it doesn't help.

Martin
It's not the deleting that's taking the time there. That happens very quickly. It's the saving the listings which takes the time. It's happening between each of those log messages, but you don't see it in your logs.

A snippet from my logs, which show more info, should show you what I mean:

Quote:2016-02-12 06:14:33.087 [DEBUG][10] Deleting old listings from Channel OID: 7184 (WCBS)
2016-02-12 06:14:33.087 [DEBUG][10] - about to save epg events
2016-02-12 06:14:33.128 [DEBUG][10] - saved 255 epg events. updated 0. skipped 0
2016-02-12 06:14:33.128 [DEBUG][10] Deleting old listings from Channel OID: 7185 (WPXN)
2016-02-12 06:14:33.128 [DEBUG][10] - about to save epg events
2016-02-12 06:14:33.176 [DEBUG][10] - saved 227 epg events. updated 0. skipped 0
2016-02-12 06:14:33.176 [DEBUG][10] Deleting old listings from Channel OID: 7186 (WNBC)
2016-02-12 06:14:33.176 [DEBUG][10] - about to save epg events
2016-02-12 06:14:33.216 [DEBUG][10] - saved 253 epg events. updated 0. skipped 0
2016-02-12 06:14:33.216 [DEBUG][10] Deleting old listings from Channel OID: 7187 (WNYW)
2016-02-12 06:14:33.216 [DEBUG][10] - about to save epg events
2016-02-12 06:14:33.263 [DEBUG][10] - saved 289 epg events. updated 0. skipped 0
2016-02-12 06:14:33.263 [DEBUG][10] Deleting old listings from Channel OID: 7188 (WXTV)
2016-02-12 06:14:33.263 [DEBUG][10] - about to save epg events
2016-02-12 06:14:33.300 [DEBUG][10] - saved 208 epg events. updated 0. skipped 0
2016-02-12 06:14:33.300 [DEBUG][10] Deleting old listings from Channel OID: 7189 (WABC)
2016-02-12 06:14:33.300 [DEBUG][10] - about to save epg events
2016-02-12 06:14:33.352 [DEBUG][10] - saved 248 epg events. updated 0. skipped 0
2016-02-12 06:14:33.352 [DEBUG][10] Deleting old listings from Channel OID: 7190 (HSN)
2016-02-12 06:14:33.353 [DEBUG][10] - about to save epg events
2016-02-12 06:14:33.405 [DEBUG][10] - saved 221 epg events. updated 0. skipped 0
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#10
2016-02-11, 05:15 PM
Graham Wrote:I doubt that there is much that can be done with regard to the journal
But, maybe ... just maybe ... you could try this ... https://sqlite.org/lang_vacuum.html ... immediately before an update.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  EPG Update Errors jcole998 23 1,999 2025-05-11, 06:03 PM
Last Post: mvallevand
  Device Update - Channel Mapping chezmorris 10 4,864 2022-07-01, 01:59 PM
Last Post: mvallevand
  ITV/BBC HD and EPG missing from scan and update angelisle 16 4,363 2021-08-26, 11:45 AM
Last Post: NumberFive
  Auto Update EPG not running as scheduled? BairStrokes 2 1,825 2021-03-26, 12:02 PM
Last Post: NumberFive
  automatic EPG update virtualpaul 18 13,232 2021-01-29, 12:40 PM
Last Post: virtualpaul
  Auto Update EPG not running as scheduled Bobbybear 10 3,810 2020-10-24, 09:24 AM
Last Post: Bobbybear
  Microsoft update Brucek2839 2 1,556 2020-09-12, 03:29 AM
Last Post: Brucek2839
  cmd line update urls? pBS 0 1,246 2019-11-30, 11:05 AM
Last Post: pBS
  NextPVR channel changing between DVB-T and Hauppauge Colossus channels: Update three6zerocool 0 1,344 2019-09-28, 09:55 AM
Last Post: three6zerocool
  DVB EPG does not update bass_gas 9 5,558 2019-08-15, 04:55 PM
Last Post: Ludron

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode