From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: how to drop cache of guest os? Date: Mon, 26 Jul 2010 19:17:49 +0300 Message-ID: <4C4DB52D.8000103@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: "Gu, Zhongshu" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:58426 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752245Ab0GZQRx (ORCPT ); Mon, 26 Jul 2010 12:17:53 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 07/26/2010 07:15 PM, Gu, Zhongshu wrote: > Hi all: > Is there any possibility to drop caches of guest os from vmm > level. We know that in linux, we can echo 3 to > /proc/sys/vm/drop_caches to do this work. Can we controlled it thru > kvm to drop the cached pages? ssh guest bash -c 'echo 3 > proc/sys/vm/drop_caches' -- error compiling committee.c: too many arguments to function