Macvlan consume 100% cpu

Hello,

We have an application running on Docker that have to handle something like 3000 clients.
This is a lan application and giving ip to clients via DHCP.
That’s why we choosen to use driver macvlan.
After few hours of use the kworker/u4 process of the host use 100% of one CPU core and stay stuck until reboot.

A trace of the process reveal that’s the process spend his time to deal with the following kernel function :
macvlan_process_broadcast

  1282 function=macvlan_process_broadcast
   922 function=blk_delay_work
   319 function=gc_worker
   270 function=cfq_kick_queue
    71 function=md_submit_flush_data
    64 function=vmstat_update
    39 function=vmstat_shepherd
    34 function=cache_reap
    28 function=wb_workfn
    22 function=free_work
    14 function=scsi_requeue_run_queue
    14 function=e1000_watchdog_task
    14 function=blk_timeout_work
     5 function=neigh_periodic_work
     1 function=br_fdb_cleanup
     1 function=addrconf_verify_work

Kernel : 4.14.15 (most recent kernel on macvlan.c patchs i guess) , support of overlay FS
Should we try ipvlan L2 ?
Some idea to debug the issue ?

EDIT : the problem appear only when we stop a container.
EDIT2 : we upgraded on docker-ce 18.03, it’s same.

Regards


Any update ?
The problem is also described here (lxc)

Also I did a trace of the process kworker with perf here de syscalls
# /root/perf-4.15 report | head -30

54.99%  kworker/u4:4     [kernel.kallsyms]     [k] inet_evict_bucket.isra.8
30.55%  kworker/u4:4     [kernel.kallsyms]     [k] _raw_spin_lock
13.00%  kworker/u4:4     [kernel.kallsyms]     [k] inet_frags_exit_net

Was a kernel problem.

What was the kernel issue? (the RC4 link above is just the one issue Linus opened to add a community message from him and I didn’t see anything earlier).