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 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63FE0C43217 for ; Sun, 27 Nov 2022 00:08:12 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1oz5DN-0007gZ-Na; Sun, 27 Nov 2022 00:08:09 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oz5DL-0007gT-9Z for linux-f2fs-devel@lists.sourceforge.net; Sun, 27 Nov 2022 00:08:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=MIME-Version:Content-Transfer-Encoding:Content-Type :References:In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9CS/AK2DTULxWuD6n0OuYUYMJsMC7AdrmN0LTRYaq5g=; b=WJSSMhLdVviKwAjX4Lu7F0pmA2 udhQwsCirbU7ywHvQkaAq/2vPplBgh0ZKpPfTRWZBiuxQeYkJDe+gCR8Ar4Puwk/ctEQXphl8+Rjk VQGcrOopvS502J4wgU26fb5Ln2kfKjGGmpqVTVswgx+GH0Z5yDSoaUYSm7NOb+r7rcWg=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=MIME-Version:Content-Transfer-Encoding:Content-Type:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=9CS/AK2DTULxWuD6n0OuYUYMJsMC7AdrmN0LTRYaq5g=; b=mJ/J/cYQSaKy0668fUPn76Ox2L 9XTlt5+EM2Sllp6g9Nv8Wq/IlziSqyGGGbmg9FR077P5lqlr7GhPdeD8admaJJ/9seGu3p3X4fjhn vXtzMrRi74ACxj7PmS2vZpLbGQMH1XfLpECjvSSERTymNpzUhbKTbDW/HkxgTJ+iEjjE=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1oz5DK-00EvWr-MH for linux-f2fs-devel@lists.sourceforge.net; Sun, 27 Nov 2022 00:08:07 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6B80960C76 for ; Sun, 27 Nov 2022 00:07:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id A88C9C433C1 for ; Sun, 27 Nov 2022 00:07:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669507675; bh=eCp6lzev9nKEi6N94RJJk677vCqy6aCs2x95Ob+KnFg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NTVewWC1vUrP/RxVd3HZlOQM0hnYRgT9dHCe/ZiGsNhOxHbYhErfrd7uv+7FnrdgQ CxxoyvVuHWNgvajlz0jCBAwgpwogWYhqD+oK6xrh6x+jo6Uqlp6NIXGLx754eJ165G DiIomHNbP4L2eKgZr1X9k0rcYSuXJUKmWMZ1+Efh5l1DGuLyB6G6CXhqVMxJk4y18m ASI1EbfwL4DMDLpiJlOV6JKbzslLLgbYnwMgdmO+9HkWyoEV9xcMlzA3P7oz0GXPbg ZaUwykqbJihmxQMeHvLrqIIU11RSSc+ZzEjycKdEQT45aNoIOG9JFaotJ93wflCTD1 uXqaXVoFPUFrg== Received: by aws-us-west-2-korg-bugzilla-1.web.codeaurora.org (Postfix, from userid 48) id 8D5A6C433E4; Sun, 27 Nov 2022 00:07:55 +0000 (UTC) From: bugzilla-daemon@kernel.org To: linux-f2fs-devel@lists.sourceforge.net Date: Sun, 27 Nov 2022 00:07:55 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo filesystem_f2fs@kernel-bugs.kernel.org X-Bugzilla-Product: File System X-Bugzilla-Component: f2fs X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yuriy.garin@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: filesystem_f2fs@kernel-bugs.kernel.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Headers-End: 1oz5DK-00EvWr-MH Subject: [f2fs-dev] [Bug 216050] f2fs_gc occupies 100% cpu X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net https://bugzilla.kernel.org/show_bug.cgi?id=216050 --- Comment #91 from Yuriy Garin (yuriy.garin@gmail.com) --- Created attachment 303300 --> https://bugzilla.kernel.org/attachment.cgi?id=303300&action=edit debug patch with f2fs_io_schedule_timeout (In reply to #79) This debug patch adds f2fs_io_schedule_timeout call, as proposed in #79. It also prints when problem occurred first time (on this call) and it prints if problem was "fixed". In pseudo-code it looks like this: ... f2fs_get_lock_data_page(...) { int i = 0; repeat: page = f2fs_get_read_data_page(...); ... if (page->mapping != mapping) { if (i++ == 0) /* first time */ printk("bad ..."); f2fs_put_page(page, 1); f2fs_io_schedule_timeout(DEFAULT_IO_TIMEOUT); if (i >= 10000) return ERR_PTR(-EAGAIN); /* cannot resolve problem */ goto repeat; } if (i > 0) /* resolved problem successfully */ printk("fix ..."); ... return page; } Thus, ideally, good output should have couples of lines: bad ... good ... In short, it does *not* happen. I'm attaching detailed dmesg log in the next post. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel