From owner-freebsd-stable@FreeBSD.ORG Thu Apr 3 20:41:28 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D7F3106564A for ; Thu, 3 Apr 2008 20:41:28 +0000 (UTC) (envelope-from m.verver@student.utwente.nl) Received: from mx.utwente.nl (unknown [IPv6:2001:610:1908:1000:204:23ff:feba:632a]) by mx1.freebsd.org (Postfix) with ESMTP id BCA9C8FC17 for ; Thu, 3 Apr 2008 20:41:27 +0000 (UTC) (envelope-from m.verver@student.utwente.nl) Received: from heaven.student.utwente.nl (heaven.student.utwente.nl [130.89.167.52]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id m33KZvlg019126 for ; Thu, 3 Apr 2008 22:35:57 +0200 From: Maks Verver To: freebsd-stable@freebsd.org Date: Thu, 3 Apr 2008 22:35:48 +0200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804032235.48678.m.verver@student.utwente.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact servicedesk@icts.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: m.verver@student.utwente.nl X-Spam-Status: No Subject: System hangs when /var partition full (vnode_pager_putpages errors) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 20:41:28 -0000 Hi, I recently encountered an error, where executing the ImageMagick "convert" tool as an unpriviliged user caused the system to hang. The error is similar to one reported in 2004: http://lists.freebsd.org/mailman/htdig/freebsd-stable/2004-March/006493.html There is also an open bug report: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/67919 I'll give some more details on my situation, although it's really very similar to the one described on the mailing list. I use ImageMagick to resample a 300kb 1024x768 resolution JPEG file to 800x600, which causes ImageMagick to create a temporary file (not sure how large, sorry) in /var/tmp. The /var paritition does not have enough space apparently, and the system hangs, while printing repeatedly: kernel: vnode_pager_putpages: I/O error 28 kernel: vnode_pager_putpages: residual I/O 65536 at 74284 kernel: pid 42 (syncer), uid 0 inumber 70779 on /var: filesystem full At this point, the system still responds to ping, but anything else (presumable anything involving disk I/O) is impossible, including logging in locally. (In the previous discussion it was suggested that the hang-up was actually caused by the amount of messages being printed, but this is not the case, as in FreeSD 7 these messages are printed only once each second.) The bug report is from 2004 (last modified in 2005); is there any chance this will be resolved in the future? I can work around it temporarily by ensuring there is enough space on /var (and using ulimit when I invoke convert) but it still means that any malevolent user can crash the system. That's the kind of shenanigans I'd expect on a Linux system ;-) not on FreeBSD which is usually very stable. To summarize: are people aware this problem still exists, is it recognized as an important issue, and are there plans to fix it? Kind regards, Maks Verver.