Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I added these tweaks from Ubuntu SSD Tweak and Ubuntu Tweaks but now Texmaker is compiling slowly. Does someone know what tweak would be causing this? Or could I edit something unrelated to the tweaks to get Texmaker to compile as it did previously?

2nd Gen intel i5, 16GB Cosair ram, 240GB Cosair Force series GT, NTFS, quick build LaTex to PDF

share|improve this question
    
In case you don't get a suitable answer here, consider asking at tex.stackexchange.com . –  user25656 Mar 24 '13 at 6:18
add comment

1 Answer

up vote 3 down vote accepted

Both guides you link to have you enable the discard mount option for your filesystem. In my experience, this kills performance. On every sync after a file has been deleted, a TRIM request gets sent, causing the disk to freeze up for 2 to 3 seconds. (This will be hardware-dependent.)

To see whether this is the problem, try testing fsync performance as suggested in this thread:

Running Theodore Ts'os "fsync-tester" while doing Linus' torture test

while : ; do time sh -c "dd if=/dev/zero of=bigfile bs=8M count=256 ; sync; rm bigfile"; done

shows it clearly

Sync should be fast on an SSD. In my case and that poster's case, each sync causes a lockup of several seconds. See also https://patrick-nagel.net/blog/archives/337 for a similar example.

If you see similar behavior, you should disable automatic TRIM by removing the discard option from your fstab. (But keep the noatime or relatime option that you probably added.)

Instead, periodically run fstrim on your filesystem, e.g. using cron. Several ways to do this are given in this article. This way you should still get the benefits of TRIM without the performance problems.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.