FoldingAtHome

来自Ubuntu中文
跳到导航跳到搜索

原文出处:

原文作者:

授权许可:创作共用协议Attribution-ShareAlike 2.0 GNU自由文档许可证

翻译人员:Freeman

校对人员:

文章状态:翻译完成


Overview

概述

When proteins are created, they undergo a complex process known as folding, so-called because the protein molecule transforms from a long chain of amino acids to a complex shape (it "folds up"). The final shape of the protein is absolutely critical to determining its properties and function. Scientists have created software to simulate the folding process to better understand how proteins work, which in turn makes it possible to develope new drugs, cure diseases, etc.

当蛋白质产生时,他们经历了一个称为折叠的复杂过程,正所谓:因为蛋白质分子从氨基酸长链变换到一个复杂形状(它称做“折叠”)。最后形成的蛋白质确定了其关键的性质与功能。科学家编写软件模拟蛋白质折叠的过程,以了解它们如何工作,从而开发新药,治疗疾病等。

Folding@Home is a project from Stanford University that uses millions of networked PCs to form a supercomputer for protein folding simulations. The client software is loaded on a PC, it contacts the central servers, and receives "work units". The client then runs on spare CPU time, and uploads finished work units to the server.

Folding@Home是由斯坦福大学利用微机联网,形成超级电脑(分布式计算)来模拟蛋白质折叠. 其客户软件安装在PC机,它与中心服务器连接,收到“计算单元”. 客户端使用空闲CPU资源运算,然后把完成的“计算单元”上传到服务器。

Folding@Home is a great way to make your computer do useful work even when you're not using it. Since it runs at a very low priority, you should never realize it's running when you're using the computer to do your work. Note that "using the computer" refers to doing heavy computations. Generally, tasks like web browsing and word processing involve very little CPU usage, so the Folding@Home client will be running at near 100% even when doing those kinds of tasks. It helps to leave you computer on at all times, but is not necessary, as the project will benefit from virtually any time that the client runs on your computer.

当你不使用计算机时,Folding@Home是一个伟大的方式让你的电脑做有益的工作,客户端运行在低优先级,当你使用计算机工作时,你根本感觉不到它在运行。注意“使用计算机”指做繁重运算。一般而言,凡是浏览网页和文字处理CPU使用率都非常少,所以,即使这些任务运行时,Folding@Home运行时计算机也几乎是100%的使用率。它有助于在任何时候离开你的电脑,但没有必要,因为程序可以任何时间在你的电脑上运行。

Installation

安装

The following script will download the latest client from the Folding@Home website, and install it to opt/foldingathome, either in / or $HOME. It will ask you to set up the client (the defaults are usually sufficient), and copy that configuration for every CPU in your machine.

以下脚本将从Folding@Home网站上下载到最新的客户端,然后安装到opt/foldingathome,或是/$HOME。它将要求你设置客户端(默认即可),然后为每一个CPU拷贝配置。

  • attachment:fah_install-20060421.tar.gz

It is not possible to provide a .deb package for Folding@Home, because the client must be downloaded from Stanford's website. This is to ensure the integrity of the research. (Maybe it is possible to have a .deb; after all, this is how Macromedia Flash works. The point is that the executable has to be downloaded from Stanford.)

我们无法提供Folding@Home的.deb包 ,因为用户必须到Stanford's(斯坦福)的网页下载.这是为了确保研究的完整性(也许可能得到一个.deb包;毕竟,Macromedia Flash就是这样加载的。关键在于可执行文件是在斯坦福下载的。)

To install, download the tarball and do

安装,下载tar包

tar zxvf fah_install-version.tar.gz

This should extract the archive to a directory called 提取到 fah_install/. Then 然后

cd fah_install
less README

to read the documentation. Finally, 阅读文档。最后,

sudo ./folding_install.sh install

to install the client. 安装客户端。

You can also install to your $HOME, in case you do not have root access to the computer. Clearly, you would not have to prefix the command with sudo in this case. If you install to your $HOME, a cron job will be created to start the client automatically. If you install to the system, the client will automatically start when your computer boots up.

你也可以安装到$HOME,这样你就不需要root账户登陆。显然,在这种情况下你就不用前缀sudo命令。如果你安装到了你的$HOME你需要创建一个cron jop来使客户端自动启动。如果你安装到系统文件夹,客户端将随着计算机的启动而启动。

You can reconfigure the client using the supplied reconfigure script, which is placed in opt/foldingathome. You can also give the client command line options. See the README for more details.

你可以使用reconfigure脚本重新配置客户端,在opt/foldingathome。你也可以用命令行选项控制客户端。README中有更多细节。

Laptop Systems

本本系统

Because the client runs at low priority, the client should not cause the CPU governor to kick up the frequency. In other words, even though the client runs at 100% CPU usage, it should not cause the CPU frequency to go up, which keeps the fan slow and quiet. If this is not the case, then the frequency governor should be reconfigured.

因为客户端在低优先级运行,所以客户端软件不会导致CPU频率上升。也就是说,即使CPU达到100%使用率,也不会导致CPU频率上升,这样风扇低速又安静。如果不是这样的话,就应重新配置该频率调节器。

One can configure ACPI (the power regulation subsystem) to stop the client when the system goes on battery power, and to start it again when the power cord is plugged back in.

当使用电池时,可配置ACPI(高级电源管理)来停止客户端的工作,然后在使用交流电时又开始工作。

Breezy and older
操作如下

Edit /etc/acpi/power.sh. Inside the if [ $? = 0 ] && [ x$1 != xstop ]; then block, add

# stop folding at home
if [[ -x /etc/init.d/foldingathome ]] ; then
/etc/init.d/foldingathome stop
fi

and inside the else block, add

if [[ -x /etc/init.d/foldingathome ]] ; then
/etc/init.d/foldingathome start
fi
Dapper
小技巧

Simply create two scripts in the relevant directories. 在相关目录简单的创建两个脚本。

sudo -i
echo "/etc/init.d/foldingathome stop" > /etc/acpi/battery.d/fah
echo "/etc/init.d/foldingathome start" > /etc/acpi/ac.d/fah
exit

This assumes that the client has been installed for the entire system, which it should be if you are able to edit files in /etc in the first place!

这是假定客户端已安装到整个系统,这意味着你可以编辑/etc中的文件。

Other Issues

其他问题

For questions and bug reports, go to the HowTo forum thread. For casual talk about Folding@Home, use the Team Recuiting thread.

提交问题或是bug报告,到HowTo forum thread。想谈谈Folding@Home请到Team Recuiteing thread

Security

安全

Folding@Home is secure. The Stanford team has gone to great lengths to ensure security, both for the integrity of their research and the safety of donors' computers. However, the more secure the better. The Gentoo ebuild for Folding@Home creates a new user foldingathome whose sole purpose is to run the client. Now this installer offers same. It creates a user whose account is disabled, and runs the client as this user when the init script is run as root, so the client is never run as root.

Folding@Home是很安全的。史丹福开发团队长期确保它的安全性,无论是研究的完整性还是提供计算机者的安全。无论如何,越安全越好嘛。Gentoo的开发者为Folding@Home编写了一个新用户foldingathome,目的是只运行这个客户端软件。现在这个安装程序提供相同的功能。它为账户关闭的用户创建一个新用户,当init脚本以root用户运行时,它则以普通用户的方式运行客户端,所以客户端软件永远不会以root用户运行。

Hyper Threading

超线程

For those with Hyper Threading CPUs, you probably know that an SMP kernel sees two processors. Then clearly, if you run two clients, you will get more work done than if you only run one (probably about 10-30% more). However, results that are done quickly are more useful than more results done slowly. The reason is that each work unit is a step in a giant simulation, with future steps depending on past ones. So the faster you get your work done, the faster the simulation can move along. Long story short, run one client for each physical CPU, not for each logical CPU. The installer should automatically count the number of CPUs in your system. See this post in the Folding@Home forums.

这是给那些有超线程技术的CPU的,你大概知道,一个SMP核看上去有两个处理器。现在清楚了,如果你运行两个客户端,你将能比只运行一个做更多工作(大概能多10%-30%)。然而,结果往往是做更多有益的成果比较慢。原因是每个工作单位只是一个进程的多个模拟,未来步骤总要依靠前面的。所以你越快的完成工作,模拟进程也就越快。长话短说,一个客户端对应一个“物理”CPU,而不是“逻辑”CPU。安装程序将自动辨认你系统中CPU数目。看这里:post 在Folding@Home的论坛中。

Team Ubuntu

团队Ubuntu

A competitive Folding@Home team called Team Ubuntu (FoldingAtHomeTeamUbuntu, forum thread) has formed to represent the Ubuntu community and organize to have fun while doing some good. The team number is 45104. To join the team, simply enter 45104 when the setup dialog requests a team number. Those wishing to get optimal performance from their folding box should review the Hackaday blog entry on competitive folding linked below.

一个在Folding@Home竞争激烈的团队叫Team Ubuntu(FoldingAtHomeTeamUbuntu, forum thread)已形成以代表性的社区组织,当你做好事时会非常愉快。这个团队编号是45104。想加入这个团队,只需安装时在相应对话框中键入团队编号。想表现你自己请点击以下连接,记得看看Hackaday的博客。

Links

连接


翻译完成