From patchwork Mon Feb 5 01:24:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roberto Bartzen Acosta X-Patchwork-Id: 1895106 X-Patchwork-Delegate: echaudro@redhat.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=luizalabs.com header.i=@luizalabs.com header.a=rsa-sha256 header.s=google header.b=M+I/Y3BC; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TSpYz6nVpz23hK for ; Mon, 5 Feb 2024 12:24:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id F1799812D8; Mon, 5 Feb 2024 01:24:05 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org F1799812D8 Authentication-Results: smtp1.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=luizalabs.com header.i=@luizalabs.com header.a=rsa-sha256 header.s=google header.b=M+I/Y3BC X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IoVj175ovBA6; Mon, 5 Feb 2024 01:24:05 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id 23C49812D2; Mon, 5 Feb 2024 01:24:04 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 23C49812D2 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id EB990C0072; Mon, 5 Feb 2024 01:24:03 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 45495C0037 for ; Mon, 5 Feb 2024 01:24:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 0C51040627 for ; Mon, 5 Feb 2024 01:24:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 0C51040627 Authentication-Results: smtp4.osuosl.org; dkim=pass (1024-bit key) header.d=luizalabs.com header.i=@luizalabs.com header.a=rsa-sha256 header.s=google header.b=M+I/Y3BC X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O14VyD7jx834 for ; Mon, 5 Feb 2024 01:24:00 +0000 (UTC) Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by smtp4.osuosl.org (Postfix) with ESMTPS id 2706540622 for ; Mon, 5 Feb 2024 01:24:00 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 2706540622 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1d71cb97937so34282925ad.3 for ; Sun, 04 Feb 2024 17:24:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=luizalabs.com; s=google; t=1707096239; x=1707701039; darn=openvswitch.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6zuIo8dS0NPDt5o86oRcvajDZQpDq1HRCi2BXaM3yyw=; b=M+I/Y3BC3BKZQhOTC5VntPK9JNDuqZCI48bUXRptb/mpRJUXTiE6f4ZWm3/sxDl/s4 qufeEN2oM917VglxstKV/j8p4NNcRFst+20e8mrBBCsEVXOur9+0spELIYVPBKINna/O v4sTpQsGYyfLtS1zyx30B7oQsmpDSN/OUBBMo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707096239; x=1707701039; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6zuIo8dS0NPDt5o86oRcvajDZQpDq1HRCi2BXaM3yyw=; b=KwMM/l0UcQqQ7C7ubkg7O/r1kbYJYVDA+jp4lTTZuZDaEnOEN4kc0IjSJdPw2yZNCL VdOSHEyAOKRQ/5Aa0mfTQ8wXk2GfvJjmIiO0ADZHo+SmcP6e8vKc+QxP+mE3HKjNifCQ qo5VJSNlNUho5gjyuEd2R31RipRaUFKGi1o5x4hCt7U+EPRKMfRML1YE++a2V+OF1v2M EyAhomfjI+wCbxjwHbBtFZcFb3OdZ0SaPgQhylsSwuY5nuOSZGZcfDnRwEP2kBYJDJN/ xFQBHbRE+/GgwTqJbzcvSxI2Skf8j+Jw1l2XCa+b3t5uK6JpLUgvvOMZbE48NL3m2xqe U1gQ== X-Gm-Message-State: AOJu0Yxk1ATRPnnS+EvQXZbz6wwuT+pGmfCFErceEqk1uyaXo6f15ARB BuJgbid6/sLvJuJuGgI0ruPhBBf7GH47G5vo8zWPA+gBaoxBh8FJdig5JNlGWxCq6zWuM85oXGH L+dIHKRv3ceaTyVItBGETqeugn1EHGRsl+Z1Xl7aOgI12fKLbDrld13vr X-Google-Smtp-Source: AGHT+IE0zkvhy5vMHyD+hndRs+ypLDbeT+pwC9xUEqLn1MYczAM5LM+mdB0aPtFfmlfzIyQ/V023Qw== X-Received: by 2002:a17:902:ef84:b0:1d9:b8bc:fd7 with SMTP id iz4-20020a170902ef8400b001d9b8bc0fd7mr1094808plb.68.1707096239169; Sun, 04 Feb 2024 17:23:59 -0800 (PST) Received: from WNL1099LABS421.magazineluiza.intranet ([191.187.213.146]) by smtp.gmail.com with ESMTPSA id h21-20020a170902f7d500b001d987771270sm3298902plw.125.2024.02.04.17.23.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 17:23:58 -0800 (PST) To: dev@openvswitch.org Date: Sun, 4 Feb 2024 22:24:54 -0300 Message-Id: <20240205012454.28489-1-roberto.acosta@luizalabs.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [ovs-dev] [PATCH ovs v3] Documentation: Adding note about using the jemalloc library. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Roberto Bartzen Acosta via dev From: Roberto Bartzen Acosta Reply-To: Roberto Bartzen Acosta Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Updating the reference documentation with the inclusion of possible building problems with libjemalloc and solution suggestions. Reported-at: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/2015748 Signed-off-by: Roberto Bartzen Acosta --- Documentation/intro/install/general.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/intro/install/general.rst b/Documentation/intro/install/general.rst index ab6209482..eeb55075c 100644 --- a/Documentation/intro/install/general.rst +++ b/Documentation/intro/install/general.rst @@ -308,6 +308,22 @@ you wish to link with jemalloc add it to LIBS:: $ ./configure LIBS=-ljemalloc +.. note:: + Linking Open vSwitch with the jemalloc shared library may not work as + expected in certain operating system development environments. You can + override the automatic compiler decision to avoid possible linker issues by + passing ``-fno-lto`` or ``-fno-builtin`` flag since the jemalloc override + standard built-in memory allocation functions such as malloc, calloc, etc. + Both options can solve possible jemalloc linker issues with pros and cons for + each case, feel free to choose the path that appears best to you. Disabling + LTO flag example:: + + $ ./configure LIBS=-ljemalloc CFLAGS=-fno-lto + + Disabling built-in flag example:: + + ./configure LIBS=-ljemalloc CFLAGS=-fno-builtin + Example usage:: $ # Clone OVS repo $cd /home/foo/ovs