Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755075AbZFEE2A (ORCPT ); Fri, 5 Jun 2009 00:28:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752512AbZFEE1x (ORCPT ); Fri, 5 Jun 2009 00:27:53 -0400 Received: from build.ossfans.org ([67.223.233.67]:34915 "EHLO build.ossfans.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751398AbZFEE1w (ORCPT ); Fri, 5 Jun 2009 00:27:52 -0400 Date: Fri, 5 Jun 2009 08:27:54 +0400 From: Sergey Lapin To: linux-nfs@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: nfsd loads 90% CPU, client hangs Message-ID: <20090605042754.GB576@build.ossfans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2856 Lines: 66 Hi, all! With recent kernels I see a problem with using NFS. It was broken somewhere after 2.6.27. I have ARM board with several hard drives connected over USB 1.1 dongles (USB->IDE, USB->SATA). And I have lvm2 over them. They produce 2 logical volumes with data, which are exported over NFS to PC host. ARM box runs vanilla kernel 2.6.30-rc8, and PC host runs Debian kernel 2.6.24. After some bigger file writes (when large amounts of data are written to disks) I experience the following error in logs on ARM nfsd server host. I use kernel nfsd here, to be clear. I use NFSv3. INFO: task nfsd:1933 blocked for more than 120 seconds. "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. nfsd D c02e29e8 0 1933 2 [] (__schedule+0x2d8/0x348) from [] (__mutex_lock_slowpath+0x8c/0xfc) [] (__mutex_lock_slowpath+0x8c/0xfc) from [] (generic_file_aio_write+0x58/0xe8) [] (generic_file_aio_write+0x58/0xe8) from [] (ext3_file_write+0x20/0xa0) [] (ext3_file_write+0x20/0xa0) from [] (do_sync_readv_writev+0xac/0x100) [] (do_sync_readv_writev+0xac/0x100) from [] (do_readv_writev+0xac/0x1b0) [] (do_readv_writev+0xac/0x1b0) from [] (vfs_writev+0x64/0x74) [] (vfs_writev+0x64/0x74) from [] (nfsd_vfs_write+0x10c/0x350) [] (nfsd_vfs_write+0x10c/0x350) from [] (nfsd_write+0xc0/0xd8) [] (nfsd_write+0xc0/0xd8) from [] (nfsd3_proc_write+0xe8/0x114) [] (nfsd3_proc_write+0xe8/0x114) from [] (nfsd_dispatch+0xcc/0x1e4) [] (nfsd_dispatch+0xcc/0x1e4) from [] (svc_process+0x42c/0x7a8) [] (svc_process+0x42c/0x7a8) from [] (nfsd+0xe4/0x148) [] (nfsd+0xe4/0x148) from [] (kthread+0x58/0x90) [] (kthread+0x58/0x90) from [] (do_exit+0x0/0x620) [] (do_exit+0x0/0x620) from [] (0xffffffff) And then NFS doesn't work at all with nfsd consuming all of CPU it can. I see no hardware problems here, because files are perfectly accessible locally or over HTTP, and no USB or disk error messages. If I reboot ARM box without unmounting NFS shares on PC, the same situation occurs as soon as ARM box boots (excessively loaded CPU with nfsd at top, and NFS doesn't work and doesn't recover). If I unmount them, box boots fine, but fails again as soon as I repeat file operation. So, the question is - what causes it and if it is possible to fix this problem or work it around? Thanks a lot, S. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/