mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Docs: Fix broken shm calculation (#16755)
* Docs: Fix broken shm calculation * Docs: Change wording of shm template
This commit is contained in:
		
							parent
							
								
									202b9d1c79
								
							
						
					
					
						commit
						04a718dda8
					
				@ -80,12 +80,12 @@ The Frigate container also stores logs in shm, which can take up to **40MB**, so
 | 
			
		||||
You can calculate the **minimum** shm size for each camera with the following formula using the resolution specified for detect:
 | 
			
		||||
 | 
			
		||||
```console
 | 
			
		||||
# Replace <width> and <height>
 | 
			
		||||
# Template for one camera without logs, replace <width> and <height>
 | 
			
		||||
$ python -c 'print("{:.2f}MB".format((<width> * <height> * 1.5 * 20 + 270480) / 1048576))'
 | 
			
		||||
 | 
			
		||||
# Example for 1280x720, including logs
 | 
			
		||||
$ python -c 'print("{:.2f}MB".format((1280 * 720 * 1.5 * 20 + 270480) / 1048576)) + 40'
 | 
			
		||||
46.63MB
 | 
			
		||||
$ python -c 'print("{:.2f}MB".format((1280 * 720 * 1.5 * 20 + 270480) / 1048576 + 40))'
 | 
			
		||||
66.63MB
 | 
			
		||||
 | 
			
		||||
# Example for eight cameras detecting at 1280x720, including logs
 | 
			
		||||
$ python -c 'print("{:.2f}MB".format(((1280 * 720 * 1.5 * 20 + 270480) / 1048576) * 8 + 40))'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user