From 6f294856f2ee7dbe625252172d4b6115714a53de Mon Sep 17 00:00:00 2001 From: Paul Swenson <1937248+pdscomp@users.noreply.github.com> Date: Mon, 20 Jul 2026 14:04:12 -0400 Subject: [PATCH 1/2] python: omit fine-grained debug ranges --- meta-opencentauri/recipes-apps/klipper/files/klipper-init-d | 2 +- meta-opencentauri/recipes-apps/moonraker/files/moonraker-init-d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-opencentauri/recipes-apps/klipper/files/klipper-init-d b/meta-opencentauri/recipes-apps/klipper/files/klipper-init-d index 5d0bc2e9..9ad7c1ab 100644 --- a/meta-opencentauri/recipes-apps/klipper/files/klipper-init-d +++ b/meta-opencentauri/recipes-apps/klipper/files/klipper-init-d @@ -10,7 +10,7 @@ KLIPPY_EXEC="/usr/bin/python3" KLIPPER_PRINTER_CONFIG="/etc/klipper/config/printer.cfg" -KLIPPY_ARGS="-O /usr/share/klipper/klippy/klippy.py $KLIPPER_PRINTER_CONFIG -l /board-resource/klippy.log -a /run/klippy.sock" +KLIPPY_ARGS="-O -X no_debug_ranges /usr/share/klipper/klippy/klippy.py $KLIPPER_PRINTER_CONFIG -l /board-resource/klippy.log -a /run/klippy.sock" PIDFILE="/var/run/klipper.pid" KLIPPER_VAR_CONFIG_BUILDER="/usr/bin/build-klipper-var-config" KLIPPER_CONFIG_VERSION="0.0.8-2" diff --git a/meta-opencentauri/recipes-apps/moonraker/files/moonraker-init-d b/meta-opencentauri/recipes-apps/moonraker/files/moonraker-init-d index 73ef744e..d2a929e1 100644 --- a/meta-opencentauri/recipes-apps/moonraker/files/moonraker-init-d +++ b/meta-opencentauri/recipes-apps/moonraker/files/moonraker-init-d @@ -9,7 +9,7 @@ ### END INIT INFO MOONRAKER_EXEC="/usr/bin/python3" -MOONRAKER_ARGS="-m moonraker.moonraker -d /etc/klipper -l /board-resource/moonraker.log -u /run/moonraker.sock" +MOONRAKER_ARGS="-X no_debug_ranges -m moonraker.moonraker -d /etc/klipper -l /board-resource/moonraker.log -u /run/moonraker.sock" PIDFILE="/var/run/moonraker.pid" export PYTHONPATH="/usr/share/moonraker" From 8c7411117fcf2c4e468e2df41a0e2836e7c22124 Mon Sep 17 00:00:00 2001 From: Paul Swenson <1937248+pdscomp@users.noreply.github.com> Date: Mon, 27 Jul 2026 08:27:44 -0400 Subject: [PATCH 2/2] python: drop -O from klippy service launch Benchmarked on carbon2u (CC1, 128 MiB), 5 reboots per variant, 120 s settle, RSS/PSS from smaps_rollup. Like-for-like runs with no swap pressure show -O costs klippy ~1.1 MiB RSS / ~1.2 MiB PSS rather than saving memory; Moonraker showed the same regression (+1.5/+2.2 MiB) and its -O was already rejected. no_debug_ranges stays on both. --- meta-opencentauri/recipes-apps/klipper/files/klipper-init-d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-opencentauri/recipes-apps/klipper/files/klipper-init-d b/meta-opencentauri/recipes-apps/klipper/files/klipper-init-d index 9ad7c1ab..6b483e07 100644 --- a/meta-opencentauri/recipes-apps/klipper/files/klipper-init-d +++ b/meta-opencentauri/recipes-apps/klipper/files/klipper-init-d @@ -10,7 +10,7 @@ KLIPPY_EXEC="/usr/bin/python3" KLIPPER_PRINTER_CONFIG="/etc/klipper/config/printer.cfg" -KLIPPY_ARGS="-O -X no_debug_ranges /usr/share/klipper/klippy/klippy.py $KLIPPER_PRINTER_CONFIG -l /board-resource/klippy.log -a /run/klippy.sock" +KLIPPY_ARGS="-X no_debug_ranges /usr/share/klipper/klippy/klippy.py $KLIPPER_PRINTER_CONFIG -l /board-resource/klippy.log -a /run/klippy.sock" PIDFILE="/var/run/klipper.pid" KLIPPER_VAR_CONFIG_BUILDER="/usr/bin/build-klipper-var-config" KLIPPER_CONFIG_VERSION="0.0.8-2"