Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63B72C636D4 for ; Fri, 17 Feb 2023 12:23:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230022AbjBQMXr (ORCPT ); Fri, 17 Feb 2023 07:23:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbjBQMXp (ORCPT ); Fri, 17 Feb 2023 07:23:45 -0500 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F18C16607D for ; Fri, 17 Feb 2023 04:23:42 -0800 (PST) Received: by mail-vs1-xe2a.google.com with SMTP id c22so2563715vsk.12 for ; Fri, 17 Feb 2023 04:23:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1676636622; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sgY+TO8yISM6HZsPpSOg1kNbConbu1J0jamlIWfyT+A=; b=dbSPFyN7puk8NhJQP+ZCyy81uhrT0RNdw9cQK026j1bDOoyHDwClWNSN252sYa3X4b bGi3fJWF8wM3vNcrPQGqBfaZL+lO7LiBF+g4omqvaqh8TMKg2KdGl546aNo9lQdjudv/ j7OIP1NOGd4emh+zI6xOoAbFG34JPXdsX4oObg9XQLwNwApBgWrNb+2f1URnPD14od70 WP+YpiN7CdBYDarKkWn8KUvywMnVsnu4Rh9QVLOnyRulkyS3xvWROhbzgDZVr5yVWpid 7+wyjEoypoWxri9vaqYR4nFD9lOSBYhsXR4C4lvlPJdoqCVhp36tngX+Tze00/fsTSMO 8wyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1676636622; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sgY+TO8yISM6HZsPpSOg1kNbConbu1J0jamlIWfyT+A=; b=LzmZYrxV3D7szPa5jhdoyPYzRKALRP5yJ9RtHhCUejKjUmbh/8rd3KW3szJA/joUuk hmRpIuNuvM+/7BWpD/wXP5ZoaqY/0Z/c+m7tf+fejIFTwwGltAf1/rjaBW/V3n/8gnfM 3rBTdRkpXT15uhLlwKPkQ7RVrpKStcMamuQiS/DKOGQsG9ACAv5OyBO+JP3v7cHiEXpB z5egktcca9ZPzf71J2R99AanIMzLfpW8x4LHQrgHtTDwMMdkKV2wwvLqqmRQUDRiq7Y/ py4y+vg+f1km9MvKo1+HH360Cs8jLHYEg/b6uTaLw/RJz1NBlUal70JuJK8xL11HbjE7 Gj3g== X-Gm-Message-State: AO0yUKXcnngd6FTb1noPme/MXfT0AtjjtOUoiJ59uX+GmfFSqzacRWKK rlheyd/SKjv+XkJgwsvwkKfo6BNajQK9H1OC6k8+cQ== X-Google-Smtp-Source: AK7set9D76P+BVWHdTQ2SVg87fd5PA3MbpTdrnpRN5SFDEPJEgbVJdbHakLt7Yska6pkOaVX4F4g5vtd6pPStimGPQE= X-Received: by 2002:a67:e046:0:b0:412:6a3:3e1d with SMTP id n6-20020a67e046000000b0041206a33e1dmr1616158vsl.25.1676636621874; Fri, 17 Feb 2023 04:23:41 -0800 (PST) MIME-Version: 1.0 References: <20230217100606.1234-1-nbd@nbd.name> In-Reply-To: <20230217100606.1234-1-nbd@nbd.name> From: Eric Dumazet Date: Fri, 17 Feb 2023 13:23:30 +0100 Message-ID: Subject: Re: [RFC v2] net/core: add optional threading for rps backlog processing To: Felix Fietkau Cc: netdev@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 17, 2023 at 11:06 AM Felix Fietkau wrote: > > When dealing with few flows or an imbalance on CPU utilization, static RPS > CPU assignment can be too inflexible. Add support for enabling threaded NAPI > for RPS backlog processing in order to allow the scheduler to better balance > processing. This helps better spread the load across idle CPUs. > > Signed-off-by: Felix Fietkau > --- > > RFC v2: > - fix rebase error in rps locking Why only deal with RPS ? It seems you propose the sofnet_data backlog be processed by a thread, instead than from softirq ?