diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-05-25 13:35:10 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-05-25 13:35:10 -0400 |
| commit | 7f823ef35733230d3fd1e12e52fecde89f415e8b (patch) | |
| tree | dded33d97e313b5bdb417e7b611c3dc03f7c8ac0 /include/framework/DynamicExtension.h | |
| parent | aa15300f8302bf713d752a775f32060b59b8746f (diff) | |
| download | dynamic-extension-7f823ef35733230d3fd1e12e52fecde89f415e8b.tar.gz | |
Updates for tail latency stall testing
Diffstat (limited to 'include/framework/DynamicExtension.h')
| -rw-r--r-- | include/framework/DynamicExtension.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/framework/DynamicExtension.h b/include/framework/DynamicExtension.h index 59b784b..b65ad47 100644 --- a/include/framework/DynamicExtension.h +++ b/include/framework/DynamicExtension.h @@ -70,7 +70,7 @@ public: * for various configuration parameters in the system. See * include/framework/util/Configuration.h for details. */ - DynamicExtension(ConfType &&config) : m_config(std::move(config)) { + DynamicExtension(ConfType &&config, double insertion_rate=1.0) : m_config(std::move(config)) { m_buffer = std::make_unique<BufferType>(m_config.buffer_flush_trigger, m_config.buffer_size); @@ -81,7 +81,7 @@ public: m_version_counter = INITIAL_VERSION; m_preempt_version = INVALID_VERSION; - m_insertion_rate.store(1.0); + m_insertion_rate.store(insertion_rate); assert(m_config.recon_policy); } @@ -493,6 +493,7 @@ private: * this code will be bypassed in that case. */ if (args->priority == ReconstructionPriority::FLUSH) { + fprintf(stdout, "S\t%ld\n", extension->get_shard_count()); // fprintf(stderr, "[I] Running flush (%ld)\n", recon_id); // fprintf(stderr, "[I]\t Assigned Version %ld (%ld)\n", // args->version->get_id(), recon_id); @@ -657,6 +658,7 @@ private: // fprintf(stderr, "[I] Reconstruction to Version %ld Finished (%ld)\n", // args->version->get_id(), recon_id); + /* manually delete the argument object */ delete args; } |