From: Andrew Morton <akpm@osdl.org>
To: Jens Axboe <axboe@suse.de>
Cc: nagyz@nefty.hu, linux-kernel@vger.kernel.org
Subject: Re: pdflush and dm-crypt
Date: Mon, 29 Mar 2004 16:12:48 -0800 [thread overview]
Message-ID: <20040329161248.41e87929.akpm@osdl.org> (raw)
In-Reply-To: <20040329150137.GH24370@suse.de>
Jens Axboe <axboe@suse.de> wrote:
>
> On Mon, Mar 29 2004, Zoltan NAGY wrote:
> > Hi!
> >
> > I've just upgraded the system to 2.6.5-rc2-bk6, and I'm using
> > dm-crypt. It's a heavily used server, on average 20-30mbit/sec
> > traffic is on the wire 7/24, and just noticed, that the load is very
> > high. In every 4-5 sec pdflush takes a lot of cpu... Is this
> > intentional? I've found a similar question on kerneltrap
> > (http://kerneltrap.org/node/view/2756), but havent found a solution
> > yet. I'm just wondering if it is a problem, or it's the normal
> > behavior? It's a 1.8 P4 with 1G ram and highmem enabled, with 256 bit
> > aes thru dm-crypt.
>
> Try the -mm kernels intead, should have lots better behaviour for
> pdflush/dm interactions.
>
How come? Isn't this problem just "gee, we have a lot of stuff to encrypt
during writeback"? If so, then it should be sufficient to poke a hole in
the encryption loop?
--- 25/drivers/md/dm-crypt.c~a Mon Mar 29 16:11:49 2004
+++ 25-akpm/drivers/md/dm-crypt.c Mon Mar 29 16:11:56 2004
@@ -669,6 +669,7 @@ static int crypt_map(struct dm_target *t
/* out of memory -> run queues */
if (remaining)
blk_congestion_wait(bio_data_dir(clone), HZ/100);
+ cond_resched();
}
/* drop reference, clones could have returned before we reach this */
_
next prev parent reply other threads:[~2004-03-30 0:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-29 14:50 Zoltan NAGY
2004-03-29 15:01 ` Jens Axboe
2004-03-30 0:12 ` Andrew Morton [this message]
2004-03-30 6:22 ` Jens Axboe
2004-03-30 9:46 ` Christophe Saout
2004-03-30 10:07 ` Andrew Morton
2004-03-30 11:59 ` Zoltan NAGY
2004-03-29 15:01 ` Arkadiusz Miskiewicz
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=20040329161248.41e87929.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=nagyz@nefty.hu \
/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®