LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-27-2007, 06:38 AM   #1
cytg
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
200G Truecrypt, performance and desktop lag


So, i decided to take security at notch up with truecrypt, so i created a 200G volume (on a 500G sata hitachi, boot/swap/ext3, ubuntu 7.04).
I tried to makefs.ext3 the new volume, but it would crash my system around something like "creating inode x")..
I tried makefs.reiserfs and that worked..
Now im copying stuff into the encrypted volume(same disc), and, damn.
Sometimes it'll hover away at 5meg/sec, but then at other times it'll completely stall and/or slow down to like 500k in the proccess.

Just thinking if anyone else had experience with this setup, is the 200G too much? And why does it lag my entire system ? Why did ext3 crash my system?
Thinking i could use a copy utility with adjustable buffer size, ie read 100megs pr. time before writing.. i dont know

help ?

Cy
 
Old 09-28-2007, 05:20 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I have been using True Crypt for over a year. I have found that it is (nearly) transparent as far as system performance is concerned and I'm still using 32 bit single core CPUs. I recently read an article on encrypting disk partitions on Linux. It may have been at Tom's Hardware but I'm not sure. Anyway True Crypt was either the best performer or nearly the best as regards to time.

Are you copying large files?

Are you copying files from one partition to another on the same disk?

How much RAM does your system have?

Is your system swapping at all?

When I have a customer with a disk that only passes 5 MB/sec I tell them that the disk is broken. Even a PATA ATA/100 disk should pass 15 MB/sec on average with bursts to 20 MB/sec. SATA disks should be noticeably faster.

I really don't understand the performance problem if your disk is healthy. What numbers do you see when you are copying files to an unencrypted partition on the same disk?

Last edited by stress_junkie; 09-28-2007 at 05:26 PM.
 
Old 09-30-2007, 04:36 PM   #3
cytg
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
yea, it was pretty good and fast under windows for sure too..

though i addressed the same question sometime later at the, perhaps more appropiate bbs, truecrypt forums.(had to find it first)

http://forums.truecrypt.org/viewtopic.php?t=7773

and it seems theres several issues with truecrypt under linux.

to answer your questions

1. Yes, anywhere from a few kb's to half gigs

2. Yes, its content from the same disc, from unencrypted ext3 to the 200G TC volume(wich would not mkfs with ext3, but reiserfs worked)

3. 2GB (P4 3.0ghz)

4. No swapping, just .. stalling/lagging


Even though its large files from disc1 to disc1 it should not stall(noticble with large files) the entire system and drop below 500kb/sec (for a large file??)

Its really rather depressing ..

Thanks for your time ...
 
Old 09-30-2007, 05:08 PM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
That True Crypt forum post is disappointing but I have never had performance problems with True Crypt. I've used various disk interfaces (Firewire, USB, PATA IDE) and it always performed like a champ. I can't tell that it is running on my workstation. I don't have it on a server yet.
 
Old 10-01-2007, 09:51 AM   #5
strick1226
Member
 
Registered: Feb 2005
Distribution: Arch, CentOS, Fedora, macOS, SLES, Ubuntu
Posts: 327

Rep: Reputation: 63
Performance can depend a great deal on just what encryption+hash algorithm you specify Truecrypt to use.

Even on a Windows box with an X2/4400 and a 10K Raptor TwoFish-Serpent+Whirlpool would cause severe IO lag.

The more CPU-intensive the encryption, the slower files will copy and--more importantly--the more "lag" you will see with disk operations.

Plain AES is nearly twice as fast as AES-Twofish; Serpent-Twofish-AES is less than half the speed of AES-Twofish... etc...


I recommend AES-Twofish+Whirlpool for balanced performance/security.

Try recreating the volume with lower encryption this time, and compare the results...
 
Old 10-01-2007, 10:03 AM   #6
cytg
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Actually i used the default settings (AES?) with regards to encryption, as i remembered, under windows, that it had the best performance.. so i dont think that is what is killing me..

looking into encfs at the moment though .. any thoughts on that ?

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg 7.0 performance on the desktop QtCoder Linux - Software 10 10-20-2005 03:15 PM
200G external usb hard disk problem CrystalAtom Linux - Hardware 0 12-01-2004 01:39 AM
Debian: Installing WD2000 as one 200G partition Xixulon Linux - Hardware 4 07-19-2004 03:57 PM
Gnome 2 desktop background lag miknight Linux - Software 12 03-27-2003 02:46 AM
RH 7.3 Desktop Environments and Performance bxb32001 Linux - Distributions 5 07-11-2002 09:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration