All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Re : Re : Poor performances with nfs and Kernel 3.x
Date: Thu, 09 Feb 2012 11:19:30 +0100	[thread overview]
Message-ID: <4F339DB2.20603@redhat.com> (raw)
In-Reply-To: <20120209073717.GA3176@tansi.org>

On 02/09/2012 08:37 AM, Arno Wagner wrote:
> On Wed, Feb 08, 2012 at 05:55:21PM +0000, Mickael wrote:
>> Here are more tests focusing the CPU load with htop snapshot:
>>
>> with Kernel 3.x, nfsd threads are using more CPU !?
>
> This is what I suspected. You setup is already slightly
> CPU-limited when reading/writing encrypted partitions.
> Any additional CPU needed by NFS is then directly deduced
> from CPU available for encryption.

Not sure if it help, but it would be interesting if you can try
to use patch from this thread
http://article.gmane.org/gmane.linux.kernel/1245748

(it can be completely unrelated though, I have no time to test
it now myself)

BTW I will add possibility to use null cipher to cryptsetup,
just to test exactly these situations (null cipher eliminates all
crypto operations), for now, you can try it with dmsetup and
measure preformance (this should uncover if encryption is
the problem or there is some timing problem):

(Replace DEV with your disk, note key is "-" - means empty)

dmsetup create x --table "0 $(blockdev --getsz DEV) crypt cipher_null-ecb-null - 0 DEV 0"

Milan

  parent reply	other threads:[~2012-02-09 10:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-06 22:28 [dm-crypt] Poor performances with nfs and Kernel 3.x Mickael
2012-02-07  8:11 ` Arno Wagner
2012-02-07  8:33   ` Arno Wagner
2012-02-08 15:04     ` [dm-crypt] Re : " Mickael
2012-02-08 15:26       ` Arno Wagner
2012-02-08 17:55         ` [dm-crypt] Re : " Mickael
2012-02-09  7:37           ` Arno Wagner
2012-02-09  9:34             ` Matthias Schniedermeyer
2012-02-09 10:19             ` Milan Broz [this message]
2012-02-09 12:04               ` Arno Wagner
2012-02-26 21:29             ` [dm-crypt] Re : " Mickael
2012-02-26 21:39               ` Arno Wagner
2012-02-08 14:55   ` [dm-crypt] " Mickael

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=4F339DB2.20603@redhat.com \
    --to=mbroz@redhat.com \
    --cc=dm-crypt@saout.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.