[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LRH.2.02.2207111627260.5249@file01.intranet.prod.int.rdu2.redhat.com>
Date: Mon, 11 Jul 2022 16:29:45 -0400 (EDT)
From: Mikulas Patocka <mpatocka@...hat.com>
To: Yu Kuai <yukuai1@...weicloud.com>,
Mike Snitzer <msnitzer@...hat.com>
cc: agk@...hat.com, dm-devel@...hat.com, linux-kernel@...r.kernel.org,
yukuai3@...wei.com, yi.zhang@...wei.com
Subject: Re: [PATCH] dm writecache: fix inaccurate reads/writes stats
On Wed, 6 Jul 2022, Yu Kuai wrote:
> From: Yu Kuai <yukuai3@...wei.com>
>
> Test procedures:
>
> 1) format a dm writecache device with 4k blocksize.
> 2) flush cache.
> 3) cache 1G data through write.
> 4) clear stats.
> 5) read 2G data with bs=1m.
> 6) read stats.
>
> Expected result:
> cache hit ratio is 50%.
>
> Test result:
> stats: 0, 1011345, 749201, 0, 263168, 262144, 0, 0, 0, 0, 0, 0, 0, 0
> ratio is 99% (262144/263168)
Hi
Here I'm providing patches that change the dm-writecache counting from
requests to blocks.
Mike, you can queue them for the next merge window.
Mikulas
Powered by blists - more mailing lists