From: Martin Quinson Date: Mon, 14 Dec 2015 18:30:01 +0000 (+0100) Subject: kill dead code X-Git-Tag: v3_13~1450 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/03722e3f74cb7af3bbc303673b4dc3f8fa62227b?hp=32d226bfd7b55aea890fca59ba6dcd3ade1c7247;ds=sidebyside kill dead code --- diff --git a/src/msg/msg_vm.cpp b/src/msg/msg_vm.cpp index de7f6830f2..91c4796d5d 100644 --- a/src/msg/msg_vm.cpp +++ b/src/msg/msg_vm.cpp @@ -482,25 +482,6 @@ static void stop_dirty_page_tracking(msg_vm_t vm) priv->dp_enabled = 0; } -#if 0 -/* It might be natural that we define dp_rate for each task. But, we will also - * have to care about how each task behavior affects the memory update behavior - * at the operating system level. It may not be easy to model it with a simple algorithm. */ -double calc_updated_pages(char *key, msg_vm_t vm, dirty_page_t dp, double remaining, double clock) -{ - double computed = dp->prev_remaining - remaining; - double duration = clock - dp->prev_clock; - double updated = dp->task->dp_rate * computed; - - XBT_INFO("%s@%s: computated %f ops (remaining %f -> %f) in %f secs (%f -> %f)", - key, sg_host_name(vm), computed, dp->prev_remaining, remaining, duration, dp->prev_clock, clock); - XBT_INFO("%s@%s: updated %f bytes, %f Mbytes/s", - key, sg_host_name(vm), updated, updated / duration / 1000 / 1000); - - return updated; -} -#endif - static double get_computed(char *key, msg_vm_t vm, dirty_page_t dp, double remaining, double clock) { double computed = dp->prev_remaining - remaining;