Skip to contentSkip to conversation

NFS/RDMA client patches for 3.17

PATCH Superseded Chuck Lever 3 participants 8 messages Jul 15, 2014 – Jul 17, 2014

Subsystems (3)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v3 cover NFS/RDMA client patches for 3.17

The main purpose of this series is to address connection drop recovery issues by fixing FRMR re-use to make it less likely the client will deadlock due to a memory management operation error.

Some clean-ups and other fixes are present as well.

See topic branch nfs-rdma-for-3.17 in

git://git.linux-nfs.org/projects/cel/cel-2.6.git

I tested with NFSv3 and NFSv4 on all three supported memory registration modes. Used cthon04, iozone, and dbench with both Solaris and Linux NFS/RDMA servers. Used xfstests with Linux.

v3:
Only two substantive changes:

- Patch 08/21 now uses generic IB helpers for managing FRMR rkeys

- Add Tested-by: from Steve Wise

v2:
Many patches from v1 have been written or replaced.

The MW ref counting approach in v1 is abandoned. Instead, I've eliminated signaling FAST_REG_MR and LOCAL_INV, and added appropriate recovery mechanisms after a transport reconnect that should prevent rkey dis-synchrony entirely.

A couple of optimizations have been added, including:

- Allocating each MW separately rather than carving each out of a large piece of contiguous memory

- Now that the receive CQ upcall handler dequeues a bundle of CQEs at once, fire off the reply handler tasklet just once per upcall to reduce context switches and how often hard IRQs are disabled

Jury is still out on the latter.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com

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

#1 lore raw

These two patches have been significant reduced interrupt rate by around 4 times.

xprtrdma: Disable completions for FAST_REG_MR Work Requests
xprtrdma: Disable completions for LOCAL_INV Work Requests

Same NFS read/write workload, here are interrupts rate irq/per sec report based upon /proc/interrupts:

w/o patches:
-----------

PCI-MSI-edge mlx4-ib (204):  105176
PCI-MSI-edge mlx4-ib (204):  123650
PCI-MSI-edge mlx4-ib (204):  123690
PCI-MSI-edge mlx4-ib (204):  116554
PCI-MSI-edge mlx4-ib (204):  122864

And perf stat irq report:
Performance counter stats for 'system wide':

         2,131,870      irq:irq_handler_entry                                        [100.00%]
         2,131,870      irq:irq_handler_exit                                         [100.00%]
           635,587      irq:softirq_entry                                            [100.00%]
           635,597      irq:softirq_exit                                             [100.00%]
           636,155      irq:softirq_raise
      25.422821792 seconds time elapsed

w/i patches:
-----------

PCI-MSI-edge mlx4-ib (204):  31131
PCI-MSI-edge mlx4-ib (204):  32958
PCI-MSI-edge mlx4-ib (204):  31068
PCI-MSI-edge mlx4-ib (204):  30236
PCI-MSI-edge mlx4-ib (204):  33041

And perf stat irq report:

Performance counter stats for 'system wide':

           653,548      irq:irq_handler_entry                                        [100.00%]
           653,548      irq:irq_handler_exit                                         [100.00%]
           568,138      irq:softirq_entry                                            [100.00%]
           568,148      irq:softirq_exit                                             [100.00%]
           568,690      irq:softirq_raise                                           
      21.675597062 seconds time elapsed

Shirley

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

#2 lore raw
Quoted 7 lines · Shirley Ma

These two patches have been significant reduced interrupt rate by around 4 times.

xprtrdma: Disable completions for FAST_REG_MR Work Requests
xprtrdma: Disable completions for LOCAL_INV Work Requests

Thanks Shirley! This is result applies only to FRMR, correct? Also, i'd imagine the savings would be even greater for adapters that have short page list depth?

Quoted 40 lines

Same NFS read/write workload, here are interrupts rate irq/per sec report based upon /proc/interrupts:

w/o patches:
-----------

PCI-MSI-edge mlx4-ib (204):  105176
PCI-MSI-edge mlx4-ib (204):  123650
PCI-MSI-edge mlx4-ib (204):  123690
PCI-MSI-edge mlx4-ib (204):  116554
PCI-MSI-edge mlx4-ib (204):  122864

And perf stat irq report:
Performance counter stats for 'system wide':

        2,131,870      irq:irq_handler_entry                                        [100.00%]
        2,131,870      irq:irq_handler_exit                                         [100.00%]
          635,587      irq:softirq_entry                                            [100.00%]
          635,597      irq:softirq_exit                                             [100.00%]
          636,155      irq:softirq_raise
     25.422821792 seconds time elapsed

w/i patches:
-----------

PCI-MSI-edge mlx4-ib (204):  31131
PCI-MSI-edge mlx4-ib (204):  32958
PCI-MSI-edge mlx4-ib (204):  31068
PCI-MSI-edge mlx4-ib (204):  30236
PCI-MSI-edge mlx4-ib (204):  33041

And perf stat irq report:

Performance counter stats for 'system wide':

          653,548      irq:irq_handler_entry                                        [100.00%]
          653,548      irq:irq_handler_exit                                         [100.00%]
          568,138      irq:softirq_entry                                            [100.00%]
          568,148      irq:softirq_exit                                             [100.00%]
          568,690      irq:softirq_raise                                           
Quoted 8 lines
     21.675597062 seconds time elapsed

Shirley

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

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

#3 lore raw
Quoted 9 lines · Chuck Lever
Quoted 7 lines · Shirley Ma

These two patches have been significantly reduced interrupt rate by around 4 times.

xprtrdma: Disable completions for FAST_REG_MR Work Requests
xprtrdma: Disable completions for LOCAL_INV Work Requests

Thanks Shirley! This is result applies only to FRMR, correct? Also, i'd imagine the savings would be even greater for adapters that have short page list depth?

Yes, only tested FRMR with mlx4. I can hack the code to test short page page list depth to check the savings. When looking the difference between irq and softirq, it is much closer now.

Quoted 45 lines
Quoted 45 lines

Same NFS read/write workload, here are interrupts rate irq/per sec report based upon /proc/interrupts:

w/o patches:
-----------

PCI-MSI-edge mlx4-ib (204):  105176
PCI-MSI-edge mlx4-ib (204):  123650
PCI-MSI-edge mlx4-ib (204):  123690
PCI-MSI-edge mlx4-ib (204):  116554
PCI-MSI-edge mlx4-ib (204):  122864

And perf stat irq report:
Performance counter stats for 'system wide':

        2,131,870      irq:irq_handler_entry                                        [100.00%]
        2,131,870      irq:irq_handler_exit                                         [100.00%]
          635,587      irq:softirq_entry                                            [100.00%]
          635,597      irq:softirq_exit                                             [100.00%]
          636,155      irq:softirq_raise
     25.422821792 seconds time elapsed

w/i patches:
-----------

PCI-MSI-edge mlx4-ib (204):  31131
PCI-MSI-edge mlx4-ib (204):  32958
PCI-MSI-edge mlx4-ib (204):  31068
PCI-MSI-edge mlx4-ib (204):  30236
PCI-MSI-edge mlx4-ib (204):  33041

And perf stat irq report:

Performance counter stats for 'system wide':

          653,548      irq:irq_handler_entry                                        [100.00%]
          653,548      irq:irq_handler_exit                                         [100.00%]
          568,138      irq:softirq_entry                                            [100.00%]
          568,148      irq:softirq_exit                                             [100.00%]
          568,690      irq:softirq_raise                                           
     21.675597062 seconds time elapsed

Shirley

Quoted 9 lines
Quoted 4 lines

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

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

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

#4 lore raw
In reply to Chuck Lever

Hi Chuck,

Tested v3 with ocrdma (linux-3.16-rc5 inbox`ed ocrdma). Both Cthon and iozone passes with and regressions. I will perform cable pull test as well and get back to you.

-Regards
Devesh

Quoted 55 lines

-----Original Message-----
From: [email protected] [mailto:linux-rdma- [email protected]] On Behalf Of Chuck Lever
Sent: Tuesday, July 15, 2014 7:54 PM
To: linux-rdma; Linux NFS Mailing List
Subject: [PATCH v3 00/21] NFS/RDMA client patches for 3.17

The main purpose of this series is to address connection drop recovery issues by fixing FRMR re-use to make it less likely the client will deadlock due to a memory management operation error.

Some clean-ups and other fixes are present as well.

See topic branch nfs-rdma-for-3.17 in

git://git.linux-nfs.org/projects/cel/cel-2.6.git

I tested with NFSv3 and NFSv4 on all three supported memory registration modes. Used cthon04, iozone, and dbench with both Solaris and Linux NFS/RDMA servers. Used xfstests with Linux.

v3:
Only two substantive changes:

- Patch 08/21 now uses generic IB helpers for managing FRMR rkeys

- Add Tested-by: from Steve Wise

v2:
Many patches from v1 have been written or replaced.

The MW ref counting approach in v1 is abandoned. Instead, I've eliminated signaling FAST_REG_MR and LOCAL_INV, and added appropriate recovery mechanisms after a transport reconnect that should prevent rkey dis- synchrony entirely.

A couple of optimizations have been added, including:

- Allocating each MW separately rather than carving each out of a large piece of contiguous memory

- Now that the receive CQ upcall handler dequeues a bundle of CQEs at once, fire off the reply handler tasklet just once per upcall to reduce context switches and how often hard IRQs are disabled

Jury is still out on the latter.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com

Quoted 4 lines

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

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

#5 lore raw

Hi Chuck,

Tested the cable pull also. V3 is passing the cable pull test also. I have tried following tests:

Run iozone on nfs-rdma mount.
Bring down the link from switch (to simulate cable pull). Wait for 10 secs.
Bring back the link.
This test passes, iozone resumes traffic.

Run iozone on nfs-rdma mount.
Bring down the link from switch (to simulate cable pull). Wait for 70 secs.
Bring back the link.
This test passes, iozone resumes traffic.

Quoted 76 lines

-----Original Message-----
From: [email protected] [mailto:linux-rdma- [email protected]] On Behalf Of Devesh Sharma
Sent: Thursday, July 17, 2014 10:37 AM
To: Chuck Lever; linux-rdma; Linux NFS Mailing List
Subject: RE: [PATCH v3 00/21] NFS/RDMA client patches for 3.17

Hi Chuck,

Tested v3 with ocrdma (linux-3.16-rc5 inbox`ed ocrdma). Both Cthon and iozone passes with and regressions. I will perform cable pull test as well and get back to you.

