fix(oci): limit Frigate's CPU by time instead of pinning it to threads

This commit is contained in:
MacRimi
2026-09-28 23:08:45 +02:00
parent eb869d1250
commit 72f77069ca
3 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -948,7 +948,8 @@
]
}
]
}
},
"cpu_allocation": "quota"
},
"image_channel_policy": {
"channel": "stable",
+2 -1
View File
@@ -948,7 +948,8 @@
]
}
]
}
},
"cpu_allocation": "quota"
},
"image_channel_policy": {
"channel": "stable",
+5
View File
@@ -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"))