Re: high overhead of functions blkg_*stats_* in bfq
From: Paolo Valente <hidden>
Date: 2017-11-06 16:10:59
Il giorno 06 nov 2017, alle ore 17:03, Jens Axboe [off-list ref] ha =
scritto:
=20 On 11/06/2017 08:00 AM, Tejun Heo wrote:quoted
Hello, =20 On Sun, Nov 05, 2017 at 07:21:01PM -0700, Jens Axboe wrote:quoted
It's pointless to give up on this so soon, when no effort has =
apparently
quoted
quoted
been dedicated to figuring out what the actual issue is yet. So no, =
no
quoted
quoted
patch that will just disable the stats is going to be accepted. =20 That said, I have no idea who uses these stats. Surely someone can answer that question. Tejun?=20 Except for the basic bytes / ios counts, it's all debug fluff, which should have been hidden behind a debug boot param or go under =
debugfs.
quoted
I'm not sure we can get rid of them at this point for cfq but I don't see why we'd have them for bfq.=20 If that's the case, how about having some way to then turn it on and leave it off by default? The metrics could still be useful, and there's value in having them the same. But if the overhead is high AND there's no use case for it outside of debugging, it should not be on by default for neither cfq nor bfq. =20
Yes, these were exactly my motivations and plan for bfq! However, at this point, I think that Tejun's answer to my detailed question about what to keep and what not to keep may greatly help in two respects. First, to clarify the actual use of these files, second to understand the actual impact on performance. In fact, as I wrote in some of my previous emails in this thread, some functions are much heavier than others. Those to update debug stats seems to be the heaviest, and, fortunately, would be already behind the CONFIG_DEBUG_BLK_CGROUP option. Thanks, Paolo
--=20 Jens Axboe =20