how to limit the slots in docker?

FAH provides a V7 client installer for Debian / Mint / Ubuntu / RedHat / CentOS / Fedora. Installation on other distros may or may not be easy but if you can offer help to others, they would appreciate it.

Moderators: Site Moderators, FAHC Science Team

Post Reply
Etherion
Posts: 15
Joined: Wed Mar 25, 2020 11:17 pm

how to limit the slots in docker?

Post by Etherion »

I am running FAHClient in a docker image Nvidia/OpenCL but I have a few problems.

1. How do I prevent it from using the CPU? have tried FAHClient --cpus=-1 but that does not stop it. nore does --cpus=0

2. The docker passes 1 of 6 GPUs through but FAHClient still opens 6 slots with only one compute units assigned.
I have tried --gpu=false --opencl-index=1 --gpu-index=1 --cuda-index=1 --gpu=false
pr0ti3n
Posts: 16
Joined: Wed Apr 01, 2020 2:31 am
Location: @homefolding

Re: how to limit the slots in docker?

Post by pr0ti3n »

Try:

Code: Select all

cpu-usage 0
Image
toTOW
Site Moderator
Posts: 6296
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France
Contact:

Re: how to limit the slots in docker?

Post by toTOW »

1. You need to remove the entire CPU slot section.

2. I don't understand ... you many GPUs do you have ? How many GPU slot are created ?
Image

Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.
Post Reply