From patchwork Mon Jan 29 11:34:34 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: 1892180 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=Lf6gC5VD; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 4TNmQn03Mjz1yQ0 for ; Mon, 29 Jan 2024 22:33:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A92EF60F94; Mon, 29 Jan 2024 11:33:50 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org A92EF60F94 Authentication-Results: smtp3.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=Lf6gC5VD X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wz374WOCUEzn; Mon, 29 Jan 2024 11:33:49 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp3.osuosl.org (Postfix) with ESMTPS id B9F3B60AA5; Mon, 29 Jan 2024 11:33:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B9F3B60AA5 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6ADFBC0072; Mon, 29 Jan 2024 11:33:48 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 742A7C0037 for ; Mon, 29 Jan 2024 11:33:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3C82B8177A for ; Mon, 29 Jan 2024 11:33:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 3C82B8177A Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=luizalabs.com header.i=@luizalabs.com header.a=rsa-sha256 header.s=google header.b=Lf6gC5VD 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 d5aAnieaDAmz for ; Mon, 29 Jan 2024 11:33:46 +0000 (UTC) Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by smtp1.osuosl.org (Postfix) with ESMTPS id 472B781779 for ; Mon, 29 Jan 2024 11:33:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 472B781779 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1d746ce7d13so22822015ad.0 for ; Mon, 29 Jan 2024 03:33:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=luizalabs.com; s=google; t=1706528025; x=1707132825; 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=KFkbqsPY206cRpO5Sq/4YXZ59Y+A/cgSVomrQIHOf84=; b=Lf6gC5VDaB4ktLCj7uH4+YgNvHLEFngVGYpkPYYSwm359mDpEdFthjMn2do6fjysrU fE/pyXeljn7QGC8XfufdgP10EK38u2gV9wC0BdxboFi6VBmCcGkJvkvh2CSCvnnlLlHO b9TIeEeYBBw82DO+48rcMto15JiARZDWOFpag= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706528025; x=1707132825; 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=KFkbqsPY206cRpO5Sq/4YXZ59Y+A/cgSVomrQIHOf84=; b=ouQ9mTyMTwBclkSg4IG6tia+vq0QfKygqcDOGJPupqsa8j6ABdkyTlmmRtCfUxCaVS yI9QUGWyzXoPPhWd1f28LtmmFK5y1jdNHfdUHihN3pKkEU9Gipd85GYRS0ABckP2w3eX L16GJ0QTLL6hJpLqs7lUMnmbgaLFUDbXf9Y80WiEoUtMTkn6sLR6HFojSCZA5mp0gjZE SjdC3rwq/1ZDzHO9qkj0/SFdwyJDhaRXW1SBQwYCiMKrSa5CONaFRxHwuFhYcX6K0XcN zfk+73G/EgjNJX/OqRlXDYRXRQMPdb0TefFWj1g4qCDZOzOtbjWG0aGsoYIF/XyqNKr/ oVJQ== X-Gm-Message-State: AOJu0YzoQtFj19oh5zg5CcAi13/t8Ufag2KPn4NU5Us2G1WaRTXcYLAG iIZfINn9RPqTjHh19wdUrF63nzPqCITkrqoGxy/Tn99zuGKR3ALvYnYHRI/NF5TkDSeyRAjGcvj KNOLOD5D6LgQWHWC2ZNRE/XJ7PhDuKN6BXAgUMvYY9Qlgml/2vnNLC02A X-Google-Smtp-Source: AGHT+IHKTGx4OO4rgnh4fp04Kxiw3mMN5aFOJqzN2/MG9vumMqOcayfgCYGVRI64pn5zCjQMzGouEQ== X-Received: by 2002:a17:902:b418:b0:1d5:13b0:cf0f with SMTP id x24-20020a170902b41800b001d513b0cf0fmr4390588plr.65.1706528024797; Mon, 29 Jan 2024 03:33:44 -0800 (PST) Received: from WNL1099LABS421.magazineluiza.intranet ([191.187.213.146]) by smtp.gmail.com with ESMTPSA id l20-20020a170902e2d400b001d8d04a4fa8sm2375151plc.300.2024.01.29.03.33.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 03:33:44 -0800 (PST) To: dev@openvswitch.org Date: Mon, 29 Jan 2024 08:34:34 -0300 Message-Id: <20240129113434.40940-1-roberto.acosta@luizalabs.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [ovs-dev] [PATCH ovs v2] 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 Reviewed-by: Frode Nordahl --- 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 19e360d47..e2eb19510 100644 --- a/Documentation/intro/install/general.rst +++ b/Documentation/intro/install/general.rst @@ -344,6 +344,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 disabling ``-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 + .. _general-building: Building