mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-07 07:04:13 +02:00
Parameter tuning for writer
This commit is contained in:
@@ -28,7 +28,11 @@ namespace core_buffer {
|
||||
// Size of sf_buffer RB in elements.
|
||||
const size_t BUFFER_RB_SIZE = 1000;
|
||||
|
||||
const int WRITER_ZMQ_IO_THREADS = 16;
|
||||
// ZMQ threads for receiving data from sf_replay.
|
||||
const int WRITER_ZMQ_IO_THREADS = 4;
|
||||
|
||||
// Size of buffer between the receiving and writing part of sf_writer
|
||||
const int WRITER_RB_BUFFER_SLOTS = 100;
|
||||
|
||||
// How many frames to buffer before flushing to file.
|
||||
const size_t WRITER_BUFFER_SIZE = 100;
|
||||
|
||||
@@ -136,7 +136,7 @@ int main (int argc, char *argv[])
|
||||
|
||||
size_t n_modules = 32;
|
||||
|
||||
RingBuffer<DetectorFrame> ring_buffer(10);
|
||||
RingBuffer<DetectorFrame> ring_buffer(WRITER_RB_BUFFER_SLOTS);
|
||||
ring_buffer.initialize(MODULE_N_BYTES*n_modules);
|
||||
|
||||
string ipc_prefix = "ipc://sf-replay-";
|
||||
|
||||
Reference in New Issue
Block a user