Skip to contentSkip to conversation

Ext4 performance regression: Post 2.6.30

DISCUSSION Keith Mannthey 3 participants 8 messages Mar 29, 2010 – Mar 31, 2010

lore
Share & tools
lore
#0 lore raw

After 2.6.30 I am seeing large performance regressions on a raid setup. I am working to publish a larger amount of data but I wanted to get some quick data out about what I am seeing.

The test (FFSB test suite) I am running is basically random direct io writes. The below data is from 128 threads all doing these random writes. 1 and 32 thread results are not as drastically bad but 2.6.30 has the strongest results.

Under a mailserver workload I see similar performance impacts at this
same kernel change point. I hope to publish better data soon. Several other workload types do not show this performance regression.

2.6.30:

Total Results
===============
Op Name Transactions Trans/sec % Trans % Op Weight
Throughput

             =======   ============	 =========	=======	    ===========
==========
               write :      9015040	  29561.46	100.000%		100.000%

115MB/sec
-
29561.46 Transactions per Second

Any kernel past 2.6.30. This is from 2.6.31-rc1:

Total Results
===============
Op Name Transactions Trans/sec % Trans % Op Weight
Throughput

             =======   ============	 =========	=======	    ===========
==========
               write :      3185920	  10120.50	100.000%		100.000%

39.5MB/sec

#1 lore raw
Quoted 6 lines · Keith Mannthey

After 2.6.30 I am seeing large performance regressions on a raid setup. I am working to publish a larger amount of data but I wanted to get some quick data out about what I am seeing.

Is mdraid involved?

They added barrier support for some configs after 2.6.30 I believe. It can cause a drastic perf change, but it increases reliability and is "correct".

Greg

#2 lore raw
Quoted 8 lines · Greg Freemyer
Quoted 6 lines · Keith Mannthey

After 2.6.30 I am seeing large performance regressions on a raid setup. I am working to publish a larger amount of data but I wanted to get some quick data out about what I am seeing.

Quoted 5 lines

Is mdraid involved?

They added barrier support for some configs after 2.6.30 I believe. It can cause a drastic perf change, but it increases reliability and is "correct".

lvm and device mapper are is involved. The git bisect just took me to:

374bf7e7f6cc38b0483351a2029a97910eadde1b is first bad commit commit 374bf7e7f6cc38b0483351a2029a97910eadde1b

Author: Mikulas Patocka <[email protected]>
Date:   Mon Jun 22 10:12:22 2009 +0100

dm: stripe support flush

Flush support for the stripe target.

This sets ti->num_flush_requests to the number of stripes and remaps individual flush requests to the appropriate stripe devices.

:040000 040000 542f4b9b442d1371c6534f333b7e00714ef98609 d490479b660139fc1b6b0ecd17bb58c9e00e597e M drivers

This may be correct behavior but the performance penalty in this test case is pretty high.

I am going to move back to current kernels and starting looking into ext4/dm flushing.

Thanks,
Keith Mannthey

#3 lore raw
Quoted 30 lines · Keith Mannthey
Quoted 11 lines · Greg Freemyer
Quoted 5 lines · Keith Mannthey

After 2.6.30 I am seeing large performance regressions on a raid setup. I am working to publish a larger amount of data but I wanted to get some quick data out about what I am seeing.

Is mdraid involved?

They added barrier support for some configs after 2.6.30 I believe. It can cause a drastic perf change, but it increases reliability and is "correct".

lvm and device mapper are is involved. The git bisect just took me to:

374bf7e7f6cc38b0483351a2029a97910eadde1b is first bad commit commit 374bf7e7f6cc38b0483351a2029a97910eadde1b

Author: Mikulas Patocka <[email protected]>
Date:   Mon Jun 22 10:12:22 2009 +0100

dm: stripe support flush

Flush support for the stripe target.

This sets ti->num_flush_requests to the number of stripes and remaps individual flush requests to the appropriate stripe devices.

Quoted 8 lines

:040000 040000 542f4b9b442d1371c6534f333b7e00714ef98609 d490479b660139fc1b6b0ecd17bb58c9e00e597e M drivers

This may be correct behavior but the performance penalty in this test case is pretty high.

I am going to move back to current kernels and starting looking into ext4/dm flushing.

It would probably be interesting to do a mount -o nobarrier to see if that makes the regression go away.

-Eric

Quoted 2 lines

Thanks,
Keith Mannthey

