We ran our own benchmarks with a few specific tweaks to show you the real difference.

Benchmarks

To benchmark our disk, we used thePhoronix Test Suite.

Prominent Tweaks

There are quite a few changes that people recommend when upgrading to an SSD.

How to Tweak Your SSD in Ubuntu for Better Performance

Enabling TRIM

you’ve got the option to enable TRIM to help manage disk performance over the long-term.

Tmpfs

The system cache is stored in /tmp.

Switching IO Schedulers

Your system doesn’t write all changes to disk immediately, and multiple requests get queued.

systems

You should see a few different options.

If not, you should be able to use noop without problems.

Look over everything to ensure it looks good.

noatime

Then, hit CTRL+O to save, then CTRL+X to quit.

Restart

In order for all these changes to go into effect, you gotta restart.

After that, you should be all set.

cfq

it’s possible for you to even use aLiveCD or LiveUSB to recoverif you want.

Benchmarking Results

To perform the benchmarks, we ran the disk suite of tests.

You’ll see a brief explanation of what the test measures as well as an interpretation of the results.

rclocal

Large File Operations

This test compresses a 2GB file with random data and writes it to disk.

The SSD tweaks here show in a roughly 40% improvement.

IOzone simulates file system performance, in this case by writing an 8GB file.

1

Again, an almost 50% increase.

Here, an 8GB file is read.

The results are almost the same as without adjusting ext4.

1

AIO-Stress asynchronously tests input and output, using a 2GB test file and a 64KB record size.

Here, there’s almost a 200% increase in performance compared to vanilla ext4!

Small File Operations

An SQLite database is created and PTS adds 12,500 records to it.

5

The SSD tweaks here actually slowed down performance by about 10%.

The Apache Benchmark tests random reads of small files.

There was about a 25% performance gain after optimizing our SSD.

5

This simulates web and mail servers pretty well, and we see a 16% performance increase after tweaking.

Our tweaks see an increase, again, with smaller file sizes.

About a 45% increase with ext4 adjustments.

6

you’re free to see that as the number of clients goes up, the performance discrepancy increases.

With 128 clients, the performance is almost the same.

This test depends on the kernel’s AIO access library.

6

we’ve got a 20% improvement here.

While writing 64MB of data with 32 threads, we still have a 75% increase in performance.

This benchmarks simply measures how long it takes to extract the Linux kernel.

16

Not too much of an increase in performance here.

Summary

The adjustments we made to Ubuntu’s out-of-the-box ext4 configuration did have quite an impact.

Keep in mind that this was specifically with Ubuntu Natty 64-bit.

16

If your system or SSD is different, your mileage may vary.

2

2

3

3

15

15

11

11

7

7

8

8

9

9

10

10

12

12

13

13

14

14

4

4

17

17

overview

overview