SWAN_SYNC in Linux client

Message boards : Wish list : SWAN_SYNC in Linux client
Message board moderation

To post messages, you must log in.

Previous · 1 · 2

AuthorMessage
Profile Retvari Zoltan
Avatar

Send message
Joined: 20 Jan 09
Posts: 2380
Credit: 16,897,957,044
RAC: 0
Level
Trp
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 50807 - Posted: 1 Nov 2018, 11:04:27 UTC
Last modified: 1 Nov 2018, 11:07:04 UTC

To answer my on question:
Under Ubuntu 16.04 and 18.04, with the BOINC manager installed from the repository, the manager runs as a daemon, and it has it's own environment, so the SWAN_SYNC=1 setting should placed in it's own configuration file at
/lib/systemd/system/boinc-client.service
This file should be edited as 'root'.
In the [service] section of that file there should be a line containing:
Environment="SWAN_SYNC=1"
It should be exactly like the above (the SWAN_SYNC should be capitalised, and the quotation marks should be there.)
The host should be rebooted to make this change take effect.

Thanks to Rod4x4 for this solution!
ID: 50807 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
PappaLitto

Send message
Joined: 21 Mar 16
Posts: 513
Credit: 4,673,458,277
RAC: 0
Level
Arg
Scientific publications
watwatwatwatwatwatwatwat
Message 50812 - Posted: 1 Nov 2018, 12:35:44 UTC - in response to Message 50807.  

Hey Zoltan, what do you mean by edited as root? Does this mean you change User=boinc to User=root?
ID: 50812 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Jim1348

Send message
Joined: 28 Jul 12
Posts: 819
Credit: 1,591,285,971
RAC: 0
Level
His
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 50813 - Posted: 1 Nov 2018, 14:08:07 UTC - in response to Message 50812.  

Hey Zoltan, what do you mean by edited as root? Does this mean you change User=boinc to User=root?

Try running the text editor as root; for example:
sudo gedit /lib/systemd/system/boinc-client.service
ID: 50813 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Keith Myers
Avatar

Send message
Joined: 13 Dec 17
Posts: 1419
Credit: 9,119,446,190
RAC: 891
Level
Tyr
Scientific publications
watwatwatwatwat
Message 50814 - Posted: 1 Nov 2018, 16:44:36 UTC

Good to hear that Zoltan and Rod4X4 worked it out how to get SWAN_SYNC=1 working on repository versions of BOINC. My posts in the Linux thread seems to have provided the necessary dialog and testing for the solution to be exposed.

So now both the Seti Tbar and repository versions of BOINC can benefit from the improvement in using SWAN_SYNC. Project benefits from increased throughput.
ID: 50814 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Retvari Zoltan
Avatar

Send message
Joined: 20 Jan 09
Posts: 2380
Credit: 16,897,957,044
RAC: 0
Level
Trp
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 50815 - Posted: 1 Nov 2018, 17:39:22 UTC - in response to Message 50813.  

Hey Zoltan, what do you mean by edited as root? Does this mean you change User=boinc to User=root?
Try running the text editor as root; for example:
sudo gedit /lib/systemd/system/boinc-client.service
That's what I meant.
ID: 50815 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
rod4x4

Send message
Joined: 4 Aug 14
Posts: 266
Credit: 2,219,935,054
RAC: 0
Level
Phe
Scientific publications
watwatwatwatwatwatwatwatwatwat
Message 50816 - Posted: 2 Nov 2018, 5:37:20 UTC - in response to Message 50807.  


/lib/systemd/system/boinc-client.service
This file should be edited as 'root'.
In the [service] section of that file there should be a line containing: Environment="SWAN_SYNC=1"


NOTE:
1. Ensure the Environment= line is before the ExecStart= line.
The Environment= line is best placed as the first line after the [Service] heading.
2. Performing an update on the boinc-client package may need this line re-added after the update. (have not tested this)
ID: 50816 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile ServicEnginIC
Avatar

Send message
Joined: 24 Sep 10
Posts: 592
Credit: 11,972,186,510
RAC: 1,447
Level
Trp
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 50824 - Posted: 4 Nov 2018, 16:33:39 UTC

First of all, thank you very much to all kind contributors to bringing this to work, in this and other threads.

Now, a step-by-step practical way to apply this in a few minutes (for Linux rookies like me and above)
I've just applied successfully this method in three different computers with already running GPU tasks without the need for them to end, and all tasks have restarted normally after applying the new configuration.
All three computers are running under Linux 16.04.5 LTS and repository BOINC versions (7.6.31 x64).

-1) If there are tasks running: Enter BOINC Manager - Activity - Suspend. Exit Boinc Manager. This will checkpoint and stop all running tasks
-2) Open a Terminal window, and execute the following commands:
-3) sudo killall boinc
-4) sudo gedit /lib/systemd/system/boinc-client.service
-5) Add the following line immediately below [Service] tag: Environment="SWAN_SYNC=1"
-6) Save the change and close gedit instance. Return to Terminal window
-7) sudo systemctl daemon-reload
-8) sudo /etc/init.d/boinc-client restart
-9) Close Terminal window
-10) Enter BOINC Manager - Activity - Run

That's all. Previous running tasks will restart from its stored checkpoint, but a full CPU thread will be assigned to every GPU.

One last advise:
Please, be caraful. This configuration will bring the whole system to its maximum performance.
More power = more heat. It Might be a good idea to check system fans and heatsinks to be free of dust...
And I use Psensor program from Linux repository. I recommend it to check temperatures, fan levels, and several other interesting indicatives.
ID: 50824 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Logan Carr

Send message
Joined: 12 Aug 15
Posts: 240
Credit: 64,069,811
RAC: 0
Level
Thr
Scientific publications
watwatwatwat
Message 50869 - Posted: 15 Nov 2018, 2:05:20 UTC - in response to Message 50824.  

Thank you all!

my gtx 1080 GPU is now on 99% usage with linux!
Cruncher/Learner in progress.
ID: 50869 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Previous · 1 · 2

Message boards : Wish list : SWAN_SYNC in Linux client

©2025 Universitat Pompeu Fabra