High Performance P4 Software Switch - Week 4

Yuri Iozzelli y.iozzelli at gmail.com
Mon Jun 20 13:07:49 UTC 2016


Hi

Project summary
========================

In this project I would like to implement a modified version of the
reference p4 (http://p4.org) switch on FreeBSD, which uses netmap for
faster packet I/O: the goal would be reaching the 1 Mpps order-of-magnitude
speed (current reference implementation is limited to 150 Kpps for a simple
l2 switch with 2 hosts).


Week 4
=========================

I replaced default malloc implementation with tcmalloc, because it performs
better when most object are created in one thread and destroyed in another.
I implemented a lock-free single producer/single consumer queue to replace
the default one (which uses a mutex for push/pop operations), for a
substantial performance improvement.


Links:
  Wiki page:
https://wiki.freebsd.org/SummerOfCode2016/HighPerformanceP4SoftwareSwitch#preview
 Code (gsoc-* branches):
https://github.com/zarghul/behavioral-model

Regards,
Yuri Iozzelli


More information about the soc-status mailing list