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 EE9CF46506 for ; Sat, 5 Apr 2025 00:39:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 77E5B40144; Sat, 5 Apr 2025 00:39:52 +0200 (CEST) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mails.dpdk.org (Postfix) with ESMTP id 17758400EF for ; Sat, 5 Apr 2025 00:39:51 +0200 (CEST) Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-54991d85f99so3660918e87.1 for ; Fri, 04 Apr 2025 15:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743806390; x=1744411190; darn=dpdk.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=n47eJZRKq7tQ5F8oTXPJs3jNoOuZs2pQhFH121Rnwx0=; b=DfeRbcWILI5gmoF//+nxwWYkvZ827JScl8LU+nn4zEVt+sYfPfH9rF+Hq3g3KSgk6y 6/5bAGfnzP1PPysSUlf28oK4n26BUt3R7Qmikfy41RaOPurATzfNp4G9tOPnnX8Dhzp8 US4wuGnlnh8hgZRGiJ4dg7AOUWsD8HRa8v66RKnroBTPsqrP4Q/oLaGb3gwyxYXFsnm8 Wyvy5VX1J8ambh52xSQaw6R6wbYc3+foL1KjviP3LHtfrwgwL5qxQAW0mc8NR0t4c8k4 TIrPl+DAql7IMFccf8aI5XtjcPNWn25/FbXnbggykLqYnMZ0p/QgzAO/ZPXEiYq7OFoN 02dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743806390; x=1744411190; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n47eJZRKq7tQ5F8oTXPJs3jNoOuZs2pQhFH121Rnwx0=; b=YbDjVDbMUJAlTH6K9Q8ebsy926ZgDt+uzOLasDyWOdJe08V/REDEySkxVdLrXXPsCt hUzwLDczQ7JBtbGztRQq/eLlA/aZ+cqe2BlrqWoqhBal22V1UxUQgTHtL9vw7sYTNyjp 6OzMobPFhGgS+6sVUKfveMvckWK3u/Yah+gHLe57gVaX2V2uNx17n4KHv3XFV6O6V9hj sB7bsoF1C/jbcH3C+Ty5hppkKwPsaFU/e0+OaKKlEVOiEXJyjdt4K/ZZKIyhYE0ABBsD ff0Mq6nIf1IHlM0vj/Hae1YfVGbTjOV6JPremZchpyJu//tQrlMYnmyoGrnCCOINunyv uipQ== X-Forwarded-Encrypted: i=1; AJvYcCV9M6qM8/I/Xna+atKewzhLWNO+jUvGVtFgBexXFxlr/aA4jOXHQAhUE6jG6uldeHh9Eahqsg==@dpdk.org X-Gm-Message-State: AOJu0YyLkFbtOqr1DNMyx1eZSuvzp+DpQwnrt02QEN5OL8JueLVqPmKb MsDmR2uvNWMttOBfIPgQOM4fYlxRAnh13WobHM6PrcBRhgud+h3g X-Gm-Gg: ASbGncvWMUFbhvFj+T7MpJGV9P2c6gfwX/Q46HRYPOUkgZjgvnUSTNleErYtKWpnPVy YKPUwT18OSKvrLuxlwbgIedetwZsIPcFx4SK6ydZTh8hd1BWgagycTaX5Fh6E6QZMpwg3GvnMok kJXLCiWEBIfRZ3SUeoH6Cd8nzYd0dCNgyHEkPgDxaqLauvSKEkL96qLZGWQ7ZxZQaPOr1e2kCGz vdgI7VfD8V1aeMtj0ydmYMr0o1NrSPoBtXPYThGYwWDwCxKgo+4EY5QdDGqtHLvSkmi1R+JOOyj pAjDFd9Bgcvv06rcJiz/vp7I8yxx3Prthvl/rZDrYiTe17P69725vGx9sqjFdsuRfqOKUK2tnGn USYyyKoKv+3QJnFA9q2mXyOyftA== X-Google-Smtp-Source: AGHT+IFQx9uAn77uh+ras1mPwaL+STOG3RWedb5+yZHyLhqMg/gBuX/xx0G/veYk46WTT1CeA+KADQ== X-Received: by 2002:a05:6512:3f26:b0:549:8537:f337 with SMTP id 2adb3069b0e04-54c225d5594mr1505784e87.14.1743806389967; Fri, 04 Apr 2025 15:39:49 -0700 (PDT) Received: from [192.168.88.232] (broadband-109-173-43-194.ip.moscow.rt.ru. [109.173.43.194]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e63e8c3sm547948e87.158.2025.04.04.15.39.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Apr 2025 15:39:49 -0700 (PDT) Message-ID: Date: Sat, 5 Apr 2025 01:39:47 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: hugepages on both sockets To: "Lombardo, Ed" , "users@dpdk.org" References: Content-Language: en-US From: Dmitry Kozlyuk In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hi Ed, On 05.04.2025 01:24, Lombardo, Ed wrote: > > Hi, > > I tried to pass into dpdk_eal_init() the argument > --socket-mem=2048,2048” and I get segmentation error when strsplit() > function is called > >         arg_num = rte_strsplit(strval, len, > >                         arg, RTE_MAX_NUMA_NODES, ','); > Please forgive me for the stupid question: "strval" points to a mutable buffer, like "char strval[] = "2048,2048", not "char *strval = "2048,2048"? > If I pass “--socket_mem=2048”, --socket-mem=2048”, rte_eal_init() does > not complain. > > Not sure if this would ensure both CPU sockets will host 2-1G > hugepages?  I suspect it doesn’t because I only see to rtemap_0 and > rtemap_1 in /mnt/huge directory.  I think I should see four total. > > # /opt/dpdk/dpdk-hugepages.py -s > > Node Pages Size Total > > 0    2     1Gb    2Gb > > 1    2     1Gb    2Gb > > I don’t know if I should believe the above output showing 2Gb on Numa > Nodes 0 and 1. > You are correct, --socket-mem=2048 allocates 2048 MB total, spreading between nodes.