Suspending/resuming GPU core processes

This forum contains information about 3rd party applications which may be of use to those who run the FAH client and one place where you might be able to get help when using one of those apps.

Moderator: Site Moderators

Suspending/resuming GPU core processes

Postby Napoleon » Sat Aug 02, 2014 10:09 pm

I was wondering if it would be safe (no risk of data corruption, deadlocks or hangs) if I simply suspended/resumed GPU FahCore process(es) if I needed to pause GPU folding momentarily?

Sometimes it seems a bit excessive to go through a full-blown GPU slot pause/unpause cycle and start over from previous checkpoint just because I happen to need full GPU power very briefly for something else. A suspended FahCore process won't receive any CPU cycles, so obviously it won't be able to feed the GPU, effectively releasing it for other use. I could simply resume the process later to go on with folding. Or at least I hope so...

I quickly tested the theory using PsSuspend and this method seems to work, but my quick test hardly qualifies as conclusive evidence.
User avatar
Napoleon
 
Posts: 1032
Joined: Wed May 26, 2010 2:31 pm
Location: Finland

Re: Suspending/resuming GPU core processes

Postby bruce » Sun Aug 03, 2014 8:27 pm

Presumably the GPU will continue processing whatever is in VRAM and prepare the results to be returned to main RAM, but if the CPU process is suspended, the result can't be sent back until you un-suspend. Does that sound right?
bruce
 
Posts: 20834
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Suspending/resuming GPU core processes

Postby Napoleon » Sun Aug 03, 2014 9:17 pm

I'm assuming the driver will send whatever is left in the folding queue to the GPU and store the returned results somehow, and FahCore will process them further once it gets resumed. Simple enough in theory, but I can imagine a number of things going wrong with said assumption. Deadlocks, race conditions, whatnot. Hence my question.
User avatar
Napoleon
 
Posts: 1032
Joined: Wed May 26, 2010 2:31 pm
Location: Finland

Re: Suspending/resuming GPU core processes

Postby foldy » Sun Nov 02, 2014 5:31 pm

I posted your idea in this thread which discuss the CPU delay when fully pause/resume a gpu core.
viewtopic.php?f=81&t=25466
foldy
 
Posts: 967
Joined: Sat Dec 01, 2012 3:43 pm

Re: Suspending/resuming GPU core processes

Postby 7im » Mon Nov 03, 2014 5:12 pm

Napoleon wrote:snip...

I quickly tested the theory using PsSuspend and this method seems to work, but my quick test hardly qualifies as conclusive evidence.


That's a good idea. But even if found to be safe, how does FAH roll out a Windows tool to OSX and Linux as well? One of the client's design goals is to be cross platform compatible.

If there were an open source version of the tool in Linux, then it could possibly be replicated for all OS types. Need to dig a little more before it can be passed to the developers.
How to provide enough information to get helpful support
Tell me and I forget. Teach me and I remember. Involve me and I learn.
User avatar
7im
 
Posts: 14648
Joined: Thu Nov 29, 2007 4:30 pm
Location: Arizona

Re: Suspending/resuming GPU core processes

Postby foldy » Mon Nov 03, 2014 5:40 pm

In Linux and OSX the command is already included to suspend and continue a process
kill -STOP
kill -CONT

I cannot test if this works with the fah gpu core because i have no linux or osx.
Who can?
foldy
 
Posts: 967
Joined: Sat Dec 01, 2012 3:43 pm

Re: Suspending/resuming GPU core processes

Postby 7im » Mon Nov 03, 2014 11:57 pm

Same here, no GPU in Linux, and no OSX, hence the request for more input.
User avatar
7im
 
Posts: 14648
Joined: Thu Nov 29, 2007 4:30 pm
Location: Arizona

Re: Suspending/resuming GPU core processes

Postby billford » Tue Nov 04, 2014 12:17 am

foldy wrote:In Linux and OSX the command is already included to suspend and continue a process
kill -STOP
kill -CONT

I cannot test if this works with the fah gpu core because i have no linux or osx.
Who can?


Pausing a folding gpu core under OS X might present something of a problem :wink:

At least until Apple get their act together.
Image
billford
 
Posts: 1006
Joined: Thu May 02, 2013 8:46 pm
Location: Near Oxford, United Kingdom

Re: Suspending/resuming GPU core processes

Postby 7im » Tue Nov 04, 2014 1:42 am

True. Hard to test pausing of GPU Folding on an OS that doesn't support GPU Folding yet. But maybe OSX is Linux-ish enough to allow the developers to proceed on just Win and Lin.
User avatar
7im
 
Posts: 14648
Joined: Thu Nov 29, 2007 4:30 pm
Location: Arizona


Return to 3rd party contributed software

Who is online

Users browsing this forum: No registered users and 2 guests

cron