public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ken Brownfield <brownfld@irridia.com>
To: "Barry K. Nathan" <barryn@pobox.com>
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>,
	lkml <linux-kernel@vger.kernel.org>
Subject: Re: [BUG] 2.4.17-rc1 still has I/O freezing bug
Date: Fri, 14 Dec 2001 05:53:28 -0600	[thread overview]
Message-ID: <20011214055328.A26814@asooo.flowerfire.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0112131841080.28446-100000@freak.distro.conectiva> <20011214061842.948118A6BA@cx518206-b.irvn1.occa.home.com>
In-Reply-To: <20011214061842.948118A6BA@cx518206-b.irvn1.occa.home.com>; from barryn@pobox.com on Thu, Dec 13, 2001 at 10:18:42PM -0800

This reproduces for me as well under -rc1 (SMP, ext3, aic7xxx,
1xCeleron).  In my case, dd gets to about 912 MB before stopping, and
during the write up to that point the machines' interactive response
stalls occasionally for a few seconds.  Sync etc stuck in device-wait.

Hopefully whoever wrote the patch can comment.

-- 
Ken.
brownfld@irridia.com

On Thu, Dec 13, 2001 at 10:18:42PM -0800, Barry K. Nathan wrote:
| 2.4.17-rc1 still has the bug that I reported for -pre8, where dd from
| /dev/zero to a file on a loopback-mounted filesystem still freezes after
| a few seconds. (I confirmed this by testing it on my systems here.)
| 
| Instructions to reproduce on a regular system (as opposed to the weird
| setup on my notebook, which I detailed in a previous post to the
| linux-kernel mailing list, that made me notice this problem in real-world
| use):
| 
| 1. dd if=/dev/zero bs=1024k count=1024 of=/tmp/loopf (put the file on
| any non-loopback filesystem -- this works with both IDE and SCSI)
| 
| 2. mke2fs /tmp/loopf
| 
| 3. mount -o loop /tmp/loopf /mnt/disk (or just /mnt, or wherever)
| 
| 4. log into another virtual console or whatever, so you can do
| 'ls -l /mnt/disk' or the equivalent (this is especially important if
| your disk doesn't have a visible activity light)
| 
| 5. dd if=/dev/zero bs=1024k of=/mnt/disk/zero [normally this should fill
| the disk up then exit with an error]
| 
| 6. Watch the activity light, or wait 10 seconds and issue ls commands in
| the other terminal. The activity light will turn off in a few seconds,
| and the /mnt/disk/zero file will stop growing after a few hundred
| megabytes or so, well ahead of the disk actually running out of space.
| Killing the dd command with ^C at the console is impossible, and a kill -9
| also fails. ps shows the dd command and the [loop0] kernel thread both
| stuck in D state, despite the lack of physical disk activity.
| 
| This is 100% reproducible for me, on both of the systems that I have
| tried it on. With -rc1, as with -pre8, *reverting* the following patch
| fixes the problem:
| 
| diff -urN linux-2.4.17-pre1/fs/buffer.c linux/fs/buffer.c
| --- linux-2.4.17-pre1/fs/buffer.c	Wed Nov 21 14:40:17 2001
| +++ linux/fs/buffer.c	Sat Dec  1 00:35:16 2001
| @@ -1036,6 +1036,7 @@
|  	unsigned long dirty, tot, hard_dirty_limit, soft_dirty_limit;
|  
|  	dirty = size_buffers_type[BUF_DIRTY] >> PAGE_SHIFT;
| +	dirty += size_buffers_type[BUF_LOCKED] >> PAGE_SHIFT;
|  	tot = nr_free_buffer_pages();
|  
|  	dirty *= 100;
| 
| -Barry K. Nathan <barryn@pobox.com>

  parent reply	other threads:[~2001-12-14 11:54 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-13 20:44 Linux 2.4.17-rc1 Marcelo Tosatti
2001-12-13 23:33 ` Ken Brownfield
2001-12-14  1:35 ` Roger Larsson
     [not found] ` <20011214061842.948118A6BA@cx518206-b.irvn1.occa.home.com>
2001-12-14 11:53   ` Ken Brownfield [this message]
2001-12-16  4:59 ` Daniel Phillips
2001-12-17 16:51   ` Marcelo Tosatti
2001-12-17 18:17     ` Richard Gooch
2001-12-17 21:00       ` Marcelo Tosatti
2001-12-16 14:13 ` David Relson
2001-12-16 14:19   ` Rik van Riel
2001-12-16 14:26   ` Dave Jones
2001-12-16 15:32     ` Ed Tomlinson
2001-12-16 15:37   ` David Relson
2001-12-16 16:10     ` John Alvord
2001-12-16 16:22     ` David Relson
2001-12-16 16:40       ` David Weinehall
2001-12-16 20:28   ` J Sloan
2001-12-18  1:27 ` Erik Andersen
2001-12-18  1:38   ` Dave Jones
2001-12-18  1:46     ` Erik Andersen
2001-12-18  1:53       ` Dave Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011214055328.A26814@asooo.flowerfire.com \
    --to=brownfld@irridia.com \
    --cc=barryn@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox