From patchwork Mon Jul 1 21:57:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaitanya Kulkarni X-Patchwork-Id: 11026903 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E8140138D for ; Mon, 1 Jul 2019 21:58:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9F5A28793 for ; Mon, 1 Jul 2019 21:58:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CAAE3287C2; Mon, 1 Jul 2019 21:58:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70A5928793 for ; Mon, 1 Jul 2019 21:58:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726878AbfGAV6M (ORCPT ); Mon, 1 Jul 2019 17:58:12 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:56724 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726688AbfGAV6L (ORCPT ); Mon, 1 Jul 2019 17:58:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1562018291; x=1593554291; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=b0wGW7WtfWxUwKfj2wVFwZxNHKIT6iMJAeEE2CY/GA4=; b=SG6nNlNiJDoIOUPgDjDT1vEwCaQVHRxjRTUDPplqYINBPUJeG8vtgEMZ SHI4HrqsJSIuUNP5KVOT2/MqKFd58+QJ4Gp+Ne9Knp6WWWE5k80YZRkiV +gq6av/fAFiDEJbJzG7GMA/dMFW3+GGq+hrRiZ9dFFMLfTxoSODHzdczj 6lq1TFpCKWG9SOVKFiY+ytJ320nuBtvkAB5/WK/gwrBRlzN0EwTv+Nwu4 odEY2VYvS/0XOWJ3DFX1QsXX3y/CO0adbC9aAF2Ecm22l7Qb/rH01k8ND B3ERhVhcb3X5jveK3wZ/Ix/HI8zXHP5nMEzOYERJZrkV/qQdgkVuuMwPE Q==; X-IronPort-AV: E=Sophos;i="5.63,440,1557158400"; d="scan'208";a="116844042" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 02 Jul 2019 05:58:11 +0800 IronPort-SDR: EVsx4/4XKkXqYlxt9dv6fEAKdFor7neKkpSKkUHf9yYsSYH+dGVXgjgTx1qsRJWxIvUyjYMHIP I18UOf+7JgZdoP9g5a4EHcms9zhum2A2/PAdrYYvjvegDU2kutHExz7F2mRydk3qDbzROxgi54 PPcpu+C9Q5r2KRGqpluZJ3eh74NjZN+pdD9zEUVOcK0WDfaAL0edbV+9Fx5WRvU+KW3+9H+s/U e9yrbDzXgSttP06vCjU099bQ7UyGqkVJU8j9/J+M6ZMmRw+ckWjdrtqWQDglIaMIKDUD0XRca4 kG5WqQUllHpQ1DimyqDpHACN Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 01 Jul 2019 14:57:13 -0700 IronPort-SDR: AABjtBQ8ZjxtlIypq0AuDMGuICj3Ru7OQR6RTokwwI5NwnheQDs9XZu6EHSysDkGvnSbjLSLzk svQHsZ3L9KuVfcFTjFKgPOsuSl7tPlG11lsjBb8z5kXGyUSeWfzv8y2JNrHN9XFqAP9GIoh801 6/k7//Wxd+PiVP+eMja3fbegfEx0pWIXUEx/YSComqBkOzV5tvEeCB40Ty18Wl8YUlGpamcA0W YnMn0/OE8nFdC37M/MT1FRhMxXORwaN4jwQ92KCK2O3IsgCDvM1qCknYbY7bB2yB2W4O2NYyqp t5U= Received: from cvenusqemu.hgst.com ([10.202.66.73]) by uls-op-cesaip02.wdc.com with ESMTP; 01 Jul 2019 14:58:10 -0700 From: Chaitanya Kulkarni To: linux-mm@kvack.org, linux-block@vger.kernel.org Cc: bvanassche@acm.org, axboe@kernel.dk, Chaitanya Kulkarni Subject: [PATCH 5/5] Documentation/laptop: add block_dump documentation Date: Mon, 1 Jul 2019 14:57:26 -0700 Message-Id: <20190701215726.27601-6-chaitanya.kulkarni@wdc.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190701215726.27601-1-chaitanya.kulkarni@wdc.com> References: <20190701215726.27601-1-chaitanya.kulkarni@wdc.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch updates the block_dump documentation with respect to the changes from the earlier patch for submit_bio(). Also we adjust rest of the lines to fit with standaed format. Signed-off-by: Chaitanya Kulkarni --- Documentation/laptops/laptop-mode.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/laptops/laptop-mode.txt b/Documentation/laptops/laptop-mode.txt index 1c707fc9b141..d4d72ed677c4 100644 --- a/Documentation/laptops/laptop-mode.txt +++ b/Documentation/laptops/laptop-mode.txt @@ -101,14 +101,14 @@ a cache miss. The disk can then be spun down in the periods of inactivity. If you want to find out which process caused the disk to spin up, you can gather information by setting the flag /proc/sys/vm/block_dump. When this flag -is set, Linux reports all disk read and write operations that take place, and -all block dirtyings done to files. This makes it possible to debug why a disk -needs to spin up, and to increase battery life even more. The output of -block_dump is written to the kernel output, and it can be retrieved using -"dmesg". When you use block_dump and your kernel logging level also includes -kernel debugging messages, you probably want to turn off klogd, otherwise -the output of block_dump will be logged, causing disk activity that is not -normally there. +is set, Linux reports all disk I/O operations along with read and write +operations that take place, and all block dirtyings done to files. This makes +it possible to debug why a disk needs to spin up, and to increase battery life +even more. The output of block_dump is written to the kernel output, and it can +be retrieved using "dmesg". When you use block_dump and your kernel logging +level also includes kernel debugging messages, you probably want to turn off +klogd, otherwise the output of block_dump will be logged, causing disk activity +that is not normally there. Configuration