Commit df41887a authored by Laurent Claustre's avatar Laurent Claustre Committed by bliss administrator
Browse files

Increase HwTmpfsBufferMgr memory usage to 95 %, default was 50%, means when...

Increase HwTmpfsBufferMgr memory usage to 95 %, default was 50%, means when mapping a ramdisk of 16GB only 8GB was used
parent e8afbfb4
Pipeline #48288 passed with stages
in 15 minutes and 42 seconds
......@@ -769,6 +769,15 @@ Interface::Interface(Camera& cam,const DetInfoCtrlObj::Info* info)
HwDetInfoCtrlObj *det_info = &m_det_info;
m_cap_list.push_back(HwCap(det_info));
// Usually ramdisk is use to store image files saved by camserver
// default max memory size use in HwTmpfsBufferMgr is 50% of the provided ramdisk.
// we increase here the size to 95% of the available ramdisk.
// The buffer will calculate how many frames (edf files) in can store in
// this mapped disk. For instance if the ramdisk is about 16GB and we stay at 50%
// only 8GB can be used to store the images, With a fast and long acquisition
// one can get an overrun error.
m_buffer.setMemoryPercent(0.95);
HwBufferCtrlObj *buffer = &m_buffer;
m_cap_list.push_back(HwCap(buffer));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment