From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robin Lee Powell Subject: Questions about duplicate memory work Date: Sat, 24 Sep 2011 21:45:12 -0700 Message-ID: <20110925044511.GI30419@stodi.digitalkingdom.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: kvm@vger.kernel.org Return-path: Received: from 173-13-139-236-sfba.hfc.comcastbusiness.net ([173.13.139.236]:41445 "EHLO stodi.digitalkingdom.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751030Ab1IYFxk (ORCPT ); Sun, 25 Sep 2011 01:53:40 -0400 Received: from rlpowell by stodi.digitalkingdom.org with local (Exim 4.76) (envelope-from ) id 1R7gaW-0000dX-8h for kvm@vger.kernel.org; Sat, 24 Sep 2011 21:45:12 -0700 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: OK, so I've got a Linux host, and a bunch of Linux VMs. This means that the host *and* all tho VMs do their own disk caches/buffers and do their own swap as well. That seems like a horrible duplication of effort, and likely to result in performance problems. I'm very annoyed by seeing the *master* swapping out portions of the VM's qemu-kvm procs; that just seems like a really bad idea. Are there preferred solutions here? I've considered turning off swap on the VMs so all the swapping at least happens in *one place*; I dunno if that's best. What I'd love is for the master to not swap or do disk buffering/caching, so all the RAM management is at the VM level, but I bet it's not really possible to do that. -Robin