From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5D4BDA0093; Sun, 1 May 2022 22:17:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F2E5140E28; Sun, 1 May 2022 22:17:57 +0200 (CEST) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 6D0D740DDB for ; Sun, 1 May 2022 22:17:56 +0200 (CEST) Received: by mail-pj1-f41.google.com with SMTP id r9so11178921pjo.5 for ; Sun, 01 May 2022 13:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1bX2tW6fzqy8lVWNZc2maphzkGuzOaF7LpfVU/MwIO4=; b=Qxw2ZRB5S/dR8rphKpUx0c7FlnXjsomcUbV1V9Ixhogo/aGRKLaeixaHVyMGfdEK8C JMD5PkD781yMGic67i2ZgjzVQA/3zvAw03cA6+pnlC0UO5HnpqsQu1Dk7mfow4NPyUTQ LF5al8luAzAMsum5Frj7tg0eaD9LxWbsBtuv173fcvGGqNUJx2Y2EJGKtc5LNaDpuV3h hkKdLwuiw/Z/T2bYWjk0FaUwbw6CPltXQMVMufeSMHwfrDmnLE1os3sklmQH1Zi0CzS4 2UzkGSToS8FTsoTACjkWtFUzCEWb+VoCyPNwYp0X/FqJ4p51Di4ODDJPfD8wx7etQxKm Q4hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1bX2tW6fzqy8lVWNZc2maphzkGuzOaF7LpfVU/MwIO4=; b=Y1lb7hxIgU85zn5qpFaJn/qZd+Y5qLPY2ioyBU+Ag1q7bejXl4D0tCWNrYZLuOrTCW ck5qSSrKatu3wajsZrquhqxYtVaBzDlArrgDuvFy5FW61mGG5poVElrKEmbXaOImhhWv 2yrlaOVJKSoS5QthRgBdn4tsOWtAvsJQjdCuP3QozRU6QC3/eIn8ePq/T1pkgavFp92p /QYWGON2XL31Cd9gh5IpadhRKwx9IdlxZDbj4G5HWxPM2wBzV7gZu4YSnT4qr85wrxLz ZGLjWIVm4ScpNZDa9hE5+XQjom9cDpwr9uUttt7CAse7ppTPXzXzCMNAb8TmwNknxn7R 00Bw== X-Gm-Message-State: AOAM530UkcEo6Xzy1ndcvMtps6fWJVSEG1uPgaIXS43xIsD/q6VgPvF5 lbnqt52O3tV3vylGANTHf1CNOg== X-Google-Smtp-Source: ABdhPJy27d0qHnOKWGEDf4FuWdLVJFe2+oJFREsQ4AOBCwBFL0SDj3vaxdweYFot1EmGxHPFVwhppg== X-Received: by 2002:a17:90a:af98:b0:1d4:67d4:d122 with SMTP id w24-20020a17090aaf9800b001d467d4d122mr9739551pjq.166.1651436275333; Sun, 01 May 2022 13:17:55 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id a5-20020a17090ae20500b001da3780bfd3sm15414860pjz.0.2022.05.01.13.17.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 May 2022 13:17:54 -0700 (PDT) Date: Sun, 1 May 2022 13:17:52 -0700 From: Stephen Hemminger To: Mattias =?UTF-8?B?UsO2bm5ibG9t?= Cc: , Thomas Monjalon , David Marchand , , , , , , , Ola Liljedahl Subject: Re: [PATCH v5] eal: add seqlock Message-ID: <20220501131752.7e8221f4@hermes.local> In-Reply-To: <20220501140327.265128-1-mattias.ronnblom@ericsson.com> References: <3e9b0560-9306-0826-4911-1cf0e72c30d9@lysator.liu.se> <20220501140327.265128-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Sun, 1 May 2022 16:03:27 +0200 Mattias R=C3=B6nnblom wrote: > +struct data { > + rte_seqlock_t lock; > + > + uint64_t a; > + uint64_t b __rte_cache_aligned; > + uint64_t c __rte_cache_aligned; > +} __rte_cache_aligned; This will end up taking 192 bytes per lock. Which is a lot especially if embedded in another structure.