From: Robin Lee Powell Subject: Re: Re: [kvm] Re: Questions about duplicate memory work Date: Tue, 27 Sep 2011 01:48:43 -0700 Message-ID: <20110927084843.GB28218@stodi.digitalkingdom.org> References: <20110925044511.GI30419@stodi.digitalkingdom.org> <20110926071803.GE18099@stodi.digitalkingdom.org> <20110927073842.GY18099@stodi.digitalkingdom.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Emmanuel Noobadmin Return-path: Received: from 173-13-139-236-sfba.hfc.comcastbusiness.net ([173.13.139.236]:59390 "EHLO stodi.digitalkingdom.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752483Ab1I0Iso (ORCPT ); Tue, 27 Sep 2011 04:48:44 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Sep 27, 2011 at 04:41:33PM +0800, Emmanuel Noobadmin wrote: > On 9/27/11, Robin Lee Powell wrote: > > On Mon, Sep 26, 2011 at 04:15:37PM +0800, Emmanuel Noobadmin > > wrote: > >> It's unrelated to what you're actually using as the disks, > >> whether file or block devices like LVs. I think it just makes > >> KVM tell the host not to cache I/O done on the storage device. > > > > Wait, hold on, I think I had it backwards. > > > > It tells the *host* to not cache the device in question, or the > > *VMs* to not cache the device in question? > > I'm fairly certain it tells the qemu not to cache the device in > question. If you don't want the guest to cache their i/o, then the > guest OS should be configured if it allows that. Although I'm not > sure if it's possible to disable disk buffering/caching system > wide in Linux. OK, great, thanks. Now if I could just figure out how to stop the host from swapping out much of the VMs' qemu-kvm procs when it has almost a GiB of RAM left. -_- swappiness 0 doesn't seem to help there. -Robin