mirror of
				https://github.com/open5gs/open5gs.git
				synced 2025-11-03 21:43:25 +00:00 
			
		
		
		
	[APP] Fix number of items of memory pool for subscriptions to NRF
The subscriptions to NRF should be tied to the number of NF's and number of services per NF that we support, instead of number of UE's. This decreases memory usage of each NF slightly, depending on the configuration.
This commit is contained in:
		
				
					committed by
					
						
						Sukchan Lee
					
				
			
			
				
	
			
			
			
						parent
						
							7580d3df16
						
					
				
				
					commit
					e55a87ec7d
				
			@@ -76,13 +76,13 @@ static void recalculate_pool_size(void)
 | 
			
		||||
    self.pool.message = self.max.ue * POOL_NUM_PER_UE;
 | 
			
		||||
    self.pool.event = self.max.ue * POOL_NUM_PER_UE;
 | 
			
		||||
    self.pool.socket = self.max.ue * POOL_NUM_PER_UE;
 | 
			
		||||
    self.pool.subscription = self.max.ue * POOL_NUM_PER_UE;
 | 
			
		||||
    self.pool.xact = self.max.ue * POOL_NUM_PER_UE;
 | 
			
		||||
    self.pool.stream = self.max.ue * POOL_NUM_PER_UE;
 | 
			
		||||
 | 
			
		||||
    self.pool.nf = self.max.peer;
 | 
			
		||||
#define NF_SERVICE_PER_NF_INSTANCE 16
 | 
			
		||||
    self.pool.nf_service = self.pool.nf * NF_SERVICE_PER_NF_INSTANCE;
 | 
			
		||||
    self.pool.subscription = self.pool.nf * NF_SERVICE_PER_NF_INSTANCE;
 | 
			
		||||
 | 
			
		||||
    self.pool.gtp_node = self.pool.nf;
 | 
			
		||||
    if (self.max.gtp_peer)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user