ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > ProcessTamer

Problem with emule being repeatedly tamed

(1/2) > >>

Zeph:
I've come across a problem when running PT with emule. When emule starts and uses 100% cpu PT tames it as it should, but then when emule goes back to lower cpu usages, PT keeps trying to increase the priority on it, constantly.

I think emule might be trying to set its own priority and is fighting with PT, but when you set the priority via taskmanager the priority stays at what you set it too, so it seems task manager can set priority but PT simply fights with emule.

Here's the logs it continues until you quit emule.

--- ---Fri Dec 09 12:21:50 2005  -> Lowering Process Priority  | emule.exe
Fri Dec 09 12:21:55 2005  -> Lowering Process Priority  | emule.exe
Fri Dec 09 12:22:10 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:22:15 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:22:20 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:22:25 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:22:30 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:22:35 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:22:40 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:22:45 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:22:50 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:22:55 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:23:00 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:23:05 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:23:10 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:23:15 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:23:20 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:23:25 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:23:30 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:23:35 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:23:42 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:23:47 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 12:23:52 2005  -> Increasing Process Priority | emule.exe
I'm going to go back to process lasso I think and see if the same happens, I'm pretty sure it doesn't though. But I'll let you know.

I hope this can be fixed for v3 because atm it means I have to put emule on ignore if I want to use PT, which kinda defeats the object of using PT in the first place.

Thanks.

Zeph:
A update.

I'm pretty sure this problem with emule is related to PT having a lack of system privliges i.e not running as a service, I'll confirm about emule in a little while after some more tests but the issue with PT not being able to control all process is definitly because of lack of privliges.

To test this I used FireDaemon to install ProcessTamerTray.exe as a system service and then tried to tame winlogin.exe, BINGO, we have control! PT can now control winlogin's priority, and from first tests looks like it can control all processes now. I'm just going to grab some lunch then I'll test emule, see if we have full control over that too. ;)

I'll let you know how I get on...

mouser:
im looking forward to the reply about running pt as a service.

regardless, you have found a bug.  Process Tamer has code that should tell it when it fails to be able to raise the priority back (for example if an app insists on setting its own priority) and thereafter stop trying to "re-raise it".  I'll put this on the todo list.

Zeph:
PT running as a service via firedaemon works great, it controls the processes it couldnt before e.g. winlogin.exe without problem. It doesn't change the 'fighting with emule' thing though, but I have found a way to fix it and it might explain why PT is doing this.

Even if you run run PT as a service, it still keeps setting the priority of emule.exe, like so...

--- ---Fri Dec 09 15:06:10 2005  -> Lowering Process Priority  | emule.exe
Fri Dec 09 15:06:27 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:06:32 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:06:37 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:06:42 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:06:47 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:06:52 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:06:57 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:07:02 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:07:07 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:07:12 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:07:17 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:07:22 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:07:27 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:07:32 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:07:37 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:07:42 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:07:47 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:07:52 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:07:57 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:08:02 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:08:07 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:08:12 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:08:17 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:08:22 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:08:27 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:08:32 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:08:37 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:08:42 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:08:47 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:08:52 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:08:57 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:09:02 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:09:07 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:09:12 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:09:17 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:09:22 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:09:27 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:09:32 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:09:37 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:09:42 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:09:47 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:09:52 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:09:57 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:10:02 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:10:07 2005  -> Increasing Process Priority | emule.exe
Fri Dec 09 15:10:12 2005  -> Increasing Process Priority | emule.exe

It seems like when PT is querying emule's priority it's expecting emule to reply in a certain way but because its not it trys to set the priority, then querys again, repeat. I found that in emule's settings there is a option to control it's process priority, which by default is set to 'above normal', so I tried setting it to normal and restarted emule. It seems that fixes the problem and PT stops trying to constantly increase emules process priority.

The simple facts I found are:

1 - If PT starts trying to constantly increase emule's priority, change emules in built process control from above normal to normal and restart emule. The problem will go.

2 - If PT is started as a service it gains the ability to control processes it couldn't previously.

There you go, mouser, a little something for you to think about while coding away on v3. :)

mouser:
that's a great report.
i will fix the bug that is causing repeat attempts to restore priority.

and it sounds like i should either and a built-in option for pt3 to run as service, or make it the only way pt3 runs.
any opinion on this? is their a downside to having pt3 run as a service?

Navigation

[0] Message Index

[#] Next page

Go to full version