Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 . – user25656 Mar 24 '13 at 6:18
up vote 4 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 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

Your Answer


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.