From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 30 May 2014 15:26:02 +0100 From: "Richard W.M. Jones" Message-ID: <20140530142602.GN1302@redhat.com> References: <20140529135246.GA31293@redhat.com> <20140529203410.GG1954@redhat.com> <20140529204719.GD1302@redhat.com> <20140529210648.GA3955@redhat.com> <20140529211955.GE1302@redhat.com> <20140529215815.GA4183@redhat.com> <20140530090422.GB31293@redhat.com> <20140530133814.GB8830@redhat.com> <20140530134642.GL1302@redhat.com> <53888DA9.6090003@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <53888DA9.6090003@redhat.com> Subject: Re: [linux-lvm] Testing the new LVM cache feature Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Heinz Mauelshagen Cc: Zdenek Kabelac , thornber@redhat.com, Mike Snitzer , LVM general discussion and development On Fri, May 30, 2014 at 03:54:49PM +0200, Heinz Mauelshagen wrote: > On 05/30/2014 03:46 PM, Richard W.M. Jones wrote: > >I have now set both read_promote_adjustment == > >write_promote_adjustment == 0 and used drop_caches between runs. > > Did you adjust "sequential_threshold 0" as well? > > dm-cache tries to avoid promoting large sequential files to the cache, > because spindles have good bandwidth. > > This is again because of the hot spot caching nature of dm-cache. Setting this had no effect. I starting to wonder if my settings are having any effect at all. Here are the device-mapper tables: $ sudo dmsetup table vg_guests-lv_cache_cdata: 0 419430400 linear 8:33 2099200 vg_guests-lv_cache_cmeta: 0 2097152 linear 8:33 2048 vg_guests-home: 0 209715200 linear 9:127 2048 vg_guests-libvirt--images: 0 1677721600 cache 253:1 253:0 253:2 128 0 default 0 vg_guests-libvirt--images_corig: 0 1677721600 linear 9:127 2055211008 And here is the command I used to set sequential_threshold to 0 (there was no error and no other output): $ sudo dmsetup message vg_guests-libvirt--images 0 sequential_threshold 0 Is there a way to print the current settings? Could writethrough be enabled? (I'm supposed to be using writeback). How do I find out? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top