From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49E3EC43331 for ; Thu, 26 Mar 2020 13:54:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1C79C206E6 for ; Thu, 26 Mar 2020 13:54:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Myq9bnUe" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727695AbgCZNyF (ORCPT ); Thu, 26 Mar 2020 09:54:05 -0400 Received: from mail-qk1-f178.google.com ([209.85.222.178]:40135 "EHLO mail-qk1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727612AbgCZNyF (ORCPT ); Thu, 26 Mar 2020 09:54:05 -0400 Received: by mail-qk1-f178.google.com with SMTP id l25so6410225qki.7 for ; Thu, 26 Mar 2020 06:54:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=wc+XKje0auOusPPz0a7GcIQLQGhOTtijgQ7Lu0ztLys=; b=Myq9bnUelFOaWH1EwFp5X9/NLqzJxNuIsG/dQrghhPyUeuPOAHEBtXkMVzM+De8el7 Z7dO2FjNyP+cYj5bzvvaFiSmrIQEovqvHdSYN0UutuANNjBbpGvQ3U+o8ZFFL9RJrKPb g/5vj/1nWMDQarlBNmhJWiLq/OS7QIQoJZUA31gM8PwnxtiITrdYNm0lt1th2yjww26w f1MsUrLkFPu56WIuZIVTGXhfjFM0S9bGlUNZ7nnsdVgdrr1EQsKgSMcaExHbcNBWCp8E oqz69deKC+zxxlKqp51NV8vUih+r+N1cyVDe7FrhMnaH5TgG65zCxIGomRhDQKKLe47G qKug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=wc+XKje0auOusPPz0a7GcIQLQGhOTtijgQ7Lu0ztLys=; b=Oe37OYP7L85bVmUCIz70vW66F7nKfp9rrjwM1tZALNhYcSbu6rVH6YBxM8qjh5MLcX b3/B2jD1YG9b8MWwlvoU9pOnM3r938bYiQ95WBPFOV/OOOEezMjdee66ZMt6U2eST2Vl DNDSQWTcK/GmYvhbDany1RmnPz5qfY8YsKq+BDuzH3E5Cso9G3BRRU61c4weMoBh2ajn WeH4uxoHwpFLDX6vs9LEjd12QpENkv+Wco6MLTKyi83NxH9AUtjhTe1TfgJ9LKCIDYzz 88rZOgjmWNn6rcJfB28wTqSxkFwvivnGdl36QWvLHoXK4PYPpmy2YIGZb6dY9yasuArt svDA== X-Gm-Message-State: ANhLgQ1P4TLjyHKdz+m6LYBeJQKHpEyRNsX8KDY7dWqW91qfw6IM0rok ilo+3+blQ40IWM5JO359PjI/iyalKhDrmXFDWpztlTL9l10= X-Google-Smtp-Source: ADFU+vtnt5/E26VYV/RgvvZ8EqmS3YoJvKrOVRj6Kf2zp17oY2U4aIrSvGoq/WA/ElfnO1xEi+F7sKZ4yKW6xlNcakE= X-Received: by 2002:a37:4901:: with SMTP id w1mr7230007qka.427.1585230843630; Thu, 26 Mar 2020 06:54:03 -0700 (PDT) MIME-Version: 1.0 References: <20200311204204.GA21905@li61-168.members.linode.com> <20200317002945.GV12659@twin.jikos.cz> In-Reply-To: <20200317002945.GV12659@twin.jikos.cz> From: Andrea Gelmini Date: Thu, 26 Mar 2020 14:53:52 +0100 Message-ID: Subject: Re: Request about "Page cache invalidation failure on direct I/O." To: David Sterba , Andrea Gelmini , Linux BTRFS Content-Type: text/plain; charset="UTF-8" Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Il giorno mar 17 mar 2020 alle ore 01:30 David Sterba ha scritto: > without tuning of the rate I can't say if the buffered vs dio happens > all the time or just once. For the 'once' case I would not be worried. Thanks a lot David for your interest. Well, with latest kernel (5.5.13), I still see it, but a lot less than before (same setup, hardware and software versions). After a few hours of work I just got this bouch of warnings (btw, no boot of virtual machine guest, it was in status saved/suspended). [gio mar 26 05:22:58 2020] Page cache invalidation failure on direct I/O. Possible data corruption due to collision with buffered I/O! [gio mar 26 05:22:58 2020] File: /mnt/4TB/piastrelli/home/virtual/VirtualBox VMs/Zuccotti/Snapshots/{23d5aff0-4514-46b9-ab38-76ae59b3acbf}.vdi P ID: 25176 Comm: kworker/4:3 [gio mar 26 05:28:41 2020] Page cache invalidation failure on direct I/O. Possible data corruption due to collision with buffered I/O! [gio mar 26 05:28:41 2020] File: /mnt/4TB/piastrelli/home/virtual/VirtualBox VMs/Zuccotti/Snapshots/{23d5aff0-4514-46b9-ab38-76ae59b3acbf}.vdi P ID: 35075 Comm: kworker/4:1 [gio mar 26 05:44:00 2020] Page cache invalidation failure on direct I/O. Possible data corruption due to collision with buffered I/O! [gio mar 26 05:44:00 2020] File: /mnt/4TB/piastrelli/home/virtual/VirtualBox VMs/Zuccotti/Snapshots/{23d5aff0-4514-46b9-ab38-76ae59b3acbf}.vdi P ID: 38801 Comm: kworker/4:4 [gio mar 26 05:54:48 2020] Page cache invalidation failure on direct I/O. Possible data corruption due to collision with buffered I/O! [gio mar 26 05:54:48 2020] File: /mnt/4TB/piastrelli/home/virtual/VirtualBox VMs/Zuccotti/Snapshots/{23d5aff0-4514-46b9-ab38-76ae59b3acbf}.vdi P ID: 44366 Comm: kworker/4:1 [gio mar 26 06:02:43 2020] Page cache invalidation failure on direct I/O. Possible data corruption due to collision with buffered I/O! [gio mar 26 06:02:43 2020] File: /mnt/4TB/piastrelli/home/virtual/VirtualBox VMs/Zuccotti/Snapshots/{23d5aff0-4514-46b9-ab38-76ae59b3acbf}.vdi P ID: 44366 Comm: kworker/4:1 [gio mar 26 06:02:43 2020] Page cache invalidation failure on direct I/O. Possible data corruption due to collision with buffered I/O! [gio mar 26 06:02:43 2020] File: /mnt/4TB/piastrelli/home/virtual/VirtualBox VMs/Zuccotti/Snapshots/{23d5aff0-4514-46b9-ab38-76ae59b3acbf}.vdi P ID: 53354 Comm: kworker/4:2 [gio mar 26 06:02:43 2020] Page cache invalidation failure on direct I/O. Possible data corruption due to collision with buffered I/O! [gio mar 26 06:02:43 2020] File: /mnt/4TB/piastrelli/home/virtual/VirtualBox VMs/Zuccotti/Snapshots/{23d5aff0-4514-46b9-ab38-76ae59b3acbf}.vdi P ID: 55712 Comm: kworker/4:6 I have no problem at the moment (this is happening on the test setup to evaluate BTRFS), but maybe it's important to spot it for you all devs. If it help you, I can test the same setup with ext4 or another fs. Thanks again, Gelma Ciao, Gelma