|
Gumby
Fishnologist


Registered: 06/13/01
Posts: 26,656
|
Start/stop XP services via shortcut?
#8594926 - 07/04/08 01:21 PM (15 years, 10 months ago) |
|
|
I'm running two instances of the console version of Folding@Home because I have a dual core processor. As expected, the two instances use up damn near 100% of processing power.
Now when I have to use some kind of processor intensive app, like Photoshop, I have to stop the services because I need the processing power. It's a pain to do the hassle of "right click my computer>manage>services and applications>scroll down the list>right click one service>stop>right click other service>stop"
I was wondering if it would be possible to start/stop these services via an intelligently crafted shortcut command.
Anyone know if this is possible or have any other quick solutions for starting/stopping services?
|
Ythan
ᕕ( ᐛ )ᕗ



Registered: 08/08/97
Posts: 18,840
Loc: NY/MA/VT Borderlands
Last seen: 10 hours, 43 minutes
|
Re: Start/stop XP services via shortcut? [Re: Gumby]
#8594975 - 07/04/08 01:39 PM (15 years, 10 months ago) |
|
|
Quote:
Gumby said: Now when I have to use some kind of processor intensive app, like Photoshop, I have to stop the services because I need the processing power.
Well, by default Folding@home runs at idle priority and on any modern operating system it will not steal cycles from higher priority apps like Photoshop. I suppose there could be a small effect if F@H pushes Photoshop instructions out of the CPU cache, but this probably isn't something you'd notice unless you're running synthetic benchmarks. If you're actually observing slowdowns (and not just worried about the possibility), I'd venture a guess it's because of F@H's memory utilization. Make sure you have the "allow workunits over 5MB in size" option disabled (bigpackets=no in your client.cfg).
But to answer your question you can use the commands net stop "servicename" and net start "servicename" to control services from the command line. You can easily create a shortcut for these commands if you wish.
|
Gumby
Fishnologist


Registered: 06/13/01
Posts: 26,656
|
Re: Start/stop XP services via shortcut? [Re: Ythan]
#8595434 - 07/04/08 04:10 PM (15 years, 10 months ago) |
|
|
Thanks a lot Ythan.
I definitely notice a big difference when processing large images in Photoshop with F@H on/off. Photoshop renders images much more quickly when F@H services are stopped. Memory typically isn't an issue, I have 2 gigs physical RAM.
I'll try making that shortcut.
|
Diploid
Cuban



Registered: 01/09/03
Posts: 19,274
Loc: Rabbit Hole
|
Re: Start/stop XP services via shortcut? [Re: Gumby]
#8599403 - 07/06/08 01:04 AM (15 years, 10 months ago) |
|
|
I definitely notice a big difference when processing large images in Photoshop with F@H on/off.
This doesn't make any sense. F@H runs at idle priority. It completely stops executing and unloads its context a few nanoseconds after another application requests the CPU. And it stays out of the way as long as anything else needs the CPU.
In other words, it only uses CPU cycles that get thrown away in the operating system's idle loop. It doesn't steal any that would actually get used by anything.
-------------------- Republican Values: 1) You can't get married to your spouse who is the same sex as you. 2) You can't have an abortion no matter how much you don't want a child. 3) You can't have a certain plant in your possession or you'll get locked up with a rapist and a murderer. 4) We need a smaller, less-intrusive government.
|
Gumby
Fishnologist


Registered: 06/13/01
Posts: 26,656
|
Re: Start/stop XP services via shortcut? [Re: Diploid]
#8606479 - 07/07/08 11:03 PM (15 years, 10 months ago) |
|
|
Ehh...
If I try to apply some sort of filter or resize some massive image while F@H is running it definitely goes a LOT slower than if it was not running.
|
zouden
Neuroscientist



Registered: 11/12/07
Posts: 7,091
Loc: Australia
Last seen: 14 years, 7 months
|
Re: Start/stop XP services via shortcut? [Re: Gumby]
#8606902 - 07/08/08 02:23 AM (15 years, 10 months ago) |
|
|
It's easy enough for the OS to handle CPU timesharing, as Diploid says. But shifting memory allocation takes much longer. I think the RAM is probably the bottleneck here.
-------------------- I know... that just the smallest part of the world belongs to me You know... I'm not a blind man but truth is the hardest thing to see
|
Seuss
Error: divide byzero



Registered: 04/27/01
Posts: 23,480
Loc: Caribbean
Last seen: 3 months, 8 days
|
Re: Start/stop XP services via shortcut? [Re: zouden]
#8607038 - 07/08/08 04:22 AM (15 years, 10 months ago) |
|
|
> This doesn't make any sense
Yet I notice the same thing as others... I suspect windows "only run when idle" scheduling is a bit misleading. Knowing windows, it probably just slows the entire system down creating idle time for the idle only processes to run within.
-------------------- Just another spore in the wind.
|
|