Threaded Network Interrupts Steven Rostedt srostedt@redhat.com - - PowerPoint PPT Presentation

threaded network interrupts
SMART_READER_LITE
LIVE PREVIEW

Threaded Network Interrupts Steven Rostedt srostedt@redhat.com - - PowerPoint PPT Presentation

Threaded Network Interrupts Steven Rostedt srostedt@redhat.com <rostedt@goodmis.org> http://people.redhat.com/srostedt network-thread-irq.odp Disclaimer I'm not a network guru I had to fight for the hardware I have Threaded Interrupts


slide-1
SLIDE 1

Threaded Network Interrupts

Steven Rostedt srostedt@redhat.com <rostedt@goodmis.org> http://people.redhat.com/srostedt network-thread-irq.odp

slide-2
SLIDE 2

Disclaimer

I'm not a network guru I had to fight for the hardware I have

slide-3
SLIDE 3

Threaded Interrupts

  • Similar to NAPI code
  • Interrupt comes in, disable the device
  • Thread is awoken
  • Thread polls on device, processing packets
  • Finished and enables device
slide-4
SLIDE 4

Benchmarking

  • On my 1Gb NICs, all kernels had same result

in netperf

– Saturated network

  • 10 Gig NIC

– Could not get working with the threaded

infrastructure

  • I'm not a network device expert

– Decided to just give up and test with the RT

patch

  • This is far from optimizing the design
slide-5
SLIDE 5

Benchmark Machine

  • Two Nehalem machines
  • 2 x 4 core Intel Xeons
  • Chelsio Communications Inc T310 10GbE

Single Port Adapter

slide-6
SLIDE 6

Benchmark

  • Ran netperf -H host
  • Red Hat Enterprise Linux 5.4
  • Full Preempt Real Time Patch (PREEMPT_RT)

– 2.6.31-rt10

  • Hard and Soft interrupts as threads

– RT patch without PREEMPT_RT enabled

  • Soft interrupts as threads

– RT patch with only PREEMPT_SOFTIRQ set

  • Vanilla Linus Kernel

– 2.6.31 downloaded from kernel.org

slide-7
SLIDE 7
slide-8
SLIDE 8
slide-9
SLIDE 9
slide-10
SLIDE 10
slide-11
SLIDE 11
slide-12
SLIDE 12
slide-13
SLIDE 13
slide-14
SLIDE 14
slide-15
SLIDE 15
slide-16
SLIDE 16
slide-17
SLIDE 17
slide-18
SLIDE 18

Cons

  • Horrible latency on server config (no kernel

preemption)

  • Redesign of network infrastructure
slide-19
SLIDE 19

Pros

  • Can schedule in handler
  • Easier locking algorithms
  • Prioritize interrupts
  • Smoother desktop experience
slide-20
SLIDE 20

Discussion

slide-21
SLIDE 21

1

Threaded Network Interrupts

Steven Rostedt srostedt@redhat.com <rostedt@goodmis.org> http://people.redhat.com/srostedt network-thread-irq.odp

slide-22
SLIDE 22

2

Disclaimer

I'm not a network guru I had to fight for the hardware I have

slide-23
SLIDE 23

3

Threaded Interrupts

  • Similar to NAPI code
  • Interrupt comes in, disable the device
  • Thread is awoken
  • Thread polls on device, processing packets
  • Finished and enables device
slide-24
SLIDE 24

4

Benchmarking

  • On my 1Gb NICs, all kernels had same result

in netperf

– Saturated network

  • 10 Gig NIC

– Could not get working with the threaded

infrastructure

  • I'm not a network device expert

– Decided to just give up and test with the RT

patch

  • This is far from optimizing the design
slide-25
SLIDE 25

5

Benchmark Machine

  • Two Nehalem machines
  • 2 x 4 core Intel Xeons
  • Chelsio Communications Inc T310 10GbE

Single Port Adapter

slide-26
SLIDE 26

6

Benchmark

  • Ran netperf -H host
  • Red Hat Enterprise Linux 5.4
  • Full Preempt Real Time Patch (PREEMPT_RT)

– 2.6.31-rt10

  • Hard and Soft interrupts as threads

– RT patch without PREEMPT_RT enabled

  • Soft interrupts as threads

– RT patch with only PREEMPT_SOFTIRQ set

  • Vanilla Linus Kernel

– 2.6.31 downloaded from kernel.org

slide-27
SLIDE 27

7

slide-28
SLIDE 28

8

slide-29
SLIDE 29

9

slide-30
SLIDE 30

10

slide-31
SLIDE 31

11

slide-32
SLIDE 32

12

slide-33
SLIDE 33

13

slide-34
SLIDE 34

14

slide-35
SLIDE 35

15

slide-36
SLIDE 36

16

slide-37
SLIDE 37

17

slide-38
SLIDE 38

18

Cons

  • Horrible latency on server config (no kernel

preemption)

  • Redesign of network infrastructure
slide-39
SLIDE 39

19

Pros

  • Can schedule in handler
  • Easier locking algorithms
  • Prioritize interrupts
  • Smoother desktop experience
slide-40
SLIDE 40

20

Discussion