Skip to content

Commit 4100d00

Browse files
committed
Remove mem_estimate_frame_transfer_costs from configuration files
1 parent 90c8715 commit 4100d00

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

libworkstream_df/configs/doble.h

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -363,42 +363,6 @@ static inline int mem_num_steal_attempts_at_level(unsigned int level)
363363
return steals_at_level[level];
364364
}
365365

366-
/* static inline void mem_estimate_frame_transfer_costs(int metadata_owner, int* bytes_cpu, long long* cache_misses, long long* cache_misses_now, int allocator, unsigned long long* costs) */
367-
/* { */
368-
/* int i, j; */
369-
/* unsigned long long cost; */
370-
/* unsigned long long cost_allocator; */
371-
/* unsigned long long bytes; */
372-
/* unsigned long long bytes_at_allocator = 0; */
373-
/* unsigned long long cache_miss_diff; */
374-
375-
/* memset(costs, 0, sizeof(*costs)*MAX_CPUS); */
376-
377-
/* for(i = 0; i < MAX_CPUS; i++) { */
378-
/* for(j = 0; j < MAX_CPUS; j++) { */
379-
/* bytes = bytes_cpu[i]; */
380-
381-
/* if(i == metadata_owner) */
382-
/* bytes += 1024; */
383-
384-
/* if(bytes) { */
385-
/* cost = mem_transfer_costs(i, j); */
386-
/* cost_allocator = mem_transfer_costs(j, allocator); */
387-
388-
/* cache_miss_diff = cache_misses_now[i] - cache_misses[i]; */
389-
390-
/* if(cache_miss_diff*30 < bytes/MEM_CACHE_LINE_SIZE) */
391-
/* bytes_at_allocator = cache_miss_diff*MEM_CACHE_LINE_SIZE/30; */
392-
/* else */
393-
/* bytes_at_allocator = 0; */
394-
395-
/* costs[j] += cost * (bytes-bytes_at_allocator); */
396-
/* costs[j] += cost_allocator * bytes_at_allocator; */
397-
/* } */
398-
/* } */
399-
/* } */
400-
/* } */
401-
402366
#ifdef WS_PAPI_PROFILE
403367
#define mem_cache_misses(th) rdtsc()
404368
//((th)->papi_counters[MEM_CACHE_MISS_POS])

0 commit comments

Comments
 (0)