From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@bugzilla.kernel.org Subject: [Bug 86471] drastic reduction of write performance after the termination of mysqld Date: Fri, 24 Oct 2014 15:14:55 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: linux-ext4@vger.kernel.org Return-path: Received: from mail.kernel.org ([198.145.19.201]:41886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757051AbaJXPO5 convert rfc822-to-8bit (ORCPT ); Fri, 24 Oct 2014 11:14:57 -0400 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E8972025B for ; Fri, 24 Oct 2014 15:14:56 +0000 (UTC) Received: from bugzilla1.web.kernel.org (bugzilla1.web.kernel.org [172.20.200.51]) by mail.kernel.org (Postfix) with ESMTP id 61A37201C0 for ; Fri, 24 Oct 2014 15:14:55 +0000 (UTC) In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: https://bugzilla.kernel.org/show_bug.cgi?id=3D86471 --- Comment #7 from Markus K=C3=B6nigshaus --- Addition: I have identified the code that generates the underflow: cancel_dirty_page in mm/truncate.c. To reproduce the error, you can per= form the following change: [...] if (mapping && mapping_cap_account_dirty (mapping)) { ++WARN_ON ((int) global_page_state(NR_FILE_DIRTY) <0); dec_zone_page_state (page, NR_FILE_DIRTY); [...] Test result: [ 21.427121] ------------[ cut here ]------------ [ 21.431769] WARNING: CPU: 0 PID: 309 at mm/truncate.c:78 cancel_dirty_page+0x144/0x1cc() [ 21.439899] Modules linked in: wutbox_cp sata_mv [ 21.444572] CPU: 0 PID: 309 Comm: kworker/0:1 Not tainted 3.14.21-Wu= T #77 [ 21.451395] Workqueue: events free_ioctx [ 21.455362] [] (unwind_backtrace) from [] (show_stack+0x20/0x24) [ 21.463164] [] (show_stack) from [] (dump_stack+0x24/0x28) [ 21.470441] [] (dump_stack) from [] (warn_slowpath_common+0x84/0x9c) [ 21.478577] [] (warn_slowpath_common) from [] (warn_slowpath_null+0x2c/0x34) [ 21.487402] [] (warn_slowpath_null) from [] (cancel_dirty_page+0x144/0x1cc) [ 21.496125] [] (cancel_dirty_page) from [] (truncate_inode_page+0x8c/0x158) [ 21.504874] [] (truncate_inode_page) from [] (truncate_inode_pages_range+0x11c/0x53c) [ 21.514493] [] (truncate_inode_pages_range) from [] (truncate_pagecache+0x88/0xac) [ 21.523855] [] (truncate_pagecache) from [] (truncate_setsize+0x5c/0x74) [ 21.532332] [] (truncate_setsize) from [] (put_aio_ring_file.isra.14+0x34/0x90) [ 21.541428] [] (put_aio_ring_file.isra.14) from [] (aio_free_ring+0x20/0xcc) [ 21.550262] [] (aio_free_ring) from [] (free_ioctx+0x24/0x44) [ 21.557791] [] (free_ioctx) from [] (process_one_work+0x134/0x47c) [ 21.565732] [] (process_one_work) from [] (worker_thread+0x130/0x414) [ 21.575225] [] (worker_thread) from [] (kthread+0xd4/0xec) [ 21.590695] [] (kthread) from [] (ret_from_fork+0x14/0x20) [ 21.600721] ---[ end trace a9d8eecdd373e997 ]--- The error only occurs when the Kernel Asynchronous I/O is used. Without= AIO I get no error. Markus --=20 You are receiving this mail because: You are watching the assignee of the bug.-- To unsubscribe from this list: send the line "unsubscribe linux-ext4" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html