SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-05-2006, 08:58 PM
coppit coppit is offline
Sage Advanced User
 
Join Date: Mar 2003
Posts: 176
Slow startup

Why does Sage take so long to start? What is the profiler anyway?
Reply With Quote
  #2  
Old 10-06-2006, 05:01 AM
domc domc is offline
Sage Advanced User
 
Join Date: Dec 2005
Posts: 192
I noticed happening in the beta 6 version. I think it has something to do with the sagetvservice running in the backround. Do you have that turned on?
__________________
Thanks,
Dom
www.domanddonna.com
SageTV 4.1 / JVC Analog TV 27"/ 2.93G speed Computer/ 512mb Ram/ Pvr-150 / 45 Hauppage remote / Verto GeForce FX 5500 128mb svideo out/ Dishnetwork 501 box/VideoRedo Plus/ShowAnalyzer/DVDStyler Free Mpeg to Dvd recorder
Reply With Quote
  #3  
Old 10-06-2006, 05:33 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
It doesn't really matter whether you are using service mode or not; it has to go through the same startup procedures at some point. Startup with a larger wiz.bin will take longer than with a fresh/smaller wiz.bin because it has to check & process things in the database. The more viewing history (and probably imported media) there is to check & the slower the computer, the longer it takes.

If using service mode, that startup is handled by the service, so once the service is fully running, the UI portion would load faster than if only the UI was used w/o the service.

(One thing about v6 is that during the very first startup, it has to reprocess a lot of the data in the database to allow for new capabilities, but this is a one-time thing.)

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #4  
Old 10-06-2006, 07:33 AM
coppit coppit is offline
Sage Advanced User
 
Join Date: Mar 2003
Posts: 176
Still, with a > 1GHz machine, initializing the profiler takes several minutes. It's always been this way for me, since 4.x days. It's not like Sage is untangling proteins or anything... What is it doing that chomps my CPU for that long?
Reply With Quote
  #5  
Old 10-06-2006, 07:42 AM
coppit coppit is offline
Sage Advanced User
 
Join Date: Mar 2003
Posts: 176
Quote:
Originally Posted by Opus4
The more viewing history (and probably imported media) there is to check & the slower the computer, the longer it takes.
Can't the imported media stuff be done in the background after Sage starts? Is viewing history from 2 years ago still relevant today? What computation is being done with the viewing history, exactly? If it really is CPU-intensive, why can't Sage save its state from the previous execution and simply pick up from where it left off?

I admit that I'm ignorant about what Sage is doing during startup, but I really don't see how an application like Sage can need that much CPU.
Reply With Quote
  #6  
Old 10-06-2006, 07:47 AM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
Quote:
Originally Posted by coppit
Is viewing history from 2 years ago still relevant today? What computation is being done with the viewing history, exactly?
Yes it is releveant. How do you think Sage knows not to schedule a show to record that you watched 2 years ago if it doesn't check the history?
Reply With Quote
  #7  
Old 10-06-2006, 09:19 AM
coppit coppit is offline
Sage Advanced User
 
Join Date: Mar 2003
Posts: 176
Quote:
Originally Posted by blade
Yes it is relevant. How do you think Sage knows not to schedule a show to record that you watched 2 years ago if it doesn't check the history?
Understood. Still, let's say that I've watch 2 million shows. Dealing with even that much data is trivial with today's computers. For example, I just corrected your misspelling of "relevant" above, and Firefox was able to nearly instantly search its entire corpus of known words to determine that my change was correct.

Something else must be the cause of the slow startup...
Reply With Quote
  #8  
Old 10-06-2006, 09:45 AM
Ken C Ken C is offline
Sage Aficionado
 
Join Date: Apr 2005
Posts: 446
Quote:
Originally Posted by Opus4
It doesn't really matter whether you are using service mode or not; it has to go through the same startup procedures at some point. Startup with a larger wiz.bin will take longer than with a fresh/smaller wiz.bin because it has to check & process things in the database. The more viewing history (and probably imported media) there is to check & the slower the computer, the longer it takes.
- Andy
Interesting. So, as wiz.bin grows larger as time goes by, the startup time will increase ? Right now, with about 18 months of data on my machine, it takes a long time. Will the startup time double with 3 years of data ?

Is this also the cause of slow gui response ? I seem to spend a lot of time watching the spinning "flower".

Ken C
Reply With Quote
  #9  
