public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: P@draigBrady.com
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: IDE and locking
Date: Mon, 16 Feb 2004 11:42:27 +0000	[thread overview]
Message-ID: <4030ACA3.6020009@draigBrady.com> (raw)

Hi,

I'm working on an embedded system here that
basically counts ethernet packets. I'm using
2.4.20 and I'm noticing that when files are
read from the compact flash (ext2), ethernet
packets are being dropped.

So to work around the problem, I'm precaching
all the files (12MB) at boot like:
find / -type f | while read file; do dd if=$file of=/dev/null; done

So questions.

1. Is this due to the BKL around the IDE subsystem?
2. Are writes as susceptible as reads to the problem?
    I'm guessing if the compact flash had a write cache
    buffer I would be OK as I only write max 2MB at a time?
3. There was talk about removing the BKL in 2.6 with
    reference to:
    http://sourceforge.net/project/showfiles.php?group_id=8875
    Has this work been included?
4. Is there a max number of files that can be cached by linux?
5. Will the files be removed at any stage from the cache
    if there is no memory pressure?
6. Can I reserve memory for the file cache?

cheers.
-- 
Pádraig Brady - http://www.pixelbeat.org


             reply	other threads:[~2004-02-16 11:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-16 11:42 P [this message]
2004-02-22  9:19 ` IDE and locking Paul Jackson

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=4030ACA3.6020009@draigBrady.com \
    --to=p@draigbrady.com \
    --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