From: Cristiano De M. <dem...@na...> - 2003-03-17 15:13:11
|
Hi, I'm having some problem in calculating the total load of all local processes, actually I tried the following approach: #ifdef CONFIG_MOSIX_LOADLIMIT loadlocal = loadremote = 0; #endif for_each_task(p) { m = &p->mosix; if(m->runstart) { m->ran += ticks + 1 - m->runstart; m->runstart = 1; } m->load = m->load * DECAY + m->ran * MF * 4*NEWDATA/ticks; #ifdef CONFIG_MOSIX_LOADLIMIT if (m->dflags & DREMOTE) { loadremote += m->load; } else { loadlocal += m->load; } #endif m->ran = 0; m->page_allocs >>= 1; /* decay in time */ } this is a piece of code from load.c and in particular from function mosix_calc_load(). Anyway I get apparently loaremote = loadlocal = 0, so my question is: is m->load really different from 0? Or what's wrong here? thanks Cristiano -- Cristiano De Michele <dem...@na...> Department of Physics, University of Naples "Federico II" |