Old 10-06-2006, 10:01 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by Ken C
Interesting. So, as wiz.bin grows larger as time goes by, the startup time will increase ? Right now, with about 18 months of data on my machine, it takes a long time. Will the startup time double with 3 years of data ?
With my 3 years of data & a 2.8 jiggahertz p4 , it takes the service about 2 minutes to start, or less. That increased a little bit when I added a few thousand songs recently. I start the service pretty much only when a new version comes out, so I don't see it as a major road block, personally.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #10  
Old 06-23-2007, 08:39 AM
Kanati's Avatar
Kanati Kanati is offline
Sage Expert
 
Join Date: May 2005
Posts: 567
Resurrecting this old thread because this is exactly what I was looking for...

Startup time for me on a 2 gajiggahertz machine and about 3 years or so of data myself... We're not talking just recordings of favorites and manual recordings for that time either... we're talking all that time with "not quite smart" recording turned on and it recording nearly 24 hours a day and it takes longer than 2 minutes. By quite a bit. I think it's five minutes or so. And that's just too long when I'm rushing to get it started because it blew up for whatever reason and I have a recording that I want to get started in 30 seconds.

So... Is there a way to purge data from wiz.bin? Say... I only want the last YEAR worth of data. Or maybe I only want to keep my favorites and purge all other data... How would I go about that?
V5 btw...

[edit] Oh... and btw... Since it's processing all of this information up-front... Does that mean it's holding all that in memory and not just chomping cpu cycles but also destroying my paltry 1 gig of memory while it's at it? That would explain some slowdown in the UI as well.

Kanati

Last edited by Kanati; 06-23-2007 at 08:43 AM.
Reply With Quote
  #11  
Old 06-23-2007, 04:16 PM
coppit coppit is offline
Sage Advanced User
 
Join Date: Mar 2003
Posts: 176
For what it's worth, I recently rebuilt my system with a Core 2 Duo. In the process I had to start clean. This seemed to help, although I've been spending a lot of time telling it I've seen shows.
Reply With Quote
  #12  
Old 01-07-2008, 06:19 PM
salsbst's Avatar
salsbst salsbst is offline
SageTVaholic
 
Join Date: Jun 2003
Posts: 2,592
Profiler needs to be moved to a background thread

I understand that the work the profiler does requires heavy CPU startup time. But can the rest of the software not run until the profiler has brought itself up to date? I hope there's a way to allow the rest of SageTV to function while the profiler does its business, because that would probably longtime users very happy. Putting the profiler in its own thread and establishing a status of the recording/guide data as "being updated" would go a long way to helping us out with this problem.
Reply With Quote
  #13  
Old 01-07-2008, 07:32 PM
GTwannabe's Avatar
GTwannabe GTwannabe is offline
Sage Aficionado
 
Join Date: Dec 2004
Posts: 434
I wish Sage would ditch the clunky old Wiz.bin database in favor of MySQL or SQL Server Express. Mine is only 22mb, but it causes the Sage service to grind for 5-10 minutes on start. It only loads one of the CPU's, so whatever Sage is doing with the database sure isn't multi-threaded. I would expect this kind of poor performance from an Access database, but a 22mb database shouldn't cause a decent database engine to break a sweat.
__________________
Intel NUC SageTV 7 server - HDHomeRun PRIME - 2TB iSCSI ReadyNAS storage
Intel i3 HTPC SageTV 7 Client - Win 7 x64 - Onkyo TX-674
Reply With Quote
  #14  
Old 01-08-2008, 02:58 PM
coppit coppit is offline
Sage Advanced User
 
Join Date: Mar 2003
Posts: 176
Another update: things are much faster than they used to be. It seems like after my initial post, then next major revision was much faster. But it could also have been that my old setup had 3+ years of cruft that was slowing things down.
Reply With Quote
  #15  
Old 02-01-2008, 09:59 PM
sfisher sfisher is offline
Sage Advanced User
 
Join Date: Sep 2003
Posts: 91
Mine easily take 20-30 Minutes to start up

Quote:
Originally Posted by Kanati View Post
Resurrecting this old thread because this is exactly what I was looking for...

Startup time for me on a 2 gajiggahertz machine and about 3 years or so of data myself... We're not talking just recordings of favorites and manual recordings for that time either... we're talking all that time with "not quite smart" recording turned on and it recording nearly 24 hours a day and it takes longer than 2 minutes. By quite a bit. I think it's five minutes or so. And that's just too long when I'm rushing to get it started because it blew up for whatever reason and I have a recording that I want to get started in 30 seconds.


Kanati
Profiler takes forever! And I end up re-booting much more often than some for Norton AV upgrades/updates / Windows updates and right now because I'm having trouble with one of the pvr 500 boards and I have to wait 20-30 minute each time to see if the change to the software took...or not.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 07:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.