Bug (?): vzcfgvalidate not working [message #37257] |
Sat, 29 August 2009 16:18 |
divB
Messages: 79 Registered: April 2009
|
Member |
|
|
Hi,
I want to validate the configuration of my VEs and apply all recommended changes. But this does not seem to work (almost with all my VEs):
# vzcfgvalidate -r /etc/vz/conf/400.conf
Warning: too large value for TCPSNDBUF=2720320:2150201408 was truncated
Warning: too large value for TCPRCVBUF=1720320:2149201408 was truncated
Warning: too large value for OTHERSOCKBUF=2147483647:2148405247 was truncated
Error: tcpsndbuf.lim-tcpsndbuf.bar should be > 2147481088 (currently, 2144763327)
set to 2720320:2150201408
Error: othersockbuf.lim-othersockbuf.bar should be > 921600 (currently, 0)
set to 2147483647:2148405247
Warning: tcprcvbuf.lim-tcprcvbuf.bar should be > 2147481088 (currently, 2145763327)
set to 1720320:2149201408
Warning: too large value for TCPSNDBUF=2720320:2150201408 was truncated
Warning: too large value for TCPRCVBUF=1720320:2149201408 was truncated
Warning: too large value for OTHERSOCKBUF=2147483647:2148405247 was truncated
Validation completed: success
# vzcfgvalidate -r /etc/vz/conf/400.conf
Warning: too large value for TCPSNDBUF=2720320:2150201408 was truncated
Warning: too large value for TCPRCVBUF=1720320:2149201408 was truncated
Warning: too large value for OTHERSOCKBUF=2147483647:2148405247 was truncated
Error: tcpsndbuf.lim-tcpsndbuf.bar should be > 2147481088 (currently, 2144763327)
set to 2720320:2150201408
Error: othersockbuf.lim-othersockbuf.bar should be > 921600 (currently, 0)
set to 2147483647:2148405247
Warning: tcprcvbuf.lim-tcprcvbuf.bar should be > 2147481088 (currently, 2145763327)
set to 1720320:2149201408
Warning: too large value for TCPSNDBUF=2720320:2150201408 was truncated
Warning: too large value for TCPRCVBUF=1720320:2149201408 was truncated
Warning: too large value for OTHERSOCKBUF=2147483647:2148405247 was truncated
Validation completed: success
#
As you can see, I the settings are not saved/repaired. I can call the command as often as I want, there are no changes.
Instead, I get error messages with the VE:
# vzctl enter 400
Warning: too large value for TCPSNDBUF=2720320:2150201408 was truncated
Warning: too large value for TCPRCVBUF=1720320:2149201408 was truncated
Warning: too large value for OTHERSOCKBUF=2147483647:2148405247 was truncated
entered into VE 400
VE400:/#
Am I missing something here or is this a bug?
Best regards,
divB
|
|
|
|
|
|
Re: Bug (?): vzcfgvalidate not working [message #37293 is a reply to message #37290] |
Tue, 01 September 2009 10:35 |
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:
- Split the hardware resources with vzsplit
- Validate the config with vzcfgvalidate
- If there are more and less powerful VEs on a single node, use vzcfgscale to scale up or down the configs
- Apply them using vzctl --applyconfig
- 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
|
|
|