All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anders Aagaard <aagaande@gmail.com>
To: reiserfs-devel@vger.kernel.org
Subject: Re: Reiser4 on dmcrypt
Date: Sat, 16 Aug 2008 10:57:37 +0200	[thread overview]
Message-ID: <48A69681.2030304@gmail.com> (raw)
In-Reply-To: <48A5F314.8080601@gmail.com>

Anders Aagaard wrote:
> Edward Shishkin wrote:
>> Anders Aagaard wrote:
>>> Hi
>>>
>>> Been trying to move my home directory over to reiser4, and I ran into
>>> some issues, this is what I did:
>>>
>>> PASSCODE="temptest"
>>> echo $PASSCODE | cryptsetup luksFormat /dev/sdf6 -c
>>> twofish-cbc-essiv:sha256 -s 256
>>> echo $PASSCODE | cryptsetup luksOpen /dev/sdf6 tempHome
>>> mkfs.reiser4 -o create=ccreg40,compress=lzo1 /dev/mapper/tempHome
>>>
>>> mount -t reiser4 -o noatime /dev/mapper/tempHome /mnt/x
>>>
>>> rsync -vax --progress /home/neuron/ /mnt/x/
>>>
>>> During rsync I noticed this in top while moving over a virtualbox image:
>>>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>>>  2427 root      20   0     0    0    0 R  100  0.0  14:32.01 pdflush
>>>  9497 root      20   0     0    0    0 R  100  0.0  11:38.48 rsync
>>>
>>> It did continue, but I figured something was wrong, so I interrupted
>>> the rsync and unmounted.  The rsync reported my copy speed was down to
>>> 3-4mb/sec.  This is on a fairly new quad core, so I should be able to
>>> encrypt and compress the data without difficulty.
>>>
>>
>> Yeah, something goes wrong..
>> Would you please try default (reg40) plugin in the same configuration?
> 
> 
> That does work, although the performance reported by rsync seems very 
> unstable (although that could be a lot of issues), varying between 10 
> and 25mb/sec.  Note that I do not have the patch to enable write 
> barriers on single dm devices, so it's running in "synchronous write", I 
> will try with that patch aswell though.

I just tried with this patch, http://lkml.org/lkml/2008/2/15/125, now
rsync works for quite long before I get the message:
NOTICE: dm-6 does not support write barriers, using synchronous write
instead.

Which to my understanding I shouldn't get?  Rebooted, tested, and it did 
not lock up like it did before.  And
pdflush is around 10-20% on top.

Thought this was a bit odd, so I undid the barrier kernel patch, 
rebooted, and tried again.  And it worked, copied over the file ok, I 
watched dmesg during the copy and realized it said "using synchronous 
write instead" quite late in the copy process, so I thought if I 
repeated the test with the same image it might hang on me.

So I executed rm on Gentoo-Test.vdi, I waited 10-30 seconds, thought 
that was oddly long and started a wall clock, it's been running for 3 
minutes now and it's still not done.

iotop reports this:
   PID USER      DISK READ  DISK WRITE   SWAPIN    IO>    COMMAND
  7327 root        9.52 M/s       0 B/s  0.00 %  0.00 % rm 
/mnt/x/.VirtualBox/V

Top reports this:
   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  6309 root      15  -5     0    0    0 S    9  0.0   0:25.52 kcryptd_io 

  6310 root      15  -5     0    0    0 S    7  0.0   0:39.76 kcryptd
(and 22% iowait).

And as I was typing this it finished, I estimate that rm took about 4-4 
min 30 sec.  File a 6.8gb in size.  Is there really this much to write 
when removing a 6.8gb file?

My test was 100% reproducable on my system before I rebooted, and I 
recreated everything with cryptsetup and mkfs.reiser4 between tests. 
Earlier on the day when I had the problem I had done some performance 
testing on different crypto algorithms + reiser4 on /dev/ram0, and 
particulary cryptsetup wasn't a big fan of that (some errors in dmesg, 
no oops'es or anything I'd think would matter outside the test 
enviroment though).  I'll report back if I can get this to fail.

> 
>>
>> Thanks,
>> Edward.
>>
>>> I remounted and started again, it starts by coping at 14-15mb/sec, and
>>> then just slows down as pdflush hits 100% cpu usage.  Iowait also goes
>>> down to around 5%.  When I interrupt it pdflush disapears instantly,
>>> and rsync sticks around for 10-15 seconds (making it unmountable for
>>> that period) until it dies.
>>>
>>> The file it's having problems with is a 6.8gb virtualbox image I use
>>> as a gentoo test enviroment.
>>>
>>> Anders Aagaard
>>> -- 
>>> To unsubscribe from this list: send the line "unsubscribe
>>> reiserfs-devel" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>
>>
> 
> 



      reply	other threads:[~2008-08-16  8:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-15 14:45 Reiser4 on dmcrypt Anders Aagaard
2008-08-15 15:44 ` Edward Shishkin
2008-08-15 21:20   ` Anders Aagaard
2008-08-16  8:57     ` Anders Aagaard [this message]

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=48A69681.2030304@gmail.com \
    --to=aagaande@gmail.com \
    --cc=reiserfs-devel@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 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.