Folding@home

出自 Arch Linux 中文维基

Help Stanford University scientists studying Alzheimer's, Huntington's, Parkinson's, and many cancers by simply running a piece of software on your computer. The problems we are trying to solve require so many calculations, we ask people to donate their unused computer power to crunch some of the numbers. In just 5 minutes... Add your computer to over 333,684 others around the world to form the world's largest distributed supercomputer.

安裝[編輯 | 編輯原始碼]

安裝 foldingathomeAUR 包。為了使用您的 GPU 進行計算(強烈推薦),您需要 ocl-icd 和適合您的 GPU 的 OpenCL 包。 Nvidia 用户也可以使用 CUDA

配置[編輯 | 編輯原始碼]

運行 FAHClient --configure,以 root 身份生成 /etc/foldingathome/config.xml 配置文件。(Arch Linux 團隊編號是 45032) 此外,您可以手動編輯 /etc/foldingathome/config.xml。有了配置文件後,您就可以啟動守護進程,檢查它的狀態,並使守護進程在啟動時自動啟動。

$ cd /etc/foldingathome
# FAHClient --configure

然後啟用 foldingathome.service systemd 單元。Nvidia 用户也應該啟用 foldingathome-nvidia.service systemd 單元。

圖形化運行[編輯 | 編輯原始碼]

您可以通過打開網頁瀏覽器並訪問 http://localhost:7396/ 來管理守護進程。另外,您也可以安裝 fahcontrolAUR 並使用 FAHControl 程序。

守護進程也可以被遠程控制。這樣做的説明在 /etc/foldingathome/config.xml 中列出。如果有必要,請記得打開防火牆端口。

終端中運行[編輯 | 編輯原始碼]

foldingathome 的行為可以通過編輯 /opt/fah/config.xml 來定製。可以指定的一些選項如下:

  • 密碼,用於識別你的身份。雖然不需要,但它提供了一定程度的安全性。詳情請參見 [1]
<passkey v='passkey'/>
  • CPU 或 GPU 的並行
<slot id='0' type='CPU'/>

在限制權限的情況下運行 f@h[編輯 | 編輯原始碼]

更新版的 foldingathomeAUR 包(>7.6.9)已經以有限用户的身份運行。它還安裝了一個您可以使用的 systemd 用户腳本,沒有 root 權限的用户都可以啟用它(您仍然需要 video 組權限才能使用 GPU)。

監測工作單位的計算情況[編輯 | 編輯原始碼]

有幾種方法可以在命令行和 GUI 中監控 FAH 客户端的進度。

Folding@home 會將其日誌文件寫入數據目錄。通過檢查最後幾行,你可以檢查它的進度,例如 tail -10 /var/log/foldingathome/log.txt

folding at home 發行的 FAHCONTROLAUR 軟件為您提供了高效的控制本地主機和遠程主機的方法。只需用相應的「添加」按鈕添加另一個客户端,然後輸入名稱、IP位址、端口和密碼(如果你設置了的話),點擊保存即可。這時軟件應該會嘗試建立與遠程主機的連接,並在單獨的客户端選項卡中顯示進度。

要檢查 NVidia GPU 的使用率,你可以使用 nvtop-gitAUR。它還可以報吿核心温度和電源使用情況。

問題解決[編輯 | 編輯原始碼]

如果您的 GPU 被支持但仍未使用,請編輯 /etc/foldingathome/config.xml 文件,嘗試自動配置 GPU:

<gpu v='true'/>

參見[編輯 | 編輯原始碼]