From: Jens Axboe <axboe@suse.de>
To: Andrew Morton <akpm@osdl.org>
Cc: nagyz@nefty.hu, linux-kernel@vger.kernel.org
Subject: Re: pdflush and dm-crypt
Date: Tue, 30 Mar 2004 08:22:51 +0200 [thread overview]
Message-ID: <20040330062251.GM24370@suse.de> (raw)
In-Reply-To: <20040329161248.41e87929.akpm@osdl.org>
On Mon, Mar 29 2004, Andrew Morton wrote:
> 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?
If that is the problem, then yeah that'd work. I was assuming the 'load'
was just io load and pdflush got stuck on them.
> --- 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();
> }
Reminds me, we have to kill that blk_congestion_wait() stuff too.
--
Jens Axboe
next prev parent reply other threads:[~2004-03-30 6:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-29 14:50 pdflush and dm-crypt Zoltan NAGY
2004-03-29 15:01 ` Jens Axboe
2004-03-30 0:12 ` Andrew Morton
2004-03-30 6:22 ` Jens Axboe [this message]
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=20040330062251.GM24370@suse.de \
--to=axboe@suse.de \
--cc=akpm@osdl.org \
--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