-Regards
Devesh

Quoted 27 lines

-----Original Message-----
From: [email protected] [mailto:linux-rdma- [email protected]] On Behalf Of Chuck Lever
Sent: Tuesday, July 15, 2014 7:54 PM
To: linux-rdma; Linux NFS Mailing List
Subject: [PATCH v3 00/21] NFS/RDMA client patches for 3.17

The main purpose of this series is to address connection drop recovery issues by fixing FRMR re-use to make it less likely the client will deadlock due to a memory management operation error.

Some clean-ups and other fixes are present as well.

See topic branch nfs-rdma-for-3.17 in

git://git.linux-nfs.org/projects/cel/cel-2.6.git

I tested with NFSv3 and NFSv4 on all three supported memory registration modes. Used cthon04, iozone, and dbench with both Solaris and Linux NFS/RDMA servers. Used xfstests with Linux.

v3:
Only two substantive changes:

- Patch 08/21 now uses generic IB helpers for managing FRMR rkeys

Quoted 8 lines

- Add Tested-by: from Steve Wise

v2:
Many patches from v1 have been written or replaced.

The MW ref counting approach in v1 is abandoned. Instead, I've eliminated signaling FAST_REG_MR and LOCAL_INV, and added

appropriate

Quoted 20 lines

recovery mechanisms after a transport reconnect that should prevent rkey dis- synchrony entirely.

A couple of optimizations have been added, including:

- Allocating each MW separately rather than carving each out of a large piece of contiguous memory

- Now that the receive CQ upcall handler dequeues a bundle of CQEs at once, fire off the reply handler tasklet just once per upcall to reduce context switches and how often hard IRQs are disabled

Jury is still out on the latter.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com

Quoted 3 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More

Quoted 6 lines

majordomo

Quoted 1 line

info at http://vger.kernel.org/majordomo-info.html

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

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

#6 lore raw
Quoted 10 lines · Devesh Sharma

Hi Chuck,

Tested the cable pull also. V3 is passing the cable pull test also. I have tried following tests:

Run iozone on nfs-rdma mount.
Bring down the link from switch (to simulate cable pull). Wait for 10 secs.
Bring back the link.
This test passes, iozone resumes traffic.

Quoted 5 lines

Run iozone on nfs-rdma mount.
Bring down the link from switch (to simulate cable pull). Wait for 70 secs.
Bring back the link.
This test passes, iozone resumes traffic.

Thanks Devesh!

May I add "Tested-by: Devesh Sharma <[email protected]>” ?

Quoted 79 lines
Quoted 79 lines

-----Original Message-----
From: [email protected] [mailto:linux-rdma- [email protected]] On Behalf Of Devesh Sharma
Sent: Thursday, July 17, 2014 10:37 AM
To: Chuck Lever; linux-rdma; Linux NFS Mailing List
Subject: RE: [PATCH v3 00/21] NFS/RDMA client patches for 3.17

Hi Chuck,

