OpenVZ Forum


Home » General » Support » Bug (?): vzcfgvalidate not working
Re: Bug (?): vzcfgvalidate not working [message #37293 is a reply to message #37290] Tue, 01 September 2009 10:35 Go to previous message
divB is currently offline  divB
Messages: 79
Registered: April 2009
Member
And it's me again.

Yes, I think setting all the UBC values on ones own is too complex except for fine tuning/special purposes.

I found a manual for Virtuozzo called "Virtuozzo Management of System Resources". This original manual from SW states:

Quote:
The best and easiest way to configure resource management parameters for a new Virtual Environment is to produce the configuration at once, using commands operating with the configuration as a whole, rather than to set the parameters individually


The manual described to:


  1. Split the hardware resources with vzsplit
  2. Validate the config with vzcfgvalidate
  3. If there are more and less powerful VEs on a single node, use vzcfgscale to scale up or down the configs
  4. Apply them using vzctl --applyconfig
  5. Check usage with vzcalc on per-machine basis and vzmemcheck for the system as a whole


That sounds nicer to me. Unfortunately vzcfgscale is not included in OpenVZ. However, I used the following way to partitionate my resources:



  • I have 1 GB of RAM and 4 GB of swap and have 8 VEs
  • I use vzsplit -s "2 GB" -n 8 -f hn-by-10 to produce a config for 8 VEs. This way I have 2 GB of swap in spare.
  • Validate with vzcfgvalidate. No errors/warnings found
  • Apply to my VEs with vzctl --applyconfig


Now this is my memory map:
# vzmemcheck -v
Output values in %
veid        LowMem  LowMem     RAM MemSwap MemSwap   Alloc   Alloc   Alloc
              util  commit    util    util  commit    util  commit   limit
400           1.73   13.12   11.84    2.69    8.45    7.62    8.45   15.83
302           0.64   13.12    6.45    1.54    8.45    2.59    8.45   15.83
301           1.18   13.12    7.64    2.50    8.45    2.71    8.45   15.83
300           0.28   13.12    0.40    0.10    8.45    0.56    8.45   15.83
202           0.32   13.12    0.47    0.13    8.45    0.29    8.45   15.83
201           0.93   13.12    1.30    0.32    8.45    8.32    8.45   15.83
200           1.99   13.12    8.58    1.95    8.45    7.41    8.45   15.83
-------------------------------------------------------------------------
Summary:      7.06   91.87   36.69    9.23   59.14   29.49   59.14  110.83


So I guess I have much resources for spare in case I want to scale up one of the VEs. I this case I would try to manually scale down the less power-VEs and scale up the powerful ones using the forumula in http://wiki.openvz.org/Intermediate_UBC_configurations.

I think this is the way to go rather than setting all the parameters on ones own.

What is your opinion?

divB
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Question about vzdump restore
Next Topic: sock_sendpage() kernel vulnerability
Goto Forum:
  


Current Time: Sun Jul 14 16:43:30 GMT 2024

Total time taken to generate the page: 0.02252 seconds