Re: [PATCH 0/3] Fix blkparse and iowatcher for kernels >= 4.14

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed 06-05-20 07:42:51, Christoph Hellwig wrote:
> On Wed, May 06, 2020 at 03:39:30PM +0200, Jan Kara wrote:
> > I was investigating a performance issue with BFQ IO scheduler and I was
> > pondering why I'm not seeing informational messages from BFQ. After quite
> > some debugging I have found out that commit 35fe6d763229 "block: use
> > standard blktrace API to output cgroup info for debug notes" broke standard
> > blktrace API - namely the informational messages logged by bfq_log_bfqq()
> > are no longer displayed by blkparse(8) tool. This is because these messages
> > have now __BLK_TA_CGROUP bit set and that breaks flags checking in
> > blkparse(1) and iowatcher(1). This series fixes both tools to be able to
> > cope with events with __BLK_TA_CGROUP flag set.
> 
> I'd much rather revert a kernel change that breaks frequently used
> userspace.

We've discussed it [1]. The commit was merged in 4.14 which shows that the
breakage is not that severe as nobody noticed until now. Actually I did
some more digging in history now and until commit 743210386c "cgroup: use
cgrp->kn->id as the cgroup ID" from last November the breakage was only
visible if you had CONFIG_BLK_CGROUP enabled and had bio with bi_blkcg set
or trace note messages for non-trivial cgroups (effectively only BFQ
informational messages). After that commit trace note messages are broken
whenever you have CONFIG_BLK_CGROUP. So the reason why nobody noticed is
probably because until 5.5 the breakage was actually difficult to hit.

So I'm undecided whether at this point it's better to revert the original
commit (as likely there is other tooling that depends on this info), just
fix the fact that since commit 743210386c all trace note messages will have
non-empty cgroup info, or just fixup blkparse and move on...

								Honza

[1] https://lore.kernel.org/r/20200430114711.GA6576@xxxxxxxxxxxxxx

-- 
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux