Reenable compressed logging on rio
Both turn logging back on on all the channels and enable compression.
Seems to cost on the order of 1% of the rio CPU and gets us down to
20-25% of the logfile size.
Change-Id: I9e7a3d3c94c5e80f15799e12ae09f35a336d48ef
Signed-off-by: James Kuszmaul <jabukuszmaul@gmail.com>
diff --git a/y2020/y2020_roborio.json b/y2020/y2020_roborio.json
index 505eb1c..89dded8 100644
--- a/y2020/y2020_roborio.json
+++ b/y2020/y2020_roborio.json
@@ -4,14 +4,12 @@
"name": "/roborio/aos",
"type": "aos.JoystickState",
"source_node": "roborio",
- "logger": "NOT_LOGGED",
"frequency": 75
},
{
"name": "/roborio/aos",
"type": "aos.RobotState",
"source_node": "roborio",
- "logger": "NOT_LOGGED",
"frequency": 200
},
{
@@ -20,7 +18,6 @@
"source_node": "roborio",
"frequency": 50,
"num_senders": 20,
- "logger": "NOT_LOGGED",
"max_size": 4096
},
{
@@ -29,8 +26,6 @@
"source_node": "roborio",
"frequency": 500,
"max_size": 344,
- /* Due to potential for burst load, don't log. */
- "logger": "NOT_LOGGED",
"num_senders": 20
},
{
@@ -38,7 +33,6 @@
"type": "aos.starter.Status",
"source_node": "roborio",
"frequency": 50,
- "logger": "NOT_LOGGED",
"num_senders": 20
},
{
@@ -47,7 +41,6 @@
"source_node": "roborio",
"frequency": 10,
"max_size": 72,
- "logger": "NOT_LOGGED",
"num_senders": 2
},
{
@@ -55,7 +48,6 @@
"type": "aos.message_bridge.ServerStatistics",
"source_node": "roborio",
"frequency": 10,
- "logger": "NOT_LOGGED",
"num_senders": 2
},
{
@@ -64,21 +56,18 @@
"source_node": "roborio",
"frequency": 15,
"max_size": 736,
- "logger": "NOT_LOGGED",
"num_senders": 2
},
{
"name": "/roborio/aos/remote_timestamps/logger/roborio/aos/aos-message_bridge-Timestamp",
"type": "aos.message_bridge.RemoteMessage",
"frequency": 200,
- "logger": "NOT_LOGGED",
"source_node": "roborio"
},
{
"name": "/roborio/aos/remote_timestamps/pi1/roborio/aos/aos-message_bridge-Timestamp",
"type": "aos.message_bridge.RemoteMessage",
"frequency": 20,
- "logger": "NOT_LOGGED",
"source_node": "roborio",
"max_size": 208
},
@@ -86,7 +75,6 @@
"name": "/roborio/aos/remote_timestamps/pi2/roborio/aos/aos-message_bridge-Timestamp",
"type": "aos.message_bridge.RemoteMessage",
"frequency": 20,
- "logger": "NOT_LOGGED",
"source_node": "roborio",
"max_size": 208
},
@@ -94,21 +82,18 @@
"name": "/roborio/aos/remote_timestamps/pi3/roborio/aos/aos-message_bridge-Timestamp",
"type": "aos.message_bridge.RemoteMessage",
"frequency": 20,
- "logger": "NOT_LOGGED",
"source_node": "roborio"
},
{
"name": "/roborio/aos/remote_timestamps/pi4/roborio/aos/aos-message_bridge-Timestamp",
"type": "aos.message_bridge.RemoteMessage",
"frequency": 20,
- "logger": "NOT_LOGGED",
"source_node": "roborio"
},
{
"name": "/roborio/aos/remote_timestamps/pi5/roborio/aos/aos-message_bridge-Timestamp",
"type": "aos.message_bridge.RemoteMessage",
"frequency": 20,
- "logger": "NOT_LOGGED",
"source_node": "roborio",
"max_size": 208
},
@@ -172,7 +157,6 @@
"type": "y2020.control_loops.superstructure.Goal",
"source_node": "roborio",
"frequency": 200,
- "logger": "NOT_LOGGED",
"max_size": 512
},
{
@@ -180,7 +164,6 @@
"type": "y2020.control_loops.superstructure.Status",
"source_node": "roborio",
"frequency": 200,
- "logger": "NOT_LOGGED",
"num_senders": 2
},
{
@@ -189,7 +172,6 @@
"source_node": "roborio",
"frequency": 200,
"num_senders": 2,
- "logger": "NOT_LOGGED",
"max_size": 224
},
{
@@ -198,7 +180,6 @@
"source_node": "roborio",
"frequency": 200,
"num_senders": 2,
- "logger": "NOT_LOGGED",
"max_size": 448
},
{
@@ -207,7 +188,6 @@
"source_node": "roborio",
"frequency": 200,
"num_senders": 2,
- "logger": "NOT_LOGGED",
"max_size": 64
},
{
@@ -216,14 +196,12 @@
"source_node": "roborio",
"frequency": 5,
"num_senders": 2,
- "logger": "NOT_LOGGED",
"max_size": 256
},
{
"name": "/superstructure",
"type": "y2020.joysticks.Setpoint",
"source_node": "roborio",
- "logger": "NOT_LOGGED",
"num_senders": 2
},
{
@@ -247,7 +225,6 @@
"type": "frc971.sensors.GyroReading",
"source_node": "roborio",
"frequency": 200,
- "logger": "NOT_LOGGED",
"num_senders": 2
},
{
@@ -255,7 +232,6 @@
"type": "frc971.sensors.Uid",
"source_node": "roborio",
"frequency": 200,
- "logger": "NOT_LOGGED",
"num_senders": 2
},
{
@@ -266,15 +242,12 @@
"frequency": 4,
"num_senders": 2,
"read_method": "PIN",
- "num_readers": 10,
- /* Trajectory creates a very peaky load on the logger. */
- "logger": "NOT_LOGGED"
+ "num_readers": 10
},
{
"name": "/drivetrain",
"type": "frc971.control_loops.drivetrain.SplineGoal",
"source_node": "roborio",
- "logger": "NOT_LOGGED",
"frequency": 10
},
{
@@ -282,7 +255,6 @@
"type": "frc971.control_loops.drivetrain.Goal",
"source_node": "roborio",
"max_size": 224,
- "logger": "NOT_LOGGED",
"frequency": 200
},
{
@@ -299,7 +271,6 @@
"source_node": "roborio",
"frequency": 200,
"max_size": 80,
- "logger": "NOT_LOGGED",
"num_senders": 2
},
{
@@ -308,7 +279,6 @@
"source_node": "roborio",
"frequency": 200,
"max_size": 1616,
- "logger": "NOT_LOGGED",
"num_senders": 2
},
{
@@ -321,26 +291,22 @@
{
"name": "/drivetrain",
"type": "y2019.control_loops.drivetrain.TargetSelectorHint",
- "logger": "NOT_LOGGED",
"source_node": "roborio"
},
{
"name": "/autonomous",
"type": "aos.common.actions.Status",
- "logger": "NOT_LOGGED",
"source_node": "roborio"
},
{
"name": "/autonomous",
"type": "frc971.autonomous.Goal",
- "logger": "NOT_LOGGED",
"source_node": "roborio"
},
{
"name": "/autonomous",
"type": "frc971.autonomous.AutonomousMode",
"source_node": "roborio",
- "logger": "NOT_LOGGED",
"frequency": 200
},
{
@@ -348,14 +314,12 @@
"type": "frc971.PDPValues",
"source_node": "roborio",
"frequency": 55,
- "logger": "NOT_LOGGED",
"max_size": 368
},
{
"name": "/roborio/aos",
"type": "frc971.wpilib.PneumaticsToLog",
"source_node": "roborio",
- "logger": "NOT_LOGGED",
"frequency": 50
}
],
@@ -428,7 +392,7 @@
{
"name": "logger",
"executable_name": "logger_main",
- "autostart": false,
+ "args": ["--snappy_compress"],
"nodes": [
"roborio"
]