@@ -1184,9 +1184,6 @@ class DramKVEmbeddingCache : public kv_db::EmbeddingKVDB {
1184
1184
const int64_t step,
1185
1185
const int64_t interval) {
1186
1186
std::vector<double > ret (22 , 0 ); // num metrics
1187
-
1188
- allocated_memory_ = get_map_used_memsize_in_bytes ();
1189
- actual_used_chunk_memory_ = get_map_actual_used_chunk_in_bytes ();
1190
1187
if (step > 0 && step % interval == 0 ) {
1191
1188
int reset_val = 0 ;
1192
1189
@@ -1233,10 +1230,6 @@ class DramKVEmbeddingCache : public kv_db::EmbeddingKVDB {
1233
1230
auto dram_bwd_l1_cnflct_miss_write_missing_load_ =
1234
1231
bwd_l1_cnflct_miss_write_missing_load_avg_.exchange (reset_val);
1235
1232
1236
- auto dram_allocated_memory = allocated_memory_.exchange (reset_val);
1237
- auto dram_actual_used_chunk_memory =
1238
- actual_used_chunk_memory_.exchange (reset_val);
1239
-
1240
1233
ret[0 ] = dram_read_total_duration / interval;
1241
1234
ret[1 ] = dram_read_sharding_total_duration / interval;
1242
1235
ret[2 ] = dram_read_cache_hit_copy_duration / interval;
@@ -1260,8 +1253,8 @@ class DramKVEmbeddingCache : public kv_db::EmbeddingKVDB {
1260
1253
ret[18 ] = dram_bwd_l1_cnflct_miss_write_acquire_lock_duration_ / interval;
1261
1254
ret[19 ] = dram_bwd_l1_cnflct_miss_write_missing_load_ / interval;
1262
1255
1263
- ret[20 ] = dram_allocated_memory / interval ;
1264
- ret[21 ] = dram_actual_used_chunk_memory / interval ;
1256
+ ret[20 ] = get_map_used_memsize_in_bytes () ;
1257
+ ret[21 ] = get_map_actual_used_chunk_in_bytes () ;
1265
1258
}
1266
1259
return ret;
1267
1260
}
@@ -1495,9 +1488,6 @@ class DramKVEmbeddingCache : public kv_db::EmbeddingKVDB {
1495
1488
std::atomic<int64_t > fwd_l1_eviction_write_acquire_lock_avg_duration_{0 };
1496
1489
std::atomic<int64_t > fwd_l1_eviction_write_missing_load_avg_{0 };
1497
1490
1498
- std::atomic<int64_t > allocated_memory_{0 };
1499
- std::atomic<int64_t > actual_used_chunk_memory_{0 };
1500
-
1501
1491
std::atomic<int64_t > inplace_update_hit_cnt_{0 };
1502
1492
std::atomic<int64_t > inplace_update_miss_cnt_{0 };
1503
1493
}; // class DramKVEmbeddingCache
0 commit comments