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 06-11-2007, 03:42 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
High CPU Usage with SageTV

Hi.

I recently upgraded my SageTV system with a new Intel Pentium D 915 and ECS motherboard. My old system, AMD CPU and ECS mb was old and dying.

I installed latest SageTV 6.1.19 and moved everthing over. Everything is fine EXCEPT that now, after SageTV has been up for a few hours, it mysteriously begins to use up around 80% of the CPU while there is nothing going on (no recordings, no showing, etc).

So it starts and all is well, 0-2% CPU usage and then, later on it's at 80% cpu usage with SageTV process and nothing going on with Sage.

Never had this problem before upgrading.

I am trying to see if I left something obvious out or if this is a known problem?
Reply With Quote
  #2  
Old 06-11-2007, 04:01 PM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
My experiences with 6.1.19 are about exactly the same. My Pentium D 940 with 3 gigs of ram along with a fresh install of windows running only Sage (not even recording, or transcoding) was crippled. Previous to that I was running 6.0.19 no problems what-so-ever. I ultimately went back to 6.0.19. Nothing I did with 6.1 worked for me. 6.0 is still working perfectly for me Not sure what to tell you. I would be curious to know if others have experienced this with 6.1.9 and if there is a fix.
Reply With Quote
  #3  
Old 06-11-2007, 04:14 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Quote:
Originally Posted by wrems View Post
My experiences with 6.1.19 are about exactly the same. My Pentium D 940 with 3 gigs of ram along with a fresh install of windows running only Sage (not even recording, or transcoding) was crippled. Previous to that I was running 6.0.19 no problems what-so-ever. I ultimately went back to 6.0.19. Nothing I did with 6.1 worked for me. 6.0 is still working perfectly for me Not sure what to tell you. I would be curious to know if others have experienced this with 6.1.9 and if there is a fix.
Thanks! I'll will downgrade to 6.0.19 tonight. This sure sounds weird...
Reply With Quote
  #4  
Old 06-11-2007, 07:07 PM
rickgode rickgode is offline
Sage User
 
Join Date: Jul 2006
Posts: 66
Are you running any other clients or MVP? I had the exact same problem when I upgraded to 6.1.19, but when I ran sage in service mode, it fixed everything.
__________________
Dell Inspiron 530 desktop, Intel Core 2 Duo 2.8 ghz, 6 gigs of RAM, 1 WesternDigital 750 gig hard drive partitioned in 75 gig/675 gig, 1 Seagate 2 TeraByte Hard drive: 1 HDHR Prime-CC, 1 Hauppauge HD-PVR with Hauppauge 45 button remote with blaster to control 1 Explorer 4640HDC, Windows 7 64bit SP1 all updates applied, SageTV 9.1.7.757, Java v1.7.0_79, SageTV Webserver v3.3, SageTV Mobile Web Interface v2.1.0.47, 2 Hauppauge MediaMPVs & 1 Helius MPV.
Reply With Quote
  #5  
Old 06-11-2007, 07:16 PM
sainswor99's Avatar
sainswor99 sainswor99 is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 703
You may also want to make sure that the BIOS is updated for your motherboard; I had a similar problem with transcoding using an excessive amount of one CPU. After I updated the BIOS (which included support for my CPU), the problem went away.

Just a thought.
Stu
Reply With Quote
  #6  
Old 06-11-2007, 08:49 PM
carlgar carlgar is offline
Sage Icon
 
Join Date: Oct 2003
Location: Brentwood, TN
Posts: 1,866
Sage is aware of the problem but there are unable to duplicate it. Narflex made a recent post about it but I am unable to locate it. When you see the high usage, check the number of threads. If the number of threads is more than 100 then you probably have the same problem I saw. The fix given to me by support was to set the following true in the sage properties file:

ui/disable_native_image_loader=true

If this corrects your problem and you are willing to give support remote access to your system and you have DSL or faster access, you should let support know. They are still looking for the exact cause of this issue.
__________________
Server : Intel Core i7 2.8 GHz Processor: Gigabyte X58A-UD3R Motherboard: 6 GB Memory : 1 120 GB Intel SSD :3 2 TB WD hard drives:1 Hauppauge PVR 2250: 3 HDHomeRuns:1 HD300 extender;1 HD200 extender;1 HD100 extender 2 MVP Media Extenders: Windows 7 64 bit Home Premium all updates applied, SageTV V7.1.7.254.
Reply With Quote
  #7  