Tested v3 with ocrdma (linux-3.16-rc5 inbox`ed ocrdma). Both Cthon and iozone passes with and regressions. I will perform cable pull test as well and get back to you.

-Regards
Devesh

Quoted 27 lines

-----Original Message-----
From: [email protected] [mailto:linux-rdma- [email protected]] On Behalf Of Chuck Lever
Sent: Tuesday, July 15, 2014 7:54 PM
To: linux-rdma; Linux NFS Mailing List
Subject: [PATCH v3 00/21] NFS/RDMA client patches for 3.17

The main purpose of this series is to address connection drop recovery issues by fixing FRMR re-use to make it less likely the client will deadlock due to a memory management operation error.

Some clean-ups and other fixes are present as well.

See topic branch nfs-rdma-for-3.17 in

git://git.linux-nfs.org/projects/cel/cel-2.6.git

I tested with NFSv3 and NFSv4 on all three supported memory registration modes. Used cthon04, iozone, and dbench with both Solaris and Linux NFS/RDMA servers. Used xfstests with Linux.

v3:
Only two substantive changes:

- Patch 08/21 now uses generic IB helpers for managing FRMR rkeys

Quoted 8 lines

- Add Tested-by: from Steve Wise

v2:
Many patches from v1 have been written or replaced.

The MW ref counting approach in v1 is abandoned. Instead, I've eliminated signaling FAST_REG_MR and LOCAL_INV, and added

appropriate

Quoted 20 lines

recovery mechanisms after a transport reconnect that should prevent rkey dis- synchrony entirely.

A couple of optimizations have been added, including:

- Allocating each MW separately rather than carving each out of a large piece of contiguous memory

- Now that the receive CQ upcall handler dequeues a bundle of CQEs at once, fire off the reply handler tasklet just once per upcall to reduce context switches and how often hard IRQs are disabled

Jury is still out on the latter.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com

Quoted 3 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More

majordomo

Quoted 1 line

info at http://vger.kernel.org/majordomo-info.html

Quoted 8 lines
Quoted 4 lines

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

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

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com

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

#7 lore raw

Yes, kindly do it. However, I have tested this only with ocrdma

-Regards
Devesh

Quoted 118 lines

-----Original Message-----
From: Chuck Lever [mailto:[email protected]]
Sent: Thursday, July 17, 2014 7:46 PM
To: Devesh Sharma
Cc: linux-rdma; Linux NFS Mailing List
Subject: Re: [PATCH v3 00/21] NFS/RDMA client patches for 3.17

Quoted 3 lines · Devesh Sharma

Hi Chuck,

Tested the cable pull also. V3 is passing the cable pull test also. I have tried

following tests:

Quoted 7 lines

Run iozone on nfs-rdma mount.
Bring down the link from switch (to simulate cable pull). Wait for 10 secs.
Bring back the link.
This test passes, iozone resumes traffic.

Quoted 5 lines

Run iozone on nfs-rdma mount.
Bring down the link from switch (to simulate cable pull). Wait for 70 secs.
Bring back the link.
This test passes, iozone resumes traffic.

Thanks Devesh!

May I add "Tested-by: Devesh Sharma <[email protected]>" ?

Quoted 73 lines
Quoted 73 lines

-----Original Message-----
From: [email protected] [mailto:linux-rdma- [email protected]] On Behalf Of Devesh Sharma
Sent: Thursday, July 17, 2014 10:37 AM
To: Chuck Lever; linux-rdma; Linux NFS Mailing List
Subject: RE: [PATCH v3 00/21] NFS/RDMA client patches for 3.17

Hi Chuck,

Tested v3 with ocrdma (linux-3.16-rc5 inbox`ed ocrdma). Both Cthon and iozone passes with and regressions. I will perform cable pull test as well and get back to you.

-Regards
Devesh

Quoted 26 lines

-----Original Message-----
From: [email protected] [mailto:linux-rdma- [email protected]] On Behalf Of Chuck Lever
Sent: Tuesday, July 15, 2014 7:54 PM
To: linux-rdma; Linux NFS Mailing List
Subject: [PATCH v3 00/21] NFS/RDMA client patches for 3.17

The main purpose of this series is to address connection drop recovery issues by fixing FRMR re-use to make it less likely the client will deadlock due to a memory management operation error.

Some clean-ups and other fixes are present as well.

See topic branch nfs-rdma-for-3.17 in

git://git.linux-nfs.org/projects/cel/cel-2.6.git

I tested with NFSv3 and NFSv4 on all three supported memory registration modes. Used cthon04, iozone, and dbench with both Solaris and Linux NFS/RDMA servers. Used xfstests with Linux.

v3:
Only two substantive changes:

- Patch 08/21 now uses generic IB helpers for managing FRMR rkeys

Quoted 8 lines

- Add Tested-by: from Steve Wise

v2:
Many patches from v1 have been written or replaced.

The MW ref counting approach in v1 is abandoned. Instead, I've eliminated signaling FAST_REG_MR and LOCAL_INV, and added

appropriate

Quoted 20 lines

recovery mechanisms after a transport reconnect that should prevent rkey dis- synchrony entirely.

A couple of optimizations have been added, including:

- Allocating each MW separately rather than carving each out of a large piece of contiguous memory

- Now that the receive CQ upcall handler dequeues a bundle of CQEs at once, fire off the reply handler tasklet just once per upcall to reduce context switches and how often hard IRQs are disabled

Jury is still out on the latter.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More

majordomo

Quoted 1 line

info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More

majordomo

Quoted 4 lines
Quoted 1 line

info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More

Quoted 8 lines

majordomo

Quoted 1 line

info at http://vger.kernel.org/majordomo-info.html

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com

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