File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 162
162
"reindexingEmbeddings" : " Reindexing embeddings ({{processed}}% complete)" ,
163
163
"cameraIsOffline" : " {{camera}} is offline" ,
164
164
"detectIsSlow" : " {{detect}} is slow ({{speed}} ms)" ,
165
- "detectIsVerySlow" : " {{detect}} is very slow ({{speed}} ms)"
165
+ "detectIsVerySlow" : " {{detect}} is very slow ({{speed}} ms)" ,
166
+ "shmTooLow" : " /dev/shm allocation ({{total}} MB) should be increased to at least {{min}} MB."
166
167
},
167
168
"enrichments" : {
168
169
"title" : " Enrichments" ,
Original file line number Diff line number Diff line change @@ -32,6 +32,19 @@ export default function useStats(stats: FrigateStats | undefined) {
32
32
return problems ;
33
33
}
34
34
35
+ // check shm level
36
+ const shm = memoizedStats . service . storage [ "/dev/shm" ] ;
37
+ if ( shm ?. total && shm ?. min_shm && shm . total < shm . min_shm ) {
38
+ problems . push ( {
39
+ text : t ( "stats.shmTooLow" , {
40
+ total : shm . total ,
41
+ min : shm . min_shm ,
42
+ } ) ,
43
+ color : "text-danger" ,
44
+ relevantLink : "/system#storage" ,
45
+ } ) ;
46
+ }
47
+
35
48
// check detectors for high inference speeds
36
49
Object . entries ( memoizedStats [ "detectors" ] ) . forEach ( ( [ key , det ] ) => {
37
50
if ( det [ "inference_speed" ] > InferenceThreshold . error ) {
You can’t perform that action at this time.
0 commit comments