Start Folding on GPU without Website
Moderators: Site Moderators, FAHC Science Team
-
- Posts: 5
- Joined: Sun Mar 30, 2025 8:41 pm
Start Folding on GPU without Website
Hello together,
Iam new to this and I want to run a Docker Container with the FAH Client. The issue I currently have is that when I start the containers on my Setups the Folding doesnt start automatically on the GPU. I have to go to the Website and manually select the GPU and disable the CPU cores and also click the start buttom. I dont want to do that extra step. Is there a way to avoid that?
I saw these options for the config.xml file but these doesnt seem to work on the latest version:
<power v='full'/> → Ensures full usage.
<gpu v='true'/> → Enables GPU folding.
<fold-anon v='true'/> → Automatically starts without user intervention.
I appreciate any help.
Kind regards
Iam new to this and I want to run a Docker Container with the FAH Client. The issue I currently have is that when I start the containers on my Setups the Folding doesnt start automatically on the GPU. I have to go to the Website and manually select the GPU and disable the CPU cores and also click the start buttom. I dont want to do that extra step. Is there a way to avoid that?
I saw these options for the config.xml file but these doesnt seem to work on the latest version:
<power v='full'/> → Ensures full usage.
<gpu v='true'/> → Enables GPU folding.
<fold-anon v='true'/> → Automatically starts without user intervention.
I appreciate any help.
Kind regards
-
- Site Moderator
- Posts: 1404
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: Start Folding on GPU without Website
You need to have a persistent work directory for the client.
Once configured, it is possible for it to auto fold.
Once configured, it is possible for it to auto fold.
-
- Posts: 5
- Joined: Sun Mar 30, 2025 8:41 pm
Re: Start Folding on GPU without Website
Iam using a persistent work directory and have mounted it into the container. ( -v /path/to/foldingathome/data:/config \) Do I need to also define it in the config.xml?
Iam using the same Docker Image you sent. It still doesnt seem to auto fold and I also have to manually enable the GPU on the website.
-
- Site Moderator
- Posts: 1404
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: Start Folding on GPU without Website
Everything you need for the linuxserverio image is in the examples in their readme.
For some command line control, you might like lufah.
https://github.com/kbernhagen/lufah
With lufah, you can create a group with zero cpus and all GPUs enabled and start folding.
Assuming your GPUs are supported by the container.
Note it is up to you to not oversubscribe cpu threads.
For some command line control, you might like lufah.
https://github.com/kbernhagen/lufah
With lufah, you can create a group with zero cpus and all GPUs enabled and start folding.
Assuming your GPUs are supported by the container.
Note it is up to you to not oversubscribe cpu threads.
-
- Posts: 5
- Joined: Sun Mar 30, 2025 8:41 pm
Re: Start Folding on GPU without Website
Ive discoverd the client.db where the data gets stored about activating the gpus in the Web Userinterface. It looks like this.
{
"on_idle": false,
"on_battery": true,
"keep_awake": true,
"paused": true,
"finish": false,
"beta": false,
"cuda": true,
"key": 0,
"cpus": 0,
"gpus": {
"gpu:01:00:00": {"enabled": false},
"gpu:05:00:00": {"enabled": true},
"gpu:19:00:00": {"enabled": false}
}
}
The last part is interesting for me as there is where the gpu are being enabled. So my question is: Is it possible to enable all gpus without knowing the pcie Ids. Iam asking because I want to deploy alot of docker containers remotely on several setups and I cant figure those out easy and also dont want to use the WebInterface to enable those for each setup i will be deploying.
I want to have them enabled by default.
Hope this makes it clear.
{
"on_idle": false,
"on_battery": true,
"keep_awake": true,
"paused": true,
"finish": false,
"beta": false,
"cuda": true,
"key": 0,
"cpus": 0,
"gpus": {
"gpu:01:00:00": {"enabled": false},
"gpu:05:00:00": {"enabled": true},
"gpu:19:00:00": {"enabled": false}
}
}
The last part is interesting for me as there is where the gpu are being enabled. So my question is: Is it possible to enable all gpus without knowing the pcie Ids. Iam asking because I want to deploy alot of docker containers remotely on several setups and I cant figure those out easy and also dont want to use the WebInterface to enable those for each setup i will be deploying.
I want to have them enabled by default.
Hope this makes it clear.
-
- Posts: 1426
- Joined: Sun Dec 16, 2007 6:22 pm
- Hardware configuration: 9950x, 7950x3D, 5950x, 5800x3D
7900xtx, RX9070, Radeon 7, 5700xt, 6900xt, RX 550 640SP - Location: London
- Contact:
Re: Start Folding on GPU without Website
GPUs are enabled, when compatible platform is found on the system by fahclient.
I would assume within a docker you have to have CUDA, OpenCL platforms set up for fahclient to see them and mark GPUs as enabled
I would assume within a docker you have to have CUDA, OpenCL platforms set up for fahclient to see them and mark GPUs as enabled
-
- Site Moderator
- Posts: 1404
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: Start Folding on GPU without Website
If the containers are identical, you can probably safely configure a client, quit it, and share the client.db.
I recommend you do not edit client.db directly.
I recommend you do not edit client.db directly.
-
- Site Moderator
- Posts: 1404
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: Start Folding on GPU without Website
Do not share a client.db with any work units.
-
- Site Moderator
- Posts: 1404
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: Start Folding on GPU without Website
Lufah can do what you want.
-
- Posts: 5
- Joined: Sun Mar 30, 2025 8:41 pm
-
- Site Moderator
- Posts: 1404
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: Start Folding on GPU without Website
No, lufah makes a direct websocket connection. But don’t you have localhost access in the container when setting it up?
-
- Site Moderator
- Posts: 1404
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: Start Folding on GPU without Website
I'm afraid I don't understand what you're trying to do.
Why don't you want to use web control?
I'm a novice with docker.
Maybe someone else can help you.
Why don't you want to use web control?
I'm a novice with docker.
Maybe someone else can help you.
Re: Start Folding on GPU without Website
You can use lufah over SSH forwarding or over an encrypted VPN. Or anything else that lets you tunnel an unencrypted connection through an encrypted and authenticated one.ersguteralbaner wrote: ↑Tue Apr 01, 2025 8:35 amEven though the setups will not be on a local network?
-
- Posts: 5
- Joined: Sun Mar 30, 2025 8:41 pm
Re: Start Folding on GPU without Website
No I do not. I want to deploy Docker images on Setups that are not owned by me. There are Hosts on a decentralized network called Nosana, where they basically rent out their idle GPU power, where I want to deploy the FAH Docker container.
I think I cant even use the WebControl for that if its not in the local network, can I?