Home » Community » U++ community news and announcements » Core 2019  
	
		
		
			| Re: Core 2019 [message #51931 is a reply to message #51925] | 
			Fri, 21 June 2019 17:59    | 
		 
		
			
				
				
				
					
						  
						Novo
						 Messages: 1430 Registered: December 2006 
						
					 | 
					Ultimate Contributor  | 
					 | 
		 
		 
	 | 
 
	
		mirek wrote on Fri, 21 June 2019 03:16 
Now what is different is that standard GCC allocator has thershold at 4MB. U++ allocatar at 224MB. In practive, this means that if you alloc / free 5MB block in std, it gets released back to system immediately. With U++, blocks up to 224 MB are not returned to the system immediately. If they are really unused, this just means that system will retrieve them when there is a need for more physical memory. 
 
Mirek 
  
This info doesn't match what I'm reading in the docs I posted above. 
 
              The lower limit for this parameter is 0.  The upper limit is
              DEFAULT_MMAP_THRESHOLD_MAX: 512*1024 on 32-bit systems or
              4*1024*1024*sizeof(long) on 64-bit systems.
              Note: Nowadays, glibc uses a dynamic mmap threshold by
              default.  The initial value of the threshold is 128*1024, but
              when blocks larger than the current threshold and less than or
              equal to DEFAULT_MMAP_THRESHOLD_MAX are freed, the threshold
              is adjusted upward to the size of the freed block.  When
              dynamic mmap thresholding is in effect, the threshold for
              trimming the heap is also dynamically adjusted to be twice the
              dynamic mmap threshold.  Dynamic adjustment of the mmap
              threshold is disabled if any of the M_TRIM_THRESHOLD,
              M_TOP_PAD, M_MMAP_THRESHOLD, or M_MMAP_MAX parameters is set.
 
So, the old allocator on 64-bit systems had threshold 32Mb (4*1024*1024*sizeof(long)). 
In the new one it is determined dynamically. Initial value is 128Kb. 
 
I traced my app with a tool which intercepts all malloc/free calls. I know exactly what is stressing the allocator    
Memory block sizes: 
 
		
		
  Regards, 
Novo
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
	
	  | 
	 | 
	
		Core 2019
		By:  mirek on Fri, 07 June 2019 13:56  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Fri, 07 June 2019 17:51  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Fri, 07 June 2019 18:01  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Fri, 07 June 2019 23:00  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sat, 08 June 2019 18:30  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sat, 08 June 2019 18:40  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sat, 08 June 2019 19:44  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sat, 08 June 2019 20:38  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sat, 08 June 2019 21:45  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sat, 08 June 2019 21:42  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sat, 08 June 2019 18:31  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sat, 08 June 2019 21:54  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sat, 08 June 2019 22:06  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sun, 09 June 2019 10:03  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sun, 09 June 2019 15:20  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sun, 09 June 2019 16:33  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sun, 09 June 2019 16:43  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sun, 09 June 2019 17:34  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sun, 09 June 2019 18:54  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sun, 09 June 2019 21:39  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sun, 09 June 2019 23:11  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sun, 09 June 2019 23:25  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Mon, 10 June 2019 17:27  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Mon, 10 June 2019 18:01  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Mon, 10 June 2019 18:17  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Mon, 10 June 2019 18:21  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Mon, 10 June 2019 18:45  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Mon, 10 June 2019 18:18  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Mon, 10 June 2019 18:34  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sun, 09 June 2019 17:02  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sun, 09 June 2019 17:15  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sun, 09 June 2019 20:56  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sun, 09 June 2019 18:51  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Fri, 21 June 2019 05:43  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Fri, 21 June 2019 06:14  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Fri, 21 June 2019 09:16  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Fri, 21 June 2019 09:23  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Fri, 21 June 2019 19:58  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Fri, 21 June 2019 20:28  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sat, 22 June 2019 02:51  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sat, 22 June 2019 02:53  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sat, 22 June 2019 10:23  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sat, 22 June 2019 17:49  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sat, 22 June 2019 22:22  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sat, 22 June 2019 23:44  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sun, 23 June 2019 08:21  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sun, 23 June 2019 21:26  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Mon, 24 June 2019 09:22  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Mon, 24 June 2019 17:36  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Mon, 24 June 2019 18:42  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Mon, 24 June 2019 19:36  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Mon, 24 June 2019 20:15  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sun, 23 June 2019 09:55  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sun, 23 June 2019 10:19  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Mon, 24 June 2019 06:13  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Wed, 26 June 2019 08:52  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Thu, 27 June 2019 09:44  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Fri, 28 June 2019 09:09  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Tom1 on Fri, 28 June 2019 16:56  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Fri, 28 June 2019 17:30  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Fri, 28 June 2019 17:31  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Fri, 28 June 2019 17:40  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Tom1 on Fri, 28 June 2019 18:38  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sun, 30 June 2019 19:02  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Sun, 30 June 2019 19:11  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Sun, 30 June 2019 20:12  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Mon, 01 July 2019 00:03  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Tom1 on Mon, 01 July 2019 09:14  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Thu, 11 July 2019 19:55  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Thu, 11 July 2019 20:14  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Thu, 11 July 2019 20:53  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Fri, 12 July 2019 10:09  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Fri, 12 July 2019 16:50  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Thu, 08 August 2019 21:47  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Thu, 08 August 2019 22:47  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Thu, 08 August 2019 22:53  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Thu, 08 August 2019 22:59  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Thu, 08 August 2019 23:30  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  mirek on Fri, 09 August 2019 00:05  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Fri, 21 June 2019 17:59  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Fri, 21 June 2019 18:01  
	 | 
 
	  | 
	 | 
	
		Re: Core 2019
		By:  Novo on Fri, 21 June 2019 18:10  
	 | 
  
Goto Forum:
 
 Current Time: Tue Nov 04 06:55:22 CET 2025 
 Total time taken to generate the page: 0.00675 seconds 
 |