*** empty log message ***

svn path=/trunk/boinc/; revision=10684
This commit is contained in:
David Anderson 2006-07-19 20:19:18 +00:00
parent 9223b74bbd
commit 9d71fb8e78
8 changed files with 58 additions and 21 deletions

View File

@ -7694,3 +7694,24 @@ Charlie 19 July 2006
mac_build/
boinc.xcodeproj/
project.pbxproj
David 19 July 2006
- make test_uc.py work again:
- request work fetch when master URL fetch completed
- set CGI and file upload handler debugging mode in test
- use cc_config.xml instead of log_flags.xml
- use min_sendwork_interval = 0 if test
- added some work fetch messages
- core client: only do "platform change" logic
if there was an original platform
client/
client_state.C
cs_scheduler.C
scheduler_op.C
py/Boinc/
setup_project.py
test/
cc_config.xml (new)
log_flags.xml (removed)
testbase.py

View File

@ -297,7 +297,7 @@ int CLIENT_STATE::init() {
// Has platform name changed? If so reset all.
// This could happen e.g. if user copies files from PPC to Intel Mac
//
if (strcmp(platform_name, statefile_platform_name.c_str())) {
if (statefile_platform_name.size() && strcmp(platform_name, statefile_platform_name.c_str())) {
msg_printf(NULL, MSG_INFO,
"Platform changed from %s to %s - resetting projects",
statefile_platform_name.c_str(), platform_name

View File

@ -601,7 +601,15 @@ int CLIENT_STATE::compute_work_requests() {
p->work_request = 0;
p->work_request_urgency = WORK_FETCH_DONT_NEED;
if (!p->contactable()) continue;
if (!p->contactable()) {
if (log_flags.work_fetch_debug) {
msg_printf(0, MSG_INFO,
"compute_work_requests(): project '%s' is not contactable",
p->project_name
);
}
continue;
}
// if system has been running in round robin,
// then all projects will have a LT debt greater than
@ -617,6 +625,12 @@ int CLIENT_STATE::compute_work_requests() {
&& (overall_work_fetch_urgency != WORK_FETCH_NEED_IMMEDIATELY)
&& (prrs != p->resource_share)
) {
if (log_flags.work_fetch_debug) {
msg_printf(0, MSG_INFO,
"compute_work_requests(): project '%s' is overworked",
p->project_name
);
}
continue;
}

View File

@ -434,6 +434,7 @@ bool SCHEDULER_OP::poll() {
backoff(cur_proj, buf);
}
}
gstate.request_work_fetch("Master fetch complete");
cur_proj = NULL;
return true;
}

View File

@ -378,15 +378,16 @@ class Project:
config.db_passwd = options.db_passwd
config.db_host = options.db_host
config.shmem_key = generate_shmem_key()
config.output_level = 3
config.uldl_dir_fanout = 1024
local_host = socket.gethostname()
config.host = local_host.split('.')[0]
config.min_sendwork_interval = 6
config.min_sendwork_interval = 0
config.max_wus_to_send = 50
config.daily_result_quota = 500
config.disable_account_creation = 1
config.show_results = 1
config.sched_debug_level = 3
config.fuh_debug_level = 3
config.master_url = master_url or os.path.join(options.html_url , self.short_name , '')
config.download_url = os.path.join(config.master_url, 'download')
@ -398,6 +399,7 @@ class Project:
config.app_dir = os.path.join(self.project_dir, 'apps')
if production:
config.one_result_per_user_per_wu = '1'
config.min_sendwork_interval = 6
self.scheduler_url = os.path.join(config.cgi_url , 'cgi')

13
test/cc_config.xml Normal file
View File

@ -0,0 +1,13 @@
<cc_config>
<log_flags>
<task/>
<file_xfer/>
<sched_ops/>
<cpu_sched/>
<cpu_sched_debug/>
<task_debug/>
<work_fetch_debug/>
<unparsed_xml/>
<sched_op_debug/>
</log_flags>
</cc_config>

View File

@ -1,14 +0,0 @@
<log_flags>
<task/>
<file_xfer/>
<sched_ops/>
<state_debug/>
<poll_debug/>
<task_debug/>
<file_xfer_debug/>
<sched_op_debug/>
<time_debug/>
<http_debug/>
<measurement_debug/>
<net_xfer_debug/>
</log_flags>

View File

@ -507,7 +507,7 @@ class Host:
self.users = []
self.projects = []
self.global_prefs = None
self.log_flags = 'log_flags.xml'
self.cc_config = 'cc_config.xml'
self.host_dir = os.path.join(options.hosts_dir, self.name)
self.defargs = "-exit_when_idle -skip_cpu_benchmarks -return_results_immediately"
# self.defargs = "-exit_when_idle -skip_cpu_benchmarks -sched_retry_delay_bin 1"
@ -538,8 +538,8 @@ class Host:
f.close()
# copy log flags and global prefs, if any
if self.log_flags:
shutil.copy(self.log_flags, self.dir('log_flags.xml'))
if self.cc_config:
shutil.copy(self.cc_config, self.dir('cc_config.xml'))
# if self.global_prefs:
# shell_call("cp %s %s" % (self.global_prefs, self.dir('global_prefs.xml')))
# # shutil.copy(self.global_prefs, self.dir('global_prefs.xml'))