Re: Allocating dedicated RAM to host that guest can not use

From: mad Engineer
Date: Thu Nov 27 2014 - 07:16:11 EST


a random thought can we set qemu user/group rss to a particular hard
limit in limits.conf

Can this work?

On Thu, Nov 27, 2014 at 5:39 PM, mad Engineer <themadengin33r@xxxxxxxxx> wrote:
> never tried that.
> can we do that transparently ie with out setting cgroups for each
> virtul machines?.
> A global group such that all combined virtual machines RAM utilization
> to be with in a specific value ?
>
> On Thu, Nov 27, 2014 at 4:59 PM, Wanpeng Li <wanpeng.li@xxxxxxxxxxxxxxx> wrote:
>> On Thu, Nov 27, 2014 at 05:12:52PM +0530, mad Engineer wrote:
>>>Hi,
>>> Is there any way to set some RAM dedicated to host that guest can
>>>not access?
>>>Similar to setting RAM to Dom0 in Xen.
>>>
>>>I am over committing RAM for the instances but don't want host to swap.
>>>
>>>i understand that virtual machines are process,but can we achieve this
>>
>> How about limit the memory of which guest can access through memory cgroup?
>>
>> Regards,
>> Wanpeng Li
>>
>>>
>>>Thanks
>>>--
>>>To unsubscribe from this list: send the line "unsubscribe kvm" in
>>>the body of a message to majordomo@xxxxxxxxxxxxxxx
>>>More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/