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 … 156 157 158 159 160 … 433 Next »
Webclient slow reloading recording list after playing a recording

Webclient slow reloading recording list after playing a recording
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,671
Threads: 170
Joined: Jun 2007
#1
2015-11-06, 05:14 AM
I am using the latest version of NextPVR (3.5.7) with the webclient to X-NEWA on an RPi 2. I have noticed that sometimes after playing a recording, it exits back to the Recordings list, but it takes several seconds for it to update. It seems like this situation happens more often when the recording service is recording several shows at the same time, but I'm not sure if that is just coincidence.

The situation just happened again after I watched a CSI: Cyber. I captured the logs which are attached. In looking at the webclient.log, I see that the RELOAD_RECORDINGS took 13 seconds between LoadList@1 and LoadList@2.
Code:
2015-11-05 22:44:15.681    [DEBUG][1]    LoadList@1
2015-11-05 22:44:28.892    [DEBUG][1]    LoadList@2

In other instances, the time between these steps is sub-second:
Code:
2015-11-05 09:09:43.056    [DEBUG][1]    LoadList@1
2015-11-05 09:09:43.131    [DEBUG][1]    LoadList@2
Code:
2015-11-05 22:44:33.043    [DEBUG][1]    LoadList@1
2015-11-05 22:44:33.108    [DEBUG][1]    LoadList@2

What is NextPVR doing between @1 and @2? And why would it sometimes take many seconds?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#2
2015-11-06, 05:24 AM
Between those two points it's loading the list of recordings from the database, and checking the files exist on disk before including them in the results. It'll be doing the exact things each run. Are you maybe recording to a network drive? If so, windows might be taking some time to re-establish the network connection. Particularly after a period of inactivity. Otherwise it could just be waking a drive or something similar.
HarryH3
Offline

Posting Freak

U.S.A
Posts: 925
Threads: 56
Joined: Mar 2006
#3
2015-11-06, 04:21 PM
I see that many of the UI functions are slower when my server is busy recording several shows. It is even more noticeable just after shows have ended recording and more new shows have just started recording. Comskip is also busy with just-ended recordings at this time. I just attribute it to the computer just being too busy to stop and serve up UI stuff instantly. It has to time-slice CPU, disk drive, memory, and network capacity with so many things going on at once. Perhaps if I had a beefier server it wouldn't be so noticeable, but it is usually just a few extra seconds.
i3-3570k, 8GB RAM, Win10 Pro, Nvidia GT710, HDHomeRun (OTA), NPVR 6.x
On a clear disk, you can seek forever...
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,671
Threads: 170
Joined: Jun 2007
#4
2015-11-06, 04:22 PM
sub Wrote:Between those two points it's loading the list of recordings from the database, and checking the files exist on disk before including them in the results. It'll be doing the exact things each run. Are you maybe recording to a network drive? If so, windows might be taking some time to re-establish the network connection. Particularly after a period of inactivity. Otherwise it could just be waking a drive or something similar.

I've got 3 recording directories and all are local drives. I wonder if it has something to do with disk caching and memory available (i.e. when several recordings are occurring at the same time, more memory is used to cache the recordings and it flushes out the directory info from the unused recording drives).
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,671
Threads: 170
Joined: Jun 2007
#5
2015-11-06, 04:28 PM (This post was last modified: 2015-11-06, 04:34 PM by BrettB.)
HarryH3 Wrote:I see that many of the UI functions are slower when my server is busy recording several shows. It is even more noticeable just after shows have ended recording and more new shows have just started recording. Comskip is also busy with just-ended recordings at this time. I just attribute it to the computer just being too busy to stop and serve up UI stuff instantly. It has to time-slice CPU, disk drive, memory, and network capacity with so many things going on at once. Perhaps if I had a beefier server it wouldn't be so noticeable, but it is usually just a few extra seconds.

