mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=11820
This commit is contained in:
parent
262b2a12ae
commit
f8d2613320
|
@ -331,13 +331,13 @@ Rom 9 Jan 2007
|
|||
boincmgr_curl.vcproj
|
||||
|
||||
Walt 9 Jan 2007
|
||||
- core client: Change function that calculates RAM used by a
|
||||
science project to return the max memory used by one process
|
||||
- core client: Change function that calculates RAM and SWAP used
|
||||
by a science project to return the max used by a process
|
||||
instead of totaling the process/child processes. Fixes the
|
||||
problem where the same RAM used gets counted multiple times
|
||||
for some science apps.
|
||||
problem where the same RAM and SWAP used gets counted multiple
|
||||
times for some science apps.
|
||||
|
||||
client/
|
||||
lib/
|
||||
procinfo_unix.cpp
|
||||
|
||||
David 9 Jan 2007
|
||||
|
|
|
@ -200,10 +200,15 @@ void add_child_totals(PROCINFO& pi, vector<PROCINFO>& piv, int pid, int rlvl) {
|
|||
if (p.parentid == pid) {
|
||||
pi.kernel_time += p.kernel_time;
|
||||
pi.user_time += p.user_time;
|
||||
pi.swap_size += p.swap_size;
|
||||
|
||||
// only count process with most swap and memory
|
||||
if (p.swap_size > pi.swap_size) {
|
||||
pi.swap_size = p.swap_size;
|
||||
}
|
||||
if (p.working_set_size > pi.working_set_size) {
|
||||
pi.working_set_size = p.working_set_size;
|
||||
}
|
||||
|
||||
p.is_boinc_app = true;
|
||||
// look for child process of this one
|
||||
add_child_totals(pi, piv, p.id, rlvl+1); // recursion - woo hoo!
|
||||
|
|
Loading…
Reference in New Issue