🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #16555

Re: Problems with Linux and INN 1.5.1...

#16555
From: Jeff Garzik
Date: Tue, 01 Apr 1997 00:00
86 lines
2963 bytes
This is a multi-part message in MIME format.

--------------4A973A9D3A2D9ED41A2B2535
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Fredrik Lindgren wrote:
> The machine is running Linux 2.0.29 and INN v1.5.1. The overview
> database is on a separate 4Gb 7200 rpm drive on the same 2940 controller.

You should break the RAID array off onto another controller.  That's a
LOT of bandwidth to push through a single controller.  I have 3 PCI
SCSI2 NCR controllers on my SCSI chain.

> The problem we're seeing is that the filesystem on the news-spool is
> getting corrupted. This leads to all kins of weirdness on INNs behalf.
> INN claims that the filesystem is full, even though it's not even
> at 50%. It fails to symlink files, and so on. Ofcourse, when this
> happens INN throttles.

Try the attached patch I got from the kernel mailing list, authored by
Theodore Ts'o.  There are some problems with Linux and 2940 controllers
unrelated to this patch, as this only fixes the general inode corruption
symptoms you describe above.

	Jeff

--------------4A973A9D3A2D9ED41A2B2535
Content-Type: text/plain; charset=us-ascii; name="tytso.inode.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="tytso.inode.patch"

--- fs/inode.c	1997/03/31 17:05:03	1.1
+++ fs/inode.c	1997/03/31 20:02:49
@@ -147,7 +147,8 @@
 
 static inline void lock_inode(struct inode * inode)
 {
-	wait_on_inode(inode);
+	while (inode->i_lock)
+		wait_on_inode(inode);
 	inode->i_lock = 1;
 }
 
@@ -173,8 +174,8 @@
 {
 	struct wait_queue * wait;
 
+	lock_inode(inode);
 	truncate_inode_pages(inode, 0);
-	wait_on_inode(inode);
 	if (IS_WRITABLE(inode)) {
 		if (inode->i_sb && inode->i_sb->dq_op)
 			inode->i_sb->dq_op->drop(inode);
@@ -186,6 +187,7 @@
 		nr_free_inodes++;
 	memset(inode,0,sizeof(*inode));
 	((volatile struct inode *) inode)->i_wait = wait;
+	wake_up(&inode->i_wait);
 	insert_inode_free(inode);
 }
 
@@ -512,6 +514,7 @@
 		sleep_on(&inode_wait);
 		goto repeat;
 	}
+found_good:
 	if (best->i_lock) {
 		wait_on_inode(best);
 		goto repeat;
@@ -522,7 +525,7 @@
 	}
 	if (best->i_count)
 		goto repeat;
-found_good:
+	
 	clear_inode(best);
 	best->i_count = 1;
 	best->i_nlink = 1;


--------------4A973A9D3A2D9ED41A2B2535--


Technical Details
Message-ID: <334168BE.449EDCFB@spinne.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5hms67$aag$1@borg.edu.sollentuna.se>

Show Full Headers
Complete Article Headers
Message-ID: <334168BE.449EDCFB@spinne.com>
Subject: Re: Problems with Linux and INN 1.5.1...
Date: Tue, 01 Apr 1997 00:00:00 +0000
From: Jeff Garzik <jeff.garzik@spinne.com>
References: <5hms67$aag$1@borg.edu.sollentuna.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 229937628
To: Fredrik Lindgren <fli@solnet.sollentuna.se>
Organization: Spinne http://spinne.com
Newsgroups: news.software.nntp