mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: marcus hall <marcus@tuells.org>
To: linux-kernel@vger.kernel.org
Subject: Block device swamping disk cache
Date: Fri, 7 May 2004 17:23:32 -0600	[thread overview]
Message-ID: <20040507232332.GA21230@bastille.tuells.org> (raw)

I am now having problems writing a filesystem image to a device file.

I am running an arm version of the 2.5.59 kernel.

Writing the data to the device file eventually caused ps.nr_dirty to exceed
dirty_thresh in balance_dirty_pages(), yet when writeback_inodes() scans
all the superblocks, the inodes that it finds are all marked as memory_backed
(they are on a ramdisk), and the inode for the block device file doesn't
show up.

I did not see any place where mark_inode_dirty() gets called for the block
device..  Is there some other mechanism for flushing the disk cache allocated
to the device?  I end up with balance_dirty_pages() looping forever.

Just for grins, I added a call to mark_inode_dirty() in blkdev_commit_write()
(similar to generic_commit_write()), but this had no effect that I could
notice.  I did note that in blkdev_commit_write(), if I look at
file->f_dentry->d_inode, I see the inode form the /dev filesystem, yet
page->mapping->host is a different inode!  I don't know if this is a
problem or not, but it did surprise me..

Anyhow, is this a known issue with 2.5.59?  How is the disk cache allocated
to a block device supposed to get flushed?

Thanks!

Marcus Hall
marcus@tuells.org

             reply	other threads:[~2004-05-07 23:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-07 23:23 marcus hall [this message]
2004-05-11 19:11 marcus hall
2004-05-11 19:19 ` Christoph Hellwig
2004-05-11 19:48   ` marcus hall
2004-05-12  0:26   ` Andrew Morton
2004-05-12 13:33     ` marcus hall
2004-05-13  0:20       ` Andrew Morton

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=20040507232332.GA21230@bastille.tuells.org \
    --to=marcus@tuells.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®