プレファレンスより優先される設定ファイル |
|
とくに指定がなければ、グローバル・プレファレンス はプロジェクトのサーバ上に保持されていて、ウェブインタフェースで変更できます。 そしてそれがサーバからクライアントへダウンロードされてきます。
プレファレンスをローカルに編集したい人もいらっしゃいますし、特定の1台の計算機のためにだけ プレファレンスを変更したい方もいます。 これらの要件を満たすために、 BOINC は、参加者が作ることができる「プレファレンスより優先される設定ファイル」という仕組みを設けました。 コア・クライアントはサーバからプレファレンスを読み出した後に、 このファイルを読み込みます。 そして、プレファレンスを上書きしてしまいます。
プレファレンスより優先される設定ファイルの名前は、global_prefs_override.xml
です。 その構造は下記の例のとおりです。
<global_preferences>
<run_if_user_active>0</run_if_user_active>
<idle_time_to_run>3</idle_time_to_run>
<cpu_scheduling_period_minutes>60</cpu_scheduling_period_minutes>
<work_buf_min_days>0.1</work_buf_min_days>
<max_cpus>2</max_cpus>
<disk_interval>60</disk_interval>
<disk_max_used_gb>100</disk_max_used_gb>
<disk_max_used_pct>50</disk_max_used_pct>
<disk_min_free_gb>0.1</disk_min_free_gb>
<vm_max_used_pct>75</vm_max_used_pct>
<max_bytes_sec_down>0</max_bytes_sec_down>
<max_bytes_sec_up>0</max_bytes_sec_up>
</global_preferences>
プレファレンスをローカルに編集するプログラムを書くとすると、 優先する設定ファイルを読み直すようにコア・クライアントへ命じたくなるでしょう。 そうするには、 read_global_prefs_override() という GUI RPC を使えば可能です。 コア・クライアントを一旦停めて、再開しても結構です。
最終更新時刻 00:53:50, 2006年08月12日(JST)
Copyright © 2010 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.
Copyright © 2010 Komori Hitoshi(je2bwm at jarl.com).
Japanese translation from English web pages on BOINC.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.