I've got a quite beefy server now (just upgraded a few months ago)--it has an eight-core processor, 16 GB RAM, SATA III drives, gigabit wired network, etc. And I've got it only running 1 comskip instance at a time. So I don't think that is my problem. Plus, when I do have this issue, it is not just for a "few" seconds, it is 10-20 seconds as shown in that log. As sub mentioned, I think that it must have something to do with NextPVR trying to verify that all the recordings still exist on disk.
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,671
Threads: 170
Joined: Jun 2007
#6
2015-11-06, 04:33 PM
sub Wrote:Between those two points it's loading the list of recordings from the database, and checking the files exist on disk before including them in the results. It'll be doing the exact things each run. Are you maybe recording to a network drive? If so, windows might be taking some time to re-establish the network connection. Particularly are a period of inactivity. Otherwise it could just be waking a drive or something similar.

Sub, I have <AutoRemoveMissingRecordings>false</AutoRemoveMissingRecordings> in my config.xml. So would it still be checking for the existence of each recording every time the recording list is loaded? And, if so, is there a specific reason? It seems rather inefficient.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#7
2015-11-06, 04:36 PM
If you have either <CheckForRenamedRecordings> or <AutoRemoveMissingRecordings> set to true, then it'll do these checks.
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,671
Threads: 170
Joined: Jun 2007
#8
2015-11-06, 04:44 PM
sub Wrote:If you have either <CheckForRenamedRecordings> or <AutoRemoveMissingRecordings> set to true, then it'll do these checks.

Ah, ok. My config did have <CheckForRenamedRecordings> set to true. But I'm not doing any transcoding, etc., so I don't need for it to be true. I'll change it to false and see if my problem goes away.

Thanks for the quick responses!
HarryH3
Offline

Posting Freak

U.S.A
Posts: 925
Threads: 56
Joined: Mar 2006
#9
2015-11-07, 08:36 PM
Here's how I hope to speed up the UI on my server: I'm going to be upgrading the SSD in my wife's laptop around Black Friday. My plan is to use her old one in the NPVR server to host the OS and NPVR. My hope is that this will greatly speed up NPVR's database functions. Right now, just paging down through the EPG takes 2-3 seconds per page, while the spinning disk clatters away to find all of the data it needs to fill each screen.
i3-3570k, 8GB RAM, Win10 Pro, Nvidia GT710, HDHomeRun (OTA), NPVR 6.x
On a clear disk, you can seek forever...
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,671
Threads: 170
Joined: Jun 2007
#10
2015-11-07, 11:09 PM
HarryH3 Wrote:Here's how I hope to speed up the UI on my server: I'm going to be upgrading the SSD in my wife's laptop around Black Friday. My plan is to use her old one in the NPVR server to host the OS and NPVR. My hope is that this will greatly speed up NPVR's database functions. Right now, just paging down through the EPG takes 2-3 seconds per page, while the spinning disk clatters away to find all of the data it needs to fill each screen.

I have had an SSD for the system disk on my NextPVR server for a few years now. And paging down through my EPG (or recordings lists) is basically instantaneous. So I would bet you will see a noticeable improvement.
« 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
  Recording movies / TV to XBMC directory stucture spinnaker 10 4,010 2024-06-03, 03:56 AM
Last Post: Rod Hutchinson
  Not recording errors vidwiz 4 1,225 2024-04-17, 05:39 PM
Last Post: mvallevand
  Add Series/Episode Info to Recording Metadata andrewj 2 1,290 2023-11-20, 03:42 PM
Last Post: sub
  Recording to a network drive woes. 2leftfeet 12 7,751 2022-04-05, 08:03 PM
Last Post: mvallevand
  device needed for recording David209 2 1,858 2021-04-04, 08:47 AM
Last Post: David209
  PC not going to sleep after recording LeoL 7 3,720 2021-04-01, 07:17 PM
Last Post: Handy.Man
  HDHomerun recording bizzarely not working Jean0987654321 3 2,301 2021-03-27, 03:23 PM
Last Post: Jean0987654321
Video Restrict Recording Space foucomm 1 1,471 2021-01-30, 09:25 PM
Last Post: mvallevand
  Directory dropdown on the recording edit dialog MicahMakenzie 1 1,636 2021-01-11, 04:37 PM
Last Post: Graham
  Recording service stopped or not running at scheduled time MattInetroit 3 2,098 2021-01-08, 12:03 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode