提交 70345318 编写于 作者: E Eric Blake

maint: fix comment typo

While OOM can have knock-on effects that trash a system, generally
the first symptom is one of memory thrashing.

* src/qemu/qemu_cgroup.c (qemuSetupCgroup): Reword slightly.
上级 7cc522be
/* /*
* qemu_cgroup.c: QEMU cgroup management * qemu_cgroup.c: QEMU cgroup management
* *
* Copyright (C) 2006-2012 Red Hat, Inc. * Copyright (C) 2006-2013 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange * Copyright (C) 2006 Daniel P. Berrange
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
...@@ -344,8 +344,8 @@ int qemuSetupCgroup(virQEMUDriverPtr driver, ...@@ -344,8 +344,8 @@ int qemuSetupCgroup(virQEMUDriverPtr driver,
if (!hard_limit) { if (!hard_limit) {
/* If there is no hard_limit set, set a reasonable one to avoid /* If there is no hard_limit set, set a reasonable one to avoid
* system trashing caused by exploited qemu. As 'reasonable limit' * system thrashing caused by exploited qemu. A 'reasonable
* has been chosen: * limit' has been chosen:
* (1 + k) * (domain memory + total video memory) + (32MB for * (1 + k) * (domain memory + total video memory) + (32MB for
* cache per each disk) + F * cache per each disk) + F
* where k = 0.5 and F = 200MB. The cache for disks is important as * where k = 0.5 and F = 200MB. The cache for disks is important as
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册