Old 06-11-2007, 10:58 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Thanks guys.

I will make sure my BIOS is update as well and will try the config add line.

By the way, how do I run Sage in "Service Mode"?
Reply With Quote
  #8  
Old 06-12-2007, 05:24 AM
dvd_maniac's Avatar
dvd_maniac dvd_maniac is offline
Sage Icon
 
Join Date: Mar 2004
Location: New England
Posts: 1,899
Quote:
ui/disable_native_image_loader=true
If I run Sage in service mode do I change it in the sage or sageclient properties file? In your post it says Sage properties but I just want to make sure...

And thanx for the tip Carigar
__________________
If this doesn't work right, Then:
"I'm going to blow up the Earth!"
Reply With Quote
  #9  
Old 06-12-2007, 01:36 PM
carlgar carlgar is offline
Sage Icon
 
Join Date: Oct 2003
Location: Brentwood, TN
Posts: 1,866
I don't use service mode so I am not sure. I changed it only only for Sage itself. I have not seen the problem in the client. I doubt if it would hurt to set it in the client.
__________________
Server : Intel Core i7 2.8 GHz Processor: Gigabyte X58A-UD3R Motherboard: 6 GB Memory : 1 120 GB Intel SSD :3 2 TB WD hard drives:1 Hauppauge PVR 2250: 3 HDHomeRuns:1 HD300 extender;1 HD200 extender;1 HD100 extender 2 MVP Media Extenders: Windows 7 64 bit Home Premium all updates applied, SageTV V7.1.7.254.
Reply With Quote
  #10  
Old 06-12-2007, 03:26 PM
akenis akenis is offline
Sage Advanced User
 
Join Date: Dec 2004
Location: Charleston, SC
Posts: 135
What do you mean by "more than 100 threads"....?

Andrew
__________________
Sage server in service mode..2 MVPs both w/ MCE
Reply With Quote
  #11  
Old 06-12-2007, 04:00 PM
carlgar carlgar is offline
Sage Icon
 
Join Date: Oct 2003
Location: Brentwood, TN
Posts: 1,866
I am not really sure what your question is. Use the task manager to view the number of threads currently used by SageTV. SageTV normally uses about 60 threads. The high CPU issue is cause by Sage starting threads that never go away. I have seen as many as 800 threads in use by Sage (when the problem occurs) and that is what is eating the CPU cycles.
__________________
Server : Intel Core i7 2.8 GHz Processor: Gigabyte X58A-UD3R Motherboard: 6 GB Memory : 1 120 GB Intel SSD :3 2 TB WD hard drives:1 Hauppauge PVR 2250: 3 HDHomeRuns:1 HD300 extender;1 HD200 extender;1 HD100 extender 2 MVP Media Extenders: Windows 7 64 bit Home Premium all updates applied, SageTV V7.1.7.254.
Reply With Quote
  #12  
Old 06-13-2007, 09:07 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Ok, I tried EVERYTHING listed here (except downgrading to 6.0.19) and nothing worked.

I even re-installed Windows-XP, re-setup everything, same problems.

So, where can I get Version 6.0.19 to downgrade? I see the web link, but it point to the main web page which goes to 6.1.

P.S. My thread count for SageTV is very high, 200 or more when the problem starts as Calgar noted.

Last edited by joe123; 06-13-2007 at 09:13 PM.
Reply With Quote
  #13  
Old 06-13-2007, 09:48 PM
dvsing's Avatar
dvsing dvsing is offline
Sage Advanced User
 
Join Date: Sep 2003
Posts: 193
HELP! I'm having the same problem. I recently upgraded ALL of the hardware on my sage box (new motherboard, CPU, fresh XP installation, fresh SageTV installation).

When I start SageTV all is well.. but it seems that if I come back to it after a few hours the CPU is pegged very high and on the task manager that I use (irsan taskinfo) it indicates that the majority of this time is "Kernel" time, even though it says that SageTV is responsible for it.

I tried setting ui/disable_native_image_loader=true and this had no effect.. problem is still there.

I have 4 encoders: A Hauppauge PVR-250, PVR-350, and a dual-encoder HDHR (networked encoder mode, *NOT* using the BDA driver hack).

I installed brand new drivers from Hauppauge's website since this is a fresh system install. I'm not sure if that has anything to do with it or not.

SageTV is pretty useless right now for me so I am at anyone's disposal if they have any suggestions on how to fix this!!!!

