From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [RFC PATCH] ip: re-introduce fragments cache worker Date: Fri, 6 Jul 2018 07:37:36 -0700 Message-ID: References: <6512d94713d40f1d572d2023168c48990f0d9cf0.1530798211.git.pabeni@redhat.com> <51ef14ac-1d98-ad75-d282-eb6cb177fe7a@gmail.com> <1df6b0ea-885b-7d5e-a0c9-e01a5a33a4f2@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , Eric Dumazet , Florian Westphal , NeilBrown To: Paolo Abeni , Eric Dumazet , netdev@vger.kernel.org Return-path: Received: from mail-oi0-f66.google.com ([209.85.218.66]:40421 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753804AbeGFOhk (ORCPT ); Fri, 6 Jul 2018 10:37:40 -0400 Received: by mail-oi0-f66.google.com with SMTP id w126-v6so23857799oie.7 for ; Fri, 06 Jul 2018 07:37:40 -0700 (PDT) In-Reply-To: Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 07/06/2018 06:56 AM, Paolo Abeni wrote: > With: > > schedule_work_on(smp_processor_id(), #... ) > > We can be sure to run exclusively on the cpu handling the RX queue even with the worker. > Make sure to test your patch with 16 RX queues (16 cpus) feeding the defrag unit. In this (common) mode, then having one cpu trying to purge frags wont be enough. Really the GC can not cope with DDOS, we tried that in the past (IPv4 route cache) and failed miserably.