NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) ZTools and UltraXMLTV v
« Previous 1 … 7 8 9 10 11 12 Next »
Is ZProcess supposed to be resource hungry?

 
  • 0 Vote(s) - 0 Average
Is ZProcess supposed to be resource hungry?
Azimuth
Offline

Member

Posts: 225
Threads: 47
Joined: Oct 2006
#31
2007-06-16, 11:07 PM
zehd Wrote:They aren't system processes. You should have no problem. Whatever...

with the previous patch, FFmpeg should be up to 97-100 %... and ZProcess 0%

But I really still want ZProcess to count away and monitor progress, so the last patch was just a workaround.

In this patch, I have tried something with affinity. Once you have a transcode running, that includes a ffmpeg and hunter window, click 'Test' on the transcode tab.

I'm hoping you get three successes, and then all three processes should be on the second CPU. Could you try it?

I will try it.
These processes are running under the "system" account which gives me an access denied message when I try to alter the affinity.

when I said 50% I meant 50% of the total. it uses one processor to 100%. ffmpeg only runs as one thread thus only uses one processor. I like this behavior because it means that other things like comskip can run on the alternat processor that is still un-used for the most part.
[SIZE="1"]SuperMicro PDSME+ Core2Duo 2.40GHz 6.0GB Ram | HD Homerun | (4) NMT | GB-PVR v1.5.21 | Windows 7 Enterprise x64[/SIZE]
Azimuth
Offline

Member

Posts: 225
Threads: 47
Joined: Oct 2006
#32
2007-06-16, 11:21 PM
OK, I hit Test and got an error message "Could Not obtain a handle For the process ID:620"
this corresponds with the PID of hunter.exe

The next message was "Could Not obtain a handle For the Process ID: 3768"
this corresponds with PID of ffmpeg.exe

I then get a message "Affinity Set"
And then the message to check affinity.
[SIZE="1"]SuperMicro PDSME+ Core2Duo 2.40GHz 6.0GB Ram | HD Homerun | (4) NMT | GB-PVR v1.5.21 | Windows 7 Enterprise x64[/SIZE]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#33
2007-06-16, 11:31 PM
Azimuth Wrote:OK, I hit Test and got an error message "Could Not obtain a handle For the process ID:620"
this corresponds with the PID of hunter.exe

The next message was "Could Not obtain a handle For the Process ID: 3768"
this corresponds with PID of ffmpeg.exe

I then get a message "Affinity Set"
And then the message to check affinity.

The last message saying affinity set refers to success moving ZProcess itself onto CPU1. I guess to be sure we're getting somewhere, does ZProcess move from one Processor to another...

Also, Quite frankly I'm surprised you have no access to changing the affinity manually. Unless of course you do not have admin privelages. Are you operating out of a limited user account?
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
Azimuth
Offline

Member

Posts: 225
Threads: 47
Joined: Oct 2006
#34
2007-06-17, 03:27 AM
you can simulate this dilemma by attempting to change the priority on a process started under the system account.
[SIZE="1"]SuperMicro PDSME+ Core2Duo 2.40GHz 6.0GB Ram | HD Homerun | (4) NMT | GB-PVR v1.5.21 | Windows 7 Enterprise x64[/SIZE]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#35
2007-06-17, 03:46 AM
That may be, But I don't know why ZProcess, FFmpeg or Hunter.exe run under system... Maybe that's something to look into. They're usually run in a desktop session...

I wonder why they're getting launched in a system session...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
Azimuth
Offline

Member

Posts: 225
Threads: 47
Joined: Oct 2006
#36
2007-06-17, 03:52 AM
because GBPVR runs under the system process.
[SIZE="1"]SuperMicro PDSME+ Core2Duo 2.40GHz 6.0GB Ram | HD Homerun | (4) NMT | GB-PVR v1.5.21 | Windows 7 Enterprise x64[/SIZE]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#37
2007-06-17, 03:53 AM
I just noticed that...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#38
2007-06-17, 04:19 AM
Well it looks like I won't be trying to play with the affinity.

I wonder if those other programs that I sent links for can help...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#39
2007-06-17, 04:49 AM
You really dont want to be adjusting the affinity.

I think you should look closely at what zprocess and hunter are doing. From what I know of them, it seems like they should be using virtually no CPU. Certainly less than 1%. If you want to talk it through, I'm happy to help you work out why its using so much CPU.
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#40
2007-06-17, 05:38 AM
Thanks sub. I was planning on dropping the affinity...

You're right. After launching FFmpeg, ZProcess loops waiting for the ffmpeg processID to end.

Hunter has never posed a problem. It uses a VB6 timer set to 250ms that checks for ZProcess and ffmpeg hWnd. When one disappears, it closes the other one and exits.

The code in ZProcess that pauses and waits is

Code:
Public Sub WaitAfterShell(ProcessID As Long, SecondsLabel As Label)

    Dim hProcess As Long
    Dim exitCode As Long

    StartTranscodeTime = Timer

    'get the handle of the process    
    hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, False, ProcessID)

    Do

        Call GetExitCodeProcess(hProcess, exitCode)
        SecondsLabel = Format((Timer - StartTranscodeTime) / 24 / 60 / 60, "hh:mm:ss")
        DoEvents
  
    Loop While exitCode = STATUS_PENDING

    Call CloseHandle(hProcess)

    'MsgBox "The shelled process " & cmdline & " has ended."

End Sub

If I don't have a doevents, then the program freezes, and Windows appears unresponsive
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  problems installing zprocess on windows 7 64 bit bertros 3 6,622 2010-04-16, 05:17 PM
Last Post: bertros
  zProcess and Windows Home Server grits 3 6,952 2010-03-07, 06:06 AM
Last Post: zehd
  zProcess ffmpeg "Incorrect frame size" meccano 3 6,086 2010-02-01, 02:46 PM
Last Post: zehd
  zprocess in postprocessing.bat alevideotestservice 2 3,121 2009-12-22, 07:01 PM
Last Post: alevideotestservice
  zprocess... to work or not to work... medic29 26 10,610 2009-11-04, 05:54 PM
Last Post: zehd
  Zprocess & MVP: Can I watch DVD´s yet? Knobby 5 3,374 2009-11-02, 07:10 PM
Last Post: zehd
  Zprocess postprocessing ? Dufcoum 13 6,634 2009-08-19, 10:15 PM
Last Post: Dufcoum
  ZPROCESS: Audio sloooooow on MVP goobie 5 3,441 2009-08-18, 01:34 PM
Last Post: zehd
  MVP+Zprocess: Avi plays with audio only, no video goobie 3 3,120 2009-07-10, 08:01 PM
Last Post: zehd
  Can you clarify functionality of ZProcess please Elmo Putney 4 3,674 2009-03-23, 09:37 PM
Last Post: Elmo Putney

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

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

Linear Mode
Threaded Mode