Project

General

Profile

Actions

Bug #5324

closed

dcd_mgr buffer too small -- xxx Lost data.. messages

Added by Derik Barseghian about 13 years ago. Updated about 13 years ago.

Status:
Resolved
Priority:
Normal
Category:
sensor-view
Target version:
Start date:
02/24/2011
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5324

Description

After running dcd_mgr for awhile I start getting messages like:
xxx Lost data: 2011-02-24T16:39:45.667Z CR800_sq311_1 3.3662283421E-01

Looking at SPAN's data_storage.c, this looks like intended behavior, at a certain point old data is discarded in ring buffer fashion. Data is discarded when MAX_DATA_QUEUE_SIZE is reached, and it seems hardcoded to 256.

This seems problematically small, and should probably be user configurable.

Sampling 3 sensors at 1sps, gives you 85 seconds before old data starts expiring. And I think if the spanToDT process goes down, our current flow will lose this data.

Actions

Also available in: Atom PDF