package/connman: add an option to disable stats generation
PATCH 1/1 package/connman: add an option to disable stats generation
By default connman periodically saves network interface statistics into an mmap'd round robin file. These are not accessible over the D-Bus interface and the only method to interact with this is ResetCounters() which is marked as experimental.
Continually writing statistics will increase drive wear and may not be desirable in some devices with limited flash erase cycles, so add an option to disable this. Statistics are enabled by default to avoid changing the behaviour of existing configs.
Note that connman does not provide any runtime control over this facility, it can only be disabled via the configure script.
--- package/connman/Config.in | 9 +++++++++ package/connman/connman.mk | 6 ++++++ 2 files changed, 15 insertions(+)
package/connman/Config.in +9 -0
@@ -94,6 +94,15 @@ comment "ofono support needs a toolchain w/ headers >= 4.12" config BR2_PACKAGE_CONNMAN_DEBUG bool "enable compiling with debugging information" +config BR2_PACKAGE_CONNMAN_STATS + bool "enable statistics round robin file generation" + default y + help + Enable generation of statistics in a round robin file. + + This is enabled by default upstream but is marked as + experimental. + config BR2_PACKAGE_CONNMAN_CLIENT bool "enable command line client" select BR2_PACKAGE_READLINE
package/connman/connman.mk +6 -0
@@ -65,6 +65,12 @@ else CONNMAN_CONF_OPTS += --disable-ofono endif +ifeq ($(BR2_PACKAGE_CONNMAN_STATS),y) +CONNMAN_CONF_OPTS += --enable-stats +else +CONNMAN_CONF_OPTS += --disable-stats +endif + ifeq ($(BR2_PACKAGE_CONNMAN_WIFI),y) CONNMAN_CONF_OPTS += --enable-wifi else
Signature · 6 lines
2.37.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines · On Thu, 28 Jul 2022 18:50:36 +0100 John Keeping <[email protected]> wrote:
By default connman periodically saves network interface statistics into an mmap'd round robin file. These are not accessible over the D-Bus interface and the only method to interact with this is
ResetCounters()which is marked as experimental.Continually writing statistics will increase drive wear and may not be desirable in some devices with limited flash erase cycles, so add an option to disable this. Statistics are enabled by default to avoid changing the behaviour of existing configs.
Based on this description, I have chosen to not make it "default y". It is unlikely that it is useful to anybody, and seems potentially problematic.
So applied, after removing the "default y".
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"John" == John Keeping <[email protected]> writes:
By default connman periodically saves network interface statistics into an mmap'd round robin file. These are not accessible over the D-Bus interface and the only method to interact with this is
ResetCounters()which is marked as experimental.Continually writing statistics will increase drive wear and may not be desirable in some devices with limited flash erase cycles, so add an option to disable this. Statistics are enabled by default to avoid changing the behaviour of existing configs.
Quoted 4 lines
Note that connman does not provide any runtime control over this facility, it can only be disabled via the configure script.
Signed-off-by John Keeping <[email protected]>
Committed to 2022.05.x and 2022.02.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot