-
Notifications
You must be signed in to change notification settings - Fork 480
Add docs for best logging practices #25
Comments
Did you see this: http://dev.px4.io/advanced-logging.html#dropouts ? |
Yes, we should recommend individual models and list their performance. |
don't forget this data: PX4/PX4-Autopilot#4634 |
@kd0aij Yes I took the data from there and summed it up in the dev-guide. |
@bkueng I think we want the absolute max for the last column in the table, not an average. @pkocmoud Is this the same card? https://www.amazon.com/dp/B013CP3KZ6/ref=psdc_1197396_t1_B00MBFPT44 If so, I'll order some of the 16 and 32 GB versions and try them myself. |
@kd0aij I wanted to have some statistical meaningful value, so I took the average over the spikes. It should give the reader a good idea to compare the cards, not a once-in-a-lifetime value that is potentially never reached again. The link to the more precise measurements is still there as well. |
@kd0aij I have none of these cards. |
@bkueng My thinking was that we want to know "worst-case" latency in order to determine the buffer size required to prevent dropouts. The max for the best card is only 17msec with an avg throughput of 460KB/sec, so the buffer size required for that speed would be less than 8000 bytes. But I'm more curious about why a card advertised as having a 40MB/sec write speed is achieving less than 0.5MB/sec in our tests. @pkocmoud Which SanDisk Extreme U3 32GB card did you test? I believe you once said that the quality of a card depends on where you buy it? |
yeah that's a good argument as well. I was wondering about write speed too, so I tested under Linux, and the same cards actually achieved much higher throughput, around 10x what I measured with Pixracer. Not sure why though. |
@pkocmoud Sorry, I didn't notice that wasn't you testing the U3 |
@bkueng I tested a Sandisk Extreme U3 16GB card, and the first run results were similar to your 32GB card test, with max write times of about 17msec. But after I noticed dropouts at about 50KB/sec with the new logger on master, I reran sd_bench, and most of the max write times are over 250msec. Reformatting the SD card had no effect, max write times are still > 250msec. Could you run a test writing an actual log file using master? I'm curious as to whether my 16GB card is behaving very differently from your 32GB card. |
@kd0aij That seems weird. I've been using my U3 32GB quite often with the new logger, including today with latest master, and no dropouts. Your linked card is the same, appart from the size. Do you have a 32GB version too? |
No, will try it in other vehicles On Mon, Aug 8, 2016, 8:20 AM Beat Küng notifications@github.com wrote:
|
@bkueng Could you create a page or section for the SD card recommendations and a brief explanation why this matters (500 ms allowed block time per SD card standard and associated buffering needs?)
I think that would be very valuable for developers.
The text was updated successfully, but these errors were encountered: