From 72f77069caef0a42ce12b7ecc425d7aed612581e Mon Sep 17 00:00:00 2001 From: MacRimi Date: Mon, 28 Sep 2026 23:08:45 +0200 Subject: [PATCH] fix(oci): limit Frigate's CPU by time instead of pinning it to threads --- oci/catalog/apps/frigate.json | 3 ++- oci/catalog/curated/frigate.json | 3 ++- oci/tests/test_object_detector.py | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/oci/catalog/apps/frigate.json b/oci/catalog/apps/frigate.json index 56ebc6c9..6a28904d 100644 --- a/oci/catalog/apps/frigate.json +++ b/oci/catalog/apps/frigate.json @@ -948,7 +948,8 @@ ] } ] - } + }, + "cpu_allocation": "quota" }, "image_channel_policy": { "channel": "stable", diff --git a/oci/catalog/curated/frigate.json b/oci/catalog/curated/frigate.json index a937bbe1..11d8bbe4 100644 --- a/oci/catalog/curated/frigate.json +++ b/oci/catalog/curated/frigate.json @@ -948,7 +948,8 @@ ] } ] - } + }, + "cpu_allocation": "quota" }, "image_channel_policy": { "channel": "stable", diff --git a/oci/tests/test_object_detector.py b/oci/tests/test_object_detector.py index fd8b8b46..a6fed33a 100644 --- a/oci/tests/test_object_detector.py +++ b/oci/tests/test_object_detector.py @@ -77,6 +77,11 @@ class ObjectDetectorTests(unittest.TestCase): self.assertEqual(configure_detector({}, [], ui, self.host(["/dev/apex_0"])), ([], [])) ui.choose.assert_not_called() + def test_frigate_cpu_is_limited_by_time_not_pinned(self): + # OpenVINO's CPU plugin aborts on some AMD CPUs when the container is + # pinned to a few threads while /sys shows them all. + self.assertEqual(PROFILE["cpu_allocation"], "quota") + def test_npu_node_is_a_supported_device_for_updates_and_adoption(self): self.assertTrue(oci_gpu_devices.peripheral_path("/dev/accel/accel0")) self.assertFalse(oci_gpu_devices.peripheral_path("/dev/accel/accel"))