Table of content

www.kudos.be

Jan-07 - vSwap enabled containers

Created Wednesday 07 January 2015

After dragging my feet for a long time I decided to convert my running OpenVZ containers to the newer VSwap enabled scheme. Using VSwap makes the management and tracking of the old user beancounters a whole lot easier:

  • Only the RAM and Swap parameters are mandatory in any container's configuration
  • Previous beancounters (container parameters) remain usable but are optional

Unfortunately the VSwap schema breaks the vzmemcheck utility as most its output is now complete unusable due to its many decimals introduced into its memory counters. A more modest AWK script called vzoversell tries to close that gap, e.g.:

		--------- RAM ---------  -------- Swap ---------  Flags                                                                    
		used  peak limit fails   used  peak limit fails                                                                           
	   102  980M    1G    1G    -    275M  276M    1G    -                                                                            
	   104  345M  511M  512M    -   14.1M 16.1M    1G    -                                                                            
	   108  210M  255M  256M    -    124K  516K  512M    -                                                                            
	   224  216M  242M  256M    -      -     -   512M    -                                                                            
	   222   86M  128M  128M    -   24.1M 25.7M  256M    -                                                                            
	   106 22.3M 26.6M  128M    -      -     -   256M    -                                                                            
	   103  136M  179M  256M    -      -     -   512M    -                                                                            
	   101  107M  152M  256M    -      -     -   512M    -                                                                            
	   105 97.1M  384M  128M    -   47.2M 53.4M  256M    -                                                                            
		   ----- ----- ----- -----  ----- ----- ----- -----                                                                           
 TOTAL     2.15G 2.84G 2.88G    -    361M  371M 4.75G    -                                                                            
																																	  
RAM        available: 7.67G  allocated: 2.88G  oversell: 37%                                                                          
Swap       available: 7.81G  allocated: 4.75G  oversell: 60%                                                                          
RAM+Swap   available: 15.5G  allocated: 7.62G  oversell: 49%

The Flags field indicate whether any resource violations have occurred inside the respective container.




Backlinks: Journal:2015