[Devel] [PATCH libvzctl v2] scripts: vz_ -- Checkpoint and restore AIO staistics

Igor Sukhih igor at virtuozzo.com
Sun Apr 10 23:39:18 PDT 2016


On 04/09/2016 07:35 PM, Cyrill Gorcunov wrote:
> To checkpoint and restore fs.aio-max-nr sysctl entry.
>
> https://jira.sw.ru/browse/PSBM-45644
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>   scripts/vz-cpt.in        | 2 ++
>   scripts/vz-rst-action.in | 1 +
>   scripts/vz-rst.in        | 1 +
>   3 files changed, 4 insertions(+)
>
> diff --git a/scripts/vz-cpt.in b/scripts/vz-cpt.in
> index 8ecb33b..08ae911 100755
> --- a/scripts/vz-cpt.in
> +++ b/scripts/vz-cpt.in
> @@ -50,6 +50,8 @@ function cg_dump_props {
>   		# Save monotonic offsets for next restore
>   		cgget -n -v -r ve.clock_bootbased $VEID > $1/vz_clock_bootbased.img
>   		cgget -n -v -r ve.clock_monotonic $VEID > $1/vz_clock_monotonic.img
> +		# AIO statistics
> +		cgget -n -v -r ve.aio_max_nr $VEID > $1/vz_aio_max_nr.img

cgget -n -v -r ve.aio_max_nr 1024
cgget: cannot read group '1024': Cgroup does not exist



More information about the Devel mailing list