ts_kmp_mem_low_watermark
Sets the low watermark for memory usage in the Kaltura Media Framework.
Description
The ts_kmp_mem_low_watermark directive defines the minimum amount of memory that should be allocated for operations within the Kaltura Media Framework. When memory usage drops below this specified watermark, the framework can trigger specific behaviors to manage resources efficiently, which may include freeing up cached memory or adjusting streaming parameters to prevent performance degradation due to insufficient memory. This directive is crucial in environments where media streaming is sensitive to memory availability, ensuring a buffer is always maintained to safeguard smooth operation.
To use this directive effectively, administrators must set it according to their server's capacity and the expected workloads. For example, setting it too low may lead to instability in stream handling as available memory is exhausted, while setting it too high may lead to resource wastage where available memory is not utilized effectively. Thus, finding the right balance based on testing and monitoring is key. Additionally, this directive should be set in the context of stream or stream server, emphasizing its relevance in scenarios dealing with TCP stream processing in Kaltura applications.
Config Example
stream {
server {
ts_kmp_mem_low_watermark 128m;
}
}Setting the value too low can lead to poor performance during high load scenarios.
It may require tuning based on the specific media processing workloads unique to each deployment.