Optimizing cloud client settings

Moderators: Site Moderators, PandeGroup

Optimizing cloud client settings

Postby zakman14 » Tue Jan 08, 2019 2:20 pm

I just recently started folding, and in addition to running the client on my home computer, I'm also playing around with a client on a cloud-based server in order to get a few extra points. I've managed to get it up and running, but want to make sure I have it configured correctly. Server is a DigitalOcean "CPU-Optimized" droplet (server), Ubuntu 18.04, with two dedicated vCPUs (both Xeons). htop shows both CPUs running at full tilt, 100%.

Here's my config.xml (with identifiable data X'd out):

Code: Select all
  <!-- Client Control -->
  <fold-anon v='true'/>

  <!-- Folding Core -->
  <checkpoint v='10'/>

  <!-- Folding Slot Configuration -->
  <gpu v='false'/>

  <!-- HTTP Server -->
  <allow v='XXX.XXX.XXX.XXX'/>

  <!-- Slot Control -->
  <power v='FULL'/>

  <!-- User Information -->
  <passkey v='xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'/>
  <team v='xxxxxx'/>
  <user v='xxxxxx'/>

  <!-- Web Server -->
  <web-allow v='XXX.XXX.XXX.XXX'/>

  <!-- Folding Slots -->
  <slot id='0' type='CPU'/>
  <slot id='1' type='CPU'/>

Are there any changes I should make to have the client run a bit more efficiently?
Posts: 1
Joined: Tue Jan 08, 2019 1:51 pm

Re: Optimizing cloud client settings

Postby rwh202 » Wed Jan 09, 2019 7:22 am

I'd have thought a single CPU slot, running 2 threads would be better:
Code: Select all
<slot id='0' type='CPU'>
<cpus v='2'/>
Posts: 352
Joined: Mon Nov 15, 2010 8:51 pm
Location: South Coast, UK

Re: Optimizing cloud client settings

Postby bruce » Thu Jan 10, 2019 7:14 pm

The most important sources of inefficiencies are things that are out of your control. You have no idea how much CPU time will be allocated to your vCPUs or how their priority fits it with other customers of that service.

When you set a slot for cpus=2 the FAHCore will create two tasks BUT on a real CPU, you can assume both of them will run at approximately the same speed. That might be true on a pair of vCPUs or it might not. the overall speed of a single slot will roughly correspond to half the speed of the SLOWEST of the two. Thus the cpus=2 setting might hav undesirable effects

Please post the **** System **** segment at the top of FAH's log.
Posts: 21871
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Optimizing cloud client settings

Postby foldy » Fri Jan 11, 2019 6:15 pm

He said "two dedicated vCPUs" where dedicated means the cores are not shared with other users, so you can run them at 100%. (The whole CPU with xx cores is shared by users but every user gets its dedicated cores.)
Posts: 1246
Joined: Sat Dec 01, 2012 3:43 pm

Re: Optimizing cloud client settings

Postby bruce » Sun Jan 13, 2019 9:38 pm

OK, so what's the difference between a dedicated vCPU and a dedicated CPU?

Certainly one vCPU < one CPU.
Posts: 21871
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Optimizing cloud client settings

Postby ProDigit » Mon Jan 14, 2019 4:27 am

The more cores, the better.
Though one Xeon CPU runs roughly as efficient as a GT 1030 to a GT 1050 graphics card.
These cards can be gotten really cheap nowadays, and surely save you money in the long run on your electric bill alone.
Each card uses 1 CPU thread, so your remaining CPU threads will be still available for other projects (shared).

Your server probably doesn't really need the graphics card for most of the time, so if you could install one, and just run folding from the GPU, you'd get a lot more work done on a lower cost,while still keeping about 90-95% of performance on your server.
If you really want to get work done, an RTX card will do that, provided you have a 550+W power supply in it.
But I myself have my Xeon server running a 500W power supply, with soon only 1 true graphics card (RTX 2070), currently running a 1060+1050+1030; while total power consumption remains under 300W.

So my solution would be to install a second hand GT 1030 (goes for as low as $40), adds about 30W to your system, or a used 1050 ($70, ~70W)
Posts: 194
Joined: Sun Dec 09, 2018 10:23 pm

Re: Optimizing cloud client settings

Postby foldy » Mon Jan 14, 2019 7:56 pm

@bruce: On cloud servers 1 dedicated vCPU means one CPU core of a multi core CPU. The other cores are used by other users. The operating system locks all your processes to e.g CPU core #5 of a 32-core CPU while other users' processes are locked to other cores. This garantees that only you can run processes on core #5. It is the same with a part of system RAM.

A dedicated CPU without (v) means it is not virtual which means it is not part of the cloud. You get a complete PC hosted with full CPU, RAM, disk whatever is in this PC.

A dedicated vCPU should be almost equal fast than dedicated CPU.

A non-dedicated vCPU is a shared vCPU core which means you and other users have processes running on 1 vCPU core concurrently. So these processes can disturb each other and the more users are on that shared vCPU core the worse the performance gets. But these shared vCPUs are cheap mostly used by users which do not need 100% CPU core but only spikes like 100% for 1 sec and then 10% for 10 sec and so on. So 10 users can share the non-dedicated vCPU core without much performance loss.
Posts: 1246
Joined: Sat Dec 01, 2012 3:43 pm

Re: Optimizing cloud client settings

Postby Joe_H » Mon Jan 14, 2019 8:42 pm

@foldy - If you pay for 2 or more dedicated vCPU's is there any guarantee that they will be on the same physical CPU? I can see there being NUMA issues if they are not, and that would slow down folding using multiple cores.

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Site Admin
Posts: 4277
Joined: Tue Apr 21, 2009 4:41 pm
Location: W. MA

Return to V7.5.1 Public Release Windows/Linux/MacOS X

Who is online

Users browsing this forum: No registered users and 1 guest