… | |
… | |
8 | our $SWAP_TIMEOUT = $cf::CFG{swap_timeout} || 300; # number of seconds after which inactive maps get swapped out |
8 | our $SWAP_TIMEOUT = $cf::CFG{swap_timeout} || 300; # number of seconds after which inactive maps get swapped out |
9 | our $SCHEDULE_INTERVAL = $cf::CFG{schedule_interval} || .8; # time the map scheduler sleeps between runs |
9 | our $SCHEDULE_INTERVAL = $cf::CFG{schedule_interval} || .8; # time the map scheduler sleeps between runs |
10 | our $SAVE_TIMEOUT = $cf::CFG{save_timeout} || 30; # save maps every n seconds |
10 | our $SAVE_TIMEOUT = $cf::CFG{save_timeout} || 30; # save maps every n seconds |
11 | our $SWAP_LOAD1 = $cf::CFG{swap_load1} || .1; # start aggressively swapping at this load |
11 | our $SWAP_LOAD1 = $cf::CFG{swap_load1} || .1; # start aggressively swapping at this load |
12 | our $SWAP_LOAD2 = $cf::CFG{swap_load2} || .4; # swap as fast as possible at this load |
12 | our $SWAP_LOAD2 = $cf::CFG{swap_load2} || .4; # swap as fast as possible at this load |
13 | |
|
|
14 | warn "load1 ", $SWAP_LOAD1;#d# |
|
|
15 | warn "load2 ", $SWAP_LOAD2;#d# |
|
|
16 | |
13 | |
17 | cf::async_ext { |
14 | cf::async_ext { |
18 | $Coro::current->prio (Coro::PRIO_MIN); |
15 | $Coro::current->prio (Coro::PRIO_MIN); |
19 | |
16 | |
20 | # load the header of swapped-out maps. |
17 | # load the header of swapped-out maps. |