-Dan
Reply With Quote
  #14  
Old 06-13-2007, 10:44 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Ok, I found the problem.

Before I go into details, let me wait 1 day to make sure the problem has in fact gone away. So far, it's been up for 2 hours with lots of usage and NO high CPU usage like before.

If by tomorrow the system is still normal, I will explain what I did and what is causing the high CPU usage.

Joe
Reply With Quote
  #15  
Old 06-13-2007, 10:45 PM
dvsing's Avatar
dvsing dvsing is offline
Sage Advanced User
 
Join Date: Sep 2003
Posts: 193
Adding some information here... So on Irsan TaskInfo, it shows the sageTV process as having 980 windows,... and it's steadily increasing. about 2 windows every 30-60 seconds. So in the course of writing the note and monitoring it it's now up to 1000. This has to be what is causing the huge amount of kernel time and the resulting swamping of CPU cycles.

What could be causing Sage to open so many Windows -- and by windows, I mean Threads I think.. I think that's what TaskInfo means when it lists Windows.

-Dan
Reply With Quote
  #16  
Old 06-13-2007, 10:48 PM
dvsing's Avatar
dvsing dvsing is offline
Sage Advanced User
 
Join Date: Sep 2003
Posts: 193
joe123 - I'm very interested to know what you are trying to do to fix the problem. Let us know your results ASAP!
Reply With Quote
  #17  
Old 06-14-2007, 12:22 AM
stevech stevech is offline
Sage Icon
 
Join Date: Dec 2005
Posts: 1,643
Quote:
Originally Posted by dvsing View Post
Adding some information here... So on Irsan TaskInfo, it shows the sageTV process as having 980 windows,... and it's steadily increasing. about 2 windows every 30-60 seconds. So in the course of writing the note and monitoring it it's now up to 1000. This has to be what is causing the huge amount of kernel time and the resulting swamping of CPU cycles.

What could be causing Sage to open so many Windows -- and by windows, I mean Threads I think.. I think that's what TaskInfo means when it lists Windows.

-Dan
I believe that a "handle" in the Task Manager's display corresponds to each window and each object on the window such as a text box or button. I see handle counts climb then suddenly drop, due to "garbage" collection in Java's VM. But if the handle count just goes to tens of thousands and never decreases, there's a handle memory leak problem. After enough time, this form of memory leak will lead to high swapping and CPU thrashing.

There have been previous discussions of handle leaks here - in older versions. Some were attributed to certain versions of JVM.
Reply With Quote
  #18  
Old 06-14-2007, 05:16 AM
Fluffdaddy Fluffdaddy is offline
Sage Icon
 
Join Date: Nov 2003
Location: Philly, Pa
Posts: 1,004
Quote:
Originally Posted by joe123 View Post
Ok, I found the problem.
If by tomorrow the system is still normal, I will explain what I did and what is causing the high CPU usage.

Joe
Great to hear.
I will be checking in to read your solution for the high CPU usage problem in 6.1.19. I was dealing with this for weeks and ended up downgrading back to SageTV 6.0.19.
Reply With Quote
  #19  
Old 06-14-2007, 06:23 AM
doc's Avatar
doc doc is offline
Sage Fanatic
 
Join Date: Jun 2006
Location: Leicester, England
Posts: 918
I may be joining this a litttle late, but have you upgraded to Java 6 yet?
Reply With Quote
  #20  
Old 06-14-2007, 07:28 AM
Fluffdaddy Fluffdaddy is offline
Sage Icon
 
Join Date: Nov 2003
Location: Philly, Pa
Posts: 1,004
Personally I tried both Java Versions 5.0 and Version 6, the CPU pegging was the same. Sage starts out after a fresh install with 0-20% CPU usage and then, later after a few hours it's pegging at 100% sometimes with nothing being recorded or watched.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SageTVService High CPU Usage tfurlong SageTV Software 0 05-01-2007 06:43 PM
High CPU Usage! Screechyd SageTV Software 6 02-05-2007 09:17 AM
High cpu usage with Purevideo matrix35 General Discussion 5 01-06-2007 11:03 PM
High CPU usage when recording sunray SageTV Software 1 08-22-2006 08:13 AM
Stuttering and high CPU usage... jbuszkie SageTV Software 7 01-03-2006 11:16 AM


All times are GMT -6. The time now is 03:34 PM.


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