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 85AD645A9A for ; Thu, 3 Oct 2024 11:14:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7384A402EA; Thu, 3 Oct 2024 11:14:13 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 42715400D7 for ; Thu, 3 Oct 2024 11:14:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727946850; 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; bh=h7IrDJMwbnMl5OtTp2kuvjQ70AHSedaocsc/FFVqVY8=; b=espbuP9gJjNo6Z/Lj71ynYYaggSXgNlApey9hE6bF9WHUpx7R1tM0SPEtdYCEh1QuPTqrA +sCzTpWHtVsfmw/8akhCCPYY3TzNYB6yIRevkz+DJ9YGSuS24qYRsXuuoYf13sHiKluuyD wv71z7jh5CGimp3CttDcxjXPAcVnDio= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-401-lmNDI0TRM36AafbRRfWW3A-1; Thu, 03 Oct 2024 05:14:07 -0400 X-MC-Unique: lmNDI0TRM36AafbRRfWW3A-1 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-5398ecc2a0cso524850e87.3 for ; Thu, 03 Oct 2024 02:14:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727946845; x=1728551645; h=content-transfer-encoding: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=h7IrDJMwbnMl5OtTp2kuvjQ70AHSedaocsc/FFVqVY8=; b=W8twTG8MPA8ir5lRaCF5+vb1suGhTYig/A+ZnnFXdje8r9zaBw5e6r91QPPIVTAj56 RG2LFfgbMbOo0LWR13aI01CFJ9rE0nb7PyhSt67XGYIvH1ut0Ye61p69s6K0/5BivnYx yi+rGpvYEvJlF4depAmoeT4XURpuBKdg1hNin3C3duUYdpfhqt6ub6uJ/zrRzM4oKQVF Mjw4eDwD9s16L4T+Tumv3rndaoEKMhaHlnOqkYYnMlZxzuIViWcsz9B/TTSXSsV89zAF z2Nu8j78cczG6+ZgUjF38X0wCXoaTLc2TpiBxvW3Ru9LbRYn8l12tV6N5Jl3VfosNplW qsXw== X-Forwarded-Encrypted: i=1; AJvYcCUi4dMMoogZM6G+6ULlhKNQVZq4jIDUZb2BmpswjB+9fnjWrkfbEY81Wmz84MhJ5maVxcS+WEU=@dpdk.org X-Gm-Message-State: AOJu0Yw0bxFZxKGIICO8siGVvG9Eg3h0tCBcWSLKH+U6ufWLPwqbhWsJ GUlJaeLkGMVS0nhazAquJX9MdYOuGmJDNvgO2MAP5Fv0f0N4OJWYtxpnoR5Be7vZXdBEC06M0JP lsnCHTn+nhWqkGd2RYzCQ/o1hO26Tt8lE7WU8m7cR4/tJH80apKhrEGKBkZ5K5KVNMkoNvweFt+ o62M3RdlZ7LpQ7oXDr2TM= X-Received: by 2002:a05:6512:159b:b0:539:905c:15c5 with SMTP id 2adb3069b0e04-539a067c06fmr5470521e87.35.1727946845523; Thu, 03 Oct 2024 02:14:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRlEMOrkwF1DTd3i+ECO2gcj9G1OUtbUZFFERtM3fRU+m+w+eumjRvmTE893iqNOwRsopT9lJLal7jCm/3UUk= X-Received: by 2002:a05:6512:159b:b0:539:905c:15c5 with SMTP id 2adb3069b0e04-539a067c06fmr5470492e87.35.1727946845094; Thu, 03 Oct 2024 02:14:05 -0700 (PDT) MIME-Version: 1.0 References: <20241001162603.793853-1-mattias.ronnblom@ericsson.com> <20241003065702.3051158-1-david.marchand@redhat.com> In-Reply-To: <20241003065702.3051158-1-david.marchand@redhat.com> From: David Marchand Date: Thu, 3 Oct 2024 11:13:53 +0200 Message-ID: Subject: Re: [PATCH v2] service: fix deadlock on worker lcore exit To: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= , Harry van Haaren Cc: dev@dpdk.org, stephen@networkplumber.org, suanmingm@nvidia.com, thomas@monjalon.net, stable@dpdk.org, Tyler Retzlaff , Aaron Conole X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Thu, Oct 3, 2024 at 8:57=E2=80=AFAM David Marchand wrote: > > From: Mattias R=C3=B6nnblom > > Calling rte_exit() from a worker lcore thread causes a deadlock in > rte_service_finalize(). > > This patch makes rte_service_finalize() deadlock-free by avoiding the > need to synchronize with service lcore threads, which in turn is > achieved by moving service and per-lcore state from the heap to being > statically allocated. > > The BSS segment increases with ~156 kB (on x86_64 with default > RTE_MAX_LCORE and RTE_SERVICE_NUM_MAX). > > According to the service perf autotest, this change also results in a > slight reduction of service framework overhead. > > Fixes: 33666b448f15 ("service: fix crash on exit") > Cc: stable@dpdk.org > > Signed-off-by: Mattias R=C3=B6nnblom > Acked-by: Tyler Retzlaff > --- > Changes since v1: > - rebased, I can't merge this patch in its current state. At the moment, two CI report a problem with the eal_flags_file_prefix_autotest unit test. -------------------------------------stdout--------------------------------= ----- RTE>>eal_flags_file_prefix_autotest Running binary with argv[]:'/home/zhoumin/gh_dpdk/build/app/dpdk-test' '--proc-type=3Dsecondary' '-m' '18' '--file-prefix=3Dmemtest' Running binary with argv[]:'/home/zhoumin/gh_dpdk/build/app/dpdk-test' '-m' '18' '--file-prefix=3Dmemtest1' Error - hugepage files for memtest1 were not deleted! Test Failed RTE>> Can you have a look? Thanks. --=20 David marchand