From 03722e3f74cb7af3bbc303673b4dc3f8fa62227b Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 14 Dec 2015 19:30:01 +0100 Subject: [PATCH 1/1] kill dead code --- src/msg/msg_vm.cpp | 19 ------------------- 1 file changed, 19 deletions(-) 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; -- 2.20.1