#4 lore raw
Quoted 34 lines · Eric Sandeen
Quoted 33 lines · Keith Mannthey
Quoted 11 lines · Greg Freemyer
Quoted 5 lines · Keith Mannthey

After 2.6.30 I am seeing large performance regressions on a raid setup. I am working to publish a larger amount of data but I wanted to get some quick data out about what I am seeing.

Is mdraid involved?

They added barrier support for some configs after 2.6.30 I believe. It can cause a drastic perf change, but it increases reliability and is "correct".

lvm and device mapper are is involved. The git bisect just took me to:

374bf7e7f6cc38b0483351a2029a97910eadde1b is first bad commit commit 374bf7e7f6cc38b0483351a2029a97910eadde1b

Author: Mikulas Patocka <[email protected]>
Date:   Mon Jun 22 10:12:22 2009 +0100

dm: stripe support flush

Flush support for the stripe target.

This sets ti->num_flush_requests to the number of stripes and remaps individual flush requests to the appropriate stripe devices.

:040000 040000 542f4b9b442d1371c6534f333b7e00714ef98609 d490479b660139fc1b6b0ecd17bb58c9e00e597e M drivers

Quoted 8 lines
Quoted 5 lines

This may be correct behavior but the performance penalty in this test case is pretty high.

I am going to move back to current kernels and starting looking into ext4/dm flushing.

It would probably be interesting to do a mount -o nobarrier to see if that makes the regression go away.

-o nobarrier takes the regression away with 2.6.34-rc3:

Default mount: ~27500

-o nobarrier: ~12500

Barriers on this setup cost ALOT during writes.

Interestingly as well the "mailserver" workload regression is also removed by mounting with "-o nobarrier".

I am going to see what impact is seen on a single disk setup.

Thanks,
Keith Mannthey
LTC FS-Dev

#5 lore raw
Quoted 52 lines · Keith Mannthey
Quoted 34 lines · Eric Sandeen
Quoted 33 lines · Keith Mannthey
Quoted 11 lines · Greg Freemyer
Quoted 5 lines · Keith Mannthey

After 2.6.30 I am seeing large performance regressions on a raid setup. I am working to publish a larger amount of data but I wanted to get some quick data out about what I am seeing.

Is mdraid involved?

They added barrier support for some configs after 2.6.30 I believe. It can cause a drastic perf change, but it increases reliability and is "correct".

lvm and device mapper are is involved.  The git bisect just took me to:

374bf7e7f6cc38b0483351a2029a97910eadde1b is first bad commit commit 374bf7e7f6cc38b0483351a2029a97910eadde1b
Author: Mikulas Patocka <[email protected]>
Date:   Mon Jun 22 10:12:22 2009 +0100

    dm: stripe support flush

    Flush support for the stripe target.

    This sets ti->num_flush_requests to the number of stripes and remaps individual flush requests to the appropriate stripe devices.

:040000 040000 542f4b9b442d1371c6534f333b7e00714ef98609 d490479b660139fc1b6b0ecd17bb58c9e00e597e M  drivers

Quoted 8 lines
Quoted 5 lines

This may be correct behavior but the performance penalty in this test case is pretty high.

I am going to move back to current kernels and starting looking into ext4/dm flushing.

It would probably be interesting to do a mount -o nobarrier to see if that makes the regression go away.

-o nobarrier takes the regression away with 2.6.34-rc3:

Default mount: ~27500

-o nobarrier: ~12500

Barriers on this setup cost ALOT during writes.

Quoted 8 lines

Interestingly as well the "mailserver" workload regression is also removed by mounting with "-o nobarrier".

I am going to see what impact is seen on a single disk setup.

Thanks,
 Keith Mannthey
 LTC FS-Dev

I'm curious if your using an internal or external journal?

I'd guess the cost of barriers is much greater with an internal journal, but I don't recall seeing any benchmarks one way or the other.

Greg
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
Quoted 56 lines · Greg Freemyer
Quoted 55 lines · Keith Mannthey
Quoted 34 lines · Eric Sandeen
Quoted 33 lines · Keith Mannthey
Quoted 11 lines · Greg Freemyer
Quoted 5 lines · Keith Mannthey

After 2.6.30 I am seeing large performance regressions on a raid setup. I am working to publish a larger amount of data but I wanted to get some quick data out about what I am seeing.

Is mdraid involved?

They added barrier support for some configs after 2.6.30 I believe. It can cause a drastic perf change, but it increases reliability and is "correct".

lvm and device mapper are is involved. The git bisect just took me to:

374bf7e7f6cc38b0483351a2029a97910eadde1b is first bad commit commit 374bf7e7f6cc38b0483351a2029a97910eadde1b

Author: Mikulas Patocka <[email protected]>
Date:   Mon Jun 22 10:12:22 2009 +0100

dm: stripe support flush

Flush support for the stripe target.

This sets ti->num_flush_requests to the number of stripes and remaps individual flush requests to the appropriate stripe devices.

:040000 040000 542f4b9b442d1371c6534f333b7e00714ef98609 d490479b660139fc1b6b0ecd17bb58c9e00e597e M drivers

Quoted 8 lines
Quoted 5 lines

This may be correct behavior but the performance penalty in this test case is pretty high.

I am going to move back to current kernels and starting looking into ext4/dm flushing.

It would probably be interesting to do a mount -o nobarrier to see if that makes the regression go away.

-o nobarrier takes the regression away with 2.6.34-rc3:

Default mount: ~27500

-o nobarrier: ~12500

Barriers on this setup cost ALOT during writes.

Interestingly as well the "mailserver" workload regression is also removed by mounting with "-o nobarrier".

Quoted 7 lines
Quoted 5 lines

I am going to see what impact is seen on a single disk setup.

Thanks,
Keith Mannthey
LTC FS-Dev

I'm curious if your using an internal or external journal?

I am unsure. How do I tell? I am using defaults except with the -o
nobarrier. I know jdb2 is being used.

Thanks,
Keith

Quoted 5 lines

I'd guess the cost of barriers is much greater with an internal journal, but I don't recall seeing any benchmarks one way or the other.

Greg

#7 lore raw
Quoted 65 lines · Keith Mannthey
Quoted 56 lines · Greg Freemyer
Quoted 55 lines · Keith Mannthey
Quoted 34 lines · Eric Sandeen
Quoted 33 lines · Keith Mannthey
Quoted 11 lines · Greg Freemyer
Quoted 5 lines · Keith Mannthey

After 2.6.30 I am seeing large performance regressions on a raid setup. I am working to publish a larger amount of data but I wanted to get some quick data out about what I am seeing.

Is mdraid involved?

They added barrier support for some configs after 2.6.30 I believe. It can cause a drastic perf change, but it increases reliability and is "correct".

lvm and device mapper are is involved.  The git bisect just took me to:

374bf7e7f6cc38b0483351a2029a97910eadde1b is first bad commit commit 374bf7e7f6cc38b0483351a2029a97910eadde1b
Author: Mikulas Patocka <[email protected]>
Date:   Mon Jun 22 10:12:22 2009 +0100

    dm: stripe support flush

    Flush support for the stripe target.

    This sets ti->num_flush_requests to the number of stripes and remaps individual flush requests to the appropriate stripe devices.

:040000 040000 542f4b9b442d1371c6534f333b7e00714ef98609 d490479b660139fc1b6b0ecd17bb58c9e00e597e M  drivers

Quoted 8 lines
Quoted 5 lines

This may be correct behavior but the performance penalty in this test case is pretty high.

I am going to move back to current kernels and starting looking into ext4/dm flushing.

It would probably be interesting to do a mount -o nobarrier to see if that makes the regression go away.

-o nobarrier takes the regression away with 2.6.34-rc3:

Default mount: ~27500

-o nobarrier: ~12500

Barriers on this setup cost ALOT during writes.

Interestingly as well the "mailserver" workload regression is also removed by mounting with "-o nobarrier".

Quoted 7 lines
Quoted 5 lines

I am going to see what impact is seen on a single disk setup.

Thanks,
 Keith Mannthey
 LTC FS-Dev

I'm curious if your using an internal or external journal?

Quoted 5 lines

I am unsure.  How do I tell?  I am using defaults except with the -o nobarrier.   I know jdb2 is being used.

Thanks,
 Keith

The default is internal. External requires a separate partition be provided to hold the journal.

Since journals are typically very small relative to the overall filesystem, a small raid 1 partition would be my production recommendation to hold an external journal.

But for performance testing purposes, if you have a drive that is not participating in your current raid setup, you can simply create a small partition on it and use it to hold the external journal. I believe you can convert your existing file system to an external journal easily and without having to recreate your file system.

Greg
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html