Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp837852lqs; Fri, 14 Jun 2024 07:09:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6T40rj+p3qu+67IauCAlBljoxAx5iu57sJs6LSatxhES1Hlqoi4Wm5gzPMBdmwW0pTEZIsSKt1QrFKaczNeB0ipXJZFLtZCsILWdldg== X-Google-Smtp-Source: AGHT+IFXv4enKoguq0mNn3C7hOF9KrRQDK+1rwPLMFDzt5aY3icz94c86/C+6Bs2N6kWG8aULTyw X-Received: by 2002:a05:6358:2812:b0:19f:4d27:fb6d with SMTP id e5c5f4694b2df-19fa9dd0b07mr320733955d.6.1718374169971; Fri, 14 Jun 2024 07:09:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718374169; cv=pass; d=google.com; s=arc-20160816; b=xhFUkMrjMEdug2os5xEdkrzHKVd3Ss/goEnM55iOitPRW14hu7+6qdS+26ndgM3J8N wCe3dWMqhbx+1p74nD9dejmPnGzM7Ac4qz6q1LcW4tED0h0Go24g3HSEKxoEGlF9RPPV bMsWcid3Vq2zBUZwNpwPlzIEPLFnMCil+UI+KrctP/6uLO66aECrK/Pb7xeqHlW2/IVv Q64Hl37qWa1KRfFlPMEE377kikpPCUr+m+5W+VrcJKaYB8pxyxffvb6Y5kZWkAIIG/ck YoOFEHbcWm2ML9/g5e7yzkXHQCMY0tFUNtXJBAekUNkLetTxQDTa+Hlc7Wgmg7afAbI5 Jlow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=sei/AlzPitkzh30oWFQLawwYGSDtixmAw+yG8sdJyPQ=; fh=2w9oQj3O2ocHvrf8TUWHKxRzYqdrCbY1WhD1Of9uDSQ=; b=bVe+D6P6wBo5/Z/odCKsfacTiU1zQ7aELyke13tGW00eYuwpa27/df2nXtUlv8B0/0 w64brXKjx53UmV32mV16p0EsFmuyepkkL9j64pVvtCbKqMVYmE+0beNH7jz0KqnQP8az aVBtmHc/Yb5KngBH9nyThWIrSqBAeAHGv84Iupjj+yW96LLZVbVqBLNdk035JKmNPavP fVSTeuFxxa5S31+2hOuZ3YXrf+Tvq5cjaqsIS7cPXKMQt16ubsRiQKTLpTNm7x/egmiB KbImlLWsS3UHSUs0W9buasD4uZ1jDMhoe0mypYmm57WZE9bxhJt12M2ZQw69w5Nq/keN UvWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JMuw2U32; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-214992-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 71dfb90a1353d-4ed3f1fa0c7si711077e0c.54.2024.06.14.07.09.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 07:09:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214992-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JMuw2U32; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-214992-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D6C581C24FB3 for ; Fri, 14 Jun 2024 14:08:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E648945A; Fri, 14 Jun 2024 14:08:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JMuw2U32" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B02E47464 for ; Fri, 14 Jun 2024 14:08:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718374130; cv=none; b=C0Z7ndkBn47NuewMr8AhSL4UzAts2EqySnFDyRXlBmpUGG3m1nQveomo20QoooCMkJqfLKqbc+i+2ZX66QRjsyoQ+xVzfDfL5IWHYbskknBpeUXkA4q7wHah3YSJyf7EwxU7n9zMM9FJkj8Sm2zRERvfY3LXkJ2jVsxl+B903vw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718374130; c=relaxed/simple; bh=i7fBhkE22YnP4Bqn7Gw6/lRTqCPjsqlYhYf1Rvq+VO4=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=bxmUBfJUcbn0KhkA+fJFaUL5ABJxcmdxULlW70Bi4I/l88pFrp0kbLw590ZBZ52Dcw96/4/7cwDWWezqx8mDIekuMALGmUq1/lmAjITl02bmHES3o6J2CxJBQ8Ljdzb5fWO1pPQECkhKXR2+kxentk0UWi3OBW3z3NW0o9rUVds= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JMuw2U32; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718374127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=sei/AlzPitkzh30oWFQLawwYGSDtixmAw+yG8sdJyPQ=; b=JMuw2U32EETpYwLLxVHfqrsE3cCpCXcoyuSDqu2zl2+wKjninxkp/NrwqgEa783UurNiv6 4/h/GWd+OtEKfyMIt8ZOF80m4AZevL8ojhUF1CFWGWY4RPGoY4vvHipgmlKf1VTaqNPK9W J0CtfD8FVRRe1+RtPALk+296Bma3zbA= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-609-kbP8YdzeO6upXoQiga_syw-1; Fri, 14 Jun 2024 10:08:46 -0400 X-MC-Unique: kbP8YdzeO6upXoQiga_syw-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-421920de031so3463335e9.0 for ; Fri, 14 Jun 2024 07:08:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718374125; x=1718978925; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sei/AlzPitkzh30oWFQLawwYGSDtixmAw+yG8sdJyPQ=; b=Y67xxlfO643pnjqiskjPxvGu8pJmIHBuG2esauwOe1MPB2q0dJbfZNA/W49CDv1XyX +tnh0vjF+Xu/OrBn6AssUIircrAKl61zBNeCbQco6w2CSKOExtrh4zv1jw8js4mXXSGI Fpt8lsCqIs7yRDKh8dK8Mzv/aoRbVDqYSoJ1Rf5x+tW3nmJWs8U6ZeFVs4XgWS2HAF49 fxbTa4JzFib5cs8WXn3U+/aKeyCruLcV5xNnmIpTSXxcOrifL9WvIQM3FjQgwuYch7e7 ARuwZaCpcooragbLVW9P06A6lPJnY+i/uuTmAK9rzZMfNA/RHzEJTbcQmxNDi0ysn8oP f5nw== X-Forwarded-Encrypted: i=1; AJvYcCVsZGHSmomN/4UdkRZ7CZMKBznH1pF2vrMZAGNO6VnXfVHxhjByJGdTVf2J1i5Z+mm8c0ogzJ4X7R9OWCFYzh295/tZYeiY9lBREINM X-Gm-Message-State: AOJu0Yzktgmd8mBPqyJs3wSgoy79bg1Ho48C9SPF/vI/jUpIvVP/3LYO UQ5y1BeigJALKOmrU89AFi8ZJI0jboyReB77h6cgmBTwLT7U70cB2beG6hOo+DGJ6oHVJ0wodH3 G05JonP+LGx9dnwDs/23mWluI1XGsY0WuDaFmsvhMeDNxy55qNDgVGSm0FEh+zA== X-Received: by 2002:a05:600c:314e:b0:421:de31:76 with SMTP id 5b1f17b1804b1-42304849009mr20570205e9.3.1718374125133; Fri, 14 Jun 2024 07:08:45 -0700 (PDT) X-Received: by 2002:a05:600c:314e:b0:421:de31:76 with SMTP id 5b1f17b1804b1-42304849009mr20570025e9.3.1718374124719; Fri, 14 Jun 2024 07:08:44 -0700 (PDT) Received: from gerbillo.redhat.com ([2a0d:3341:b083:7210::f71]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-422f8be0c69sm62597875e9.33.2024.06.14.07.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 07:08:43 -0700 (PDT) Message-ID: <834b61b93df3cbf5053e459f337e622e2c510fbd.camel@redhat.com> Subject: Re: [PATCH v6 net-next 08/15] net: softnet_data: Make xmit.recursion per task. From: Paolo Abeni To: Sebastian Andrzej Siewior , Eric Dumazet Cc: Steven Rostedt , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, "David S. Miller" , Daniel Bristot de Oliveira , Boqun Feng , Daniel Borkmann , Frederic Weisbecker , Ingo Molnar , Jakub Kicinski , Peter Zijlstra , Thomas Gleixner , Waiman Long , Will Deacon , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Juri Lelli , Mel Gorman , Valentin Schneider , Vincent Guittot Date: Fri, 14 Jun 2024 16:08:42 +0200 In-Reply-To: <20240614094809.gvOugqZT@linutronix.de> References: <20240612170303.3896084-1-bigeasy@linutronix.de> <20240612170303.3896084-9-bigeasy@linutronix.de> <20240612131829.2e33ca71@rorschach.local.home> <20240614082758.6pSMV3aq@linutronix.de> <20240614094809.gvOugqZT@linutronix.de> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73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T8VJJhzRl3Nb/EmO/qeahfiG7zTpqSn2dEl+AwbcwQrbAhTPzuHIcoLZYV0xDWzAibUnn7pSrQKja+b8kHD9WF+m7dPlRVY7soqEYXylyCOXr5516upH8vVBmqweCIxXSWqPAhQq8d3hB/Ww2A0H0PBTN1REVw8pRLNApEA7C2nX6RW0XmA53PIQvAP0EAakWsqHoKZ5WdpeOcH9iVlUQhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/N87fpIbpbZaIdinF7b9srwUvDOKsywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Fri, 2024-06-14 at 11:48 +0200, Sebastian Andrzej Siewior wrote: > On 2024-06-14 10:38:15 [+0200], Eric Dumazet wrote: > > > I think it should work fine. netdev folks, you want me to remove that > > > ifdef and use a per-Task counter unconditionally? > >=20 > > It depends if this adds another cache line miss/dirtying or not. > >=20 > > What about other fields from softnet_data.xmit ? >=20 > duh. Looking at the `more' member I realise that this needs to move to > task_struct on RT, too. Therefore I would move the whole xmit struct. >=20 > The xmit cacheline starts within the previous member (xfrm_backlog) and > ends before the following member starts. So it kind of has its own > cacheline. > With defconfig, if we move it to the front of task struct then we go from >=20 > > struct task_struct { > > struct thread_info thread_info; /* 0 24= */ > > unsigned int __state; /* 24 4= */ > > unsigned int saved_state; /* 28 4= */ > > void * stack; /* 32 8= */ > > refcount_t usage; /* 40 4= */ > > unsigned int flags; /* 44 4= */ > > unsigned int ptrace; /* 48 4= */ > > int on_cpu; /* 52 4= */ > > struct __call_single_node wake_entry; /* 56 16= */ > > /* --- cacheline 1 boundary (64 bytes) was 8 bytes ago --- */ > > unsigned int wakee_flips; /* 72 4= */ > >=20 > > /* XXX 4 bytes hole, try to pack */ > >=20 > > long unsigned int wakee_flip_decay_ts; /* 80 8= */ >=20 > to >=20 > > struct task_struct { > > struct thread_info thread_info; /* 0 24= */ > > unsigned int __state; /* 24 4= */ > > unsigned int saved_state; /* 28 4= */ > > void * stack; /* 32 8= */ > > refcount_t usage; /* 40 4= */ > > unsigned int flags; /* 44 4= */ > > unsigned int ptrace; /* 48 4= */ > > struct { > > u16 recursion; /* 52 2= */ > > u8 more; /* 54 1= */ > > u8 skip_txqueue; /* 55 1= */ > > } xmit; /* 52 4= */ > > struct __call_single_node wake_entry; /* 56 16= */ > > /* --- cacheline 1 boundary (64 bytes) was 8 bytes ago --- */ > > int on_cpu; /* 72 4= */ > > unsigned int wakee_flips; /* 76 4= */ > > long unsigned int wakee_flip_decay_ts; /* 80 8= */ >=20 >=20 > stuffed a hole due to adding `xmit' and moving `on_cpu'. In the end the > total size of task_struct remained the same. > The cache line should be hot due to `flags' usage in >=20 > > static void handle_softirqs(bool ksirqd) > > { > > unsigned long old_flags =3D current->flags; > =E2=80=A6 > > current->flags &=3D ~PF_MEMALLOC; >=20 > Then there is a bit of code before net_XX_action() and the usage of > either of the members so not sure if it is gone by then=E2=80=A6 >=20 > Is this what we want or not? I personally think (fear mostly) there is still the potential for some (performance) regression. I think it would be safer to introduce this change under a compiler conditional and eventually follow-up with a patch making the code generic. Should such later change prove to be problematic, we could revert it without impacting the series as a whole.=20 Thanks! Paolo