From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-133607-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1RkPVL-0002Kb-Dp
	for garchives@archives.gentoo.org; Tue, 10 Jan 2012 00:23:55 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 4808021C0A2;
	Tue, 10 Jan 2012 00:23:41 +0000 (UTC)
Received: from mx.virtyou.com (mx.virtyou.com [178.33.32.244])
	by pigeon.gentoo.org (Postfix) with ESMTP id 8D96621C029
	for <gentoo-user@lists.gentoo.org>; Tue, 10 Jan 2012 00:22:45 +0000 (UTC)
Received: from [192.168.2.43] (p5B275DC2.dip.t-dialin.net [91.39.93.194])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx.virtyou.com (Postfix) with ESMTPSA id 80CD9DC04C
	for <gentoo-user@lists.gentoo.org>; Tue, 10 Jan 2012 01:22:44 +0100 (CET)
Message-ID: <4F0B8448.4040605@wonkology.org>
Date: Tue, 10 Jan 2012 01:20:24 +0100
From: Alex Schuster <wonko@wonkology.org>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Horrible TrueCrypt performance
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
X-Archives-Salt: 3d800f59-c9af-4082-873b-cd745fee85ed
X-Archives-Hash: 18ba79a9e9adc5adfc39ed9ef3873c2c

Hi there!

I have to copy some 100 G of files from one to another USB drive. Both
are formatted with NTFS, the destination drive already has a truecrypt
container file where I need to store the data into.

This is sort of working, but the speed is waayyyy too slow. After about
four hours, only 8 G were copied.

Looking at the cp -r output shows I see a bunch of files being
processed, then the output stops for some minutes. Sometimes for half an
hour.

Top shows the mount.ntfs-3g process writing to the destination using all
resources of one of my two cores. iotop -d 10 shows this process mainly.
What I find strange is that this process is also reading from the drive
I am copying to, 1600 K/s compared to 260 K/s writing speed. Huh?? And
sometimes there is no I/O from this process during the ten seconds of
sampling time. I sampled for about half an hour, and iotop -oa shows
that only 20 MB were written. This will never finish.

I used this command to mount the truecrypt container:
truecrypt --fs-options=uid=1000,umask=0007 -k /home/wonko/my.key
/media/My USB Drive/my_container /mnt
Adding 'async' to the fs-options did not help.

Any ideas? I've never used TrueCrypt before.

	Wonko