Skip to content

Commit 6c7d72a

Browse files
committed
Merge branch 'master' of https://github.com/BOINC/boinc
2 parents 070db37 + f5784c0 commit 6c7d72a

23 files changed

Lines changed: 62 additions & 42 deletions

client/app.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,12 +454,22 @@ void ACTIVE_TASK_SET::get_memory_usage() {
454454

455455
for (i=0; i<cc_config.exclusive_apps.size(); i++) {
456456
if (app_running(pm, cc_config.exclusive_apps[i].c_str())) {
457+
if (log_flags.mem_usage_debug) {
458+
msg_printf(NULL, MSG_INFO,
459+
"[mem_usage] exclusive app %s is running", cc_config.exclusive_apps[i].c_str()
460+
);
461+
}
457462
exclusive_app_running = gstate.now;
458463
break;
459464
}
460465
}
461466
for (i=0; i<cc_config.exclusive_gpu_apps.size(); i++) {
462467
if (app_running(pm, cc_config.exclusive_gpu_apps[i].c_str())) {
468+
if (log_flags.mem_usage_debug) {
469+
msg_printf(NULL, MSG_INFO,
470+
"[mem_usage] exclusive GPU app %s is running", cc_config.exclusive_gpu_apps[i].c_str()
471+
);
472+
}
463473
exclusive_gpu_app_running = gstate.now;
464474
break;
465475
}

client/app_control.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,8 +1171,15 @@ void ACTIVE_TASK_SET::suspend_all(int reason) {
11711171
continue;
11721172
}
11731173

1174-
if (cc_config.dont_suspend_nci && atp->result->non_cpu_intensive()) {
1175-
continue;
1174+
// special cases for non-CPU-intensive apps
1175+
//
1176+
if (atp->result->non_cpu_intensive()) {
1177+
if (cc_config.dont_suspend_nci) {
1178+
continue;
1179+
}
1180+
if (reason == SUSPEND_REASON_BATTERIES) {
1181+
continue;
1182+
}
11761183
}
11771184

11781185
// handle CPU throttling separately

client/client_state.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ extern THREAD throttle_thread;
559559
#define GUI_HTTP_POLL_PERIOD 1.0
560560

561561
#define MEMORY_USAGE_PERIOD 10
562+
// computer memory usage and check for exclusive apps this often
562563

563564
//////// WORK FETCH
564565

@@ -623,7 +624,7 @@ extern THREAD throttle_thread;
623624

624625
//////// MISC
625626

626-
#define EXCLUSIVE_APP_WAIT 30
627+
#define EXCLUSIVE_APP_WAIT 5
627628
// if "exclusive app" feature used,
628629
// wait this long after app exits before restarting jobs
629630

client/cs_prefs.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ int CLIENT_STATE::check_suspend_processing() {
244244
return SUSPEND_REASON_NO_RECENT_INPUT;
245245
}
246246
}
247-
if (now - exclusive_app_running < EXCLUSIVE_APP_WAIT) {
247+
if (now - exclusive_app_running < MEMORY_USAGE_PERIOD + EXCLUSIVE_APP_WAIT) {
248248
return SUSPEND_REASON_EXCLUSIVE_APP_RUNNING;
249249
}
250250
if (global_prefs.suspend_cpu_usage && non_boinc_cpu_usage*100 > global_prefs.suspend_cpu_usage) {
@@ -321,7 +321,7 @@ int CLIENT_STATE::check_suspend_processing() {
321321
gpu_suspend_reason = SUSPEND_REASON_USER_REQ;
322322
break;
323323
default:
324-
if (now - exclusive_gpu_app_running < EXCLUSIVE_APP_WAIT) {
324+
if (now - exclusive_gpu_app_running < MEMORY_USAGE_PERIOD + EXCLUSIVE_APP_WAIT) {
325325
gpu_suspend_reason = SUSPEND_REASON_EXCLUSIVE_APP_RUNNING;
326326
break;
327327
}
@@ -477,7 +477,7 @@ void CLIENT_STATE::check_suspend_network() {
477477
if (!recent_rpc) network_suspended = true;
478478
network_suspend_reason = SUSPEND_REASON_TIME_OF_DAY;
479479
}
480-
if (now - exclusive_app_running < EXCLUSIVE_APP_WAIT) {
480+
if (now - exclusive_app_running < MEMORY_USAGE_PERIOD + EXCLUSIVE_APP_WAIT) {
481481
file_xfers_suspended = true;
482482
if (!recent_rpc) network_suspended = true;
483483
network_suspend_reason = SUSPEND_REASON_EXCLUSIVE_APP_RUNNING;

client/hostinfo_unix.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,6 +2090,7 @@ bool xss_idle(long idle_threshold) {
20902090
"[idle_detection] XScreenSaver extension not available for DISPLAY '%s'.",
20912091
it->c_str());
20922092
}
2093+
XCloseDisplay(disp);
20932094
continue;
20942095
}
20952096

@@ -2098,6 +2099,9 @@ bool xss_idle(long idle_threshold) {
20982099
XScreenSaverQueryInfo(disp, DefaultRootWindow(disp), xssInfo);
20992100
idle_time = xssInfo->idle;
21002101

2102+
// Close the connection to the XServer
2103+
XCloseDisplay(disp);
2104+
21012105
// convert from milliseconds to seconds
21022106
idle_time = idle_time / 1000;
21032107

configure.ac

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,10 +1245,8 @@ AC_SUBST(CLIENTLIBS)
12451245

12461246
if test "${enable_debug}" = "yes" ; then
12471247
CLIENTGUIFLAGS="${CLIENTGUIFLAGS} -D_DEBUG -DDEBUG"
1248-
fi
1249-
1250-
# disable wxWidgets debug support which is by default enabled since 2.9.1
1251-
if test "${enable_wx_debug}" = "no" ; then
1248+
else
1249+
# disable wxWidgets debug support which is by default enabled since 2.9.1
12521250
CLIENTGUIFLAGS="${CLIENTGUIFLAGS} -DNDEBUG"
12531251
fi
12541252

db/schema.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ create table team (
132132
ping_user integer not null default 0,
133133
ping_time integer unsigned not null default 0,
134134
joinable tinyint not null default 1,
135+
mod_time timestamp default current_timestamp on update current_timestamp,
135136
primary key (id)
136137
) engine=MyISAM;
137138

doc/projects.inc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ $mixed = array(
456456
"http://casathome.ihep.ac.cn/",
457457
tra("Chinese Academy of Sciences"),
458458
tra("Physics, biochemistry, and others"),
459-
tra("The objective of CAS@home is to encourage and assist scientists in China to adopt the technologies of volunteer computing and volunteer thinking for their research."),
459+
tra("CAS@home is hosted by the Computing Centre of the Institute of High Energy Physics (IHEP), Chinese Academy of Sciences, for Chinese scientists with projects studying protein structure, nanotechnology, cancer genomics, and high energy physics."),
460460
"cas_at_home.jpg",
461461
"",
462462
tra("Help Chinese researchers")
@@ -471,16 +471,16 @@ $mixed = array(
471471
"",
472472
tra("Do research in math, physics, and evolution")
473473
),
474-
array(
475-
"EDGeS@Home",
476-
"http://home.edges-grid.eu/home/",
477-
tra("MTA-SZTAKI Laboratory of Parallel and Distributed Systems (Hungary)"),
478-
tra("European research projects"),
479-
tra("The EDGeS@Home Beta project integrates volunteer computing into the service grid network of Europe by allowing service grids to send workunits to be processed by the volunteers of this project. The scientific projects covered by the project include math, physics, biology, etc."),
480-
"logo_edges.png",
481-
"",
482-
tra("Help European researchers")
483-
),
474+
// array(
475+
// "EDGeS@Home",
476+
// "http://home.edges-grid.eu/home/",
477+
// tra("MTA-SZTAKI Laboratory of Parallel and Distributed Systems (Hungary)"),
478+
// tra("European research projects"),
479+
// tra("The EDGeS@Home Beta project integrates volunteer computing into the service grid network of Europe by allowing service grids to send workunits to be processed by the volunteers of this project. The scientific projects covered by the project include math, physics, biology, etc."),
480+
// "logo_edges.png",
481+
// "",
482+
// tra("Help European researchers")
483+
// ),
484484
array(
485485
"Ibercivis",
486486
"http://registro.ibercivis.es/",

drupal/sites/default/boinc/modules/contrib/wysiwyg/wysiwyg.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ core = 6.x
77
version = "6.x-2.4-dev-boinc-1"
88
core = "6.x"
99
project = "wysiwyg"
10-
datestamp = "1452920286"
10+
datestamp = "1453962141"

html/inc/team.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function display_team_members($team, $offset, $sort_by) {
271271
}
272272
echo "<tr class=row1>
273273
<td align=left>$j) $x
274-
";
274+
</td>";
275275
if (!no_computing()) {
276276
echo "
277277
<td align=right>$user_total_credit</td>

0 commit comments

Comments
 (0)