From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 1E499234 for ; Sun, 14 May 2017 12:34:17 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id 6so11446616wrb.1 for ; Sun, 14 May 2017 03:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=EXYJYTH0BlXR0Q88Mrh5XNUx2jNUUBNGWIeVlxo38T0=; b=NicakBYu2BCilv7nxFKf7Q+TtinUukNqJzXxeU9CWiWJVsJYbBMRn/w9TUsnqzz26e 6Kt8s47p/HLmzCFctlnDoef1mI28hxLJRYFkRMOldZFvvfqx4MgxLHeiQtcwvw17o2UQ D0sc5XpSswR8E2CrWZOM0qkjiQjr64zJS9klVRMFTUCs7Ji4Rmj0eshF8//FwMMOacAU qFKVC0wPnhr2jrdwmHK6nubQA2ZuRBRw5lF3kEMNb9EcT3RIUc8WEZ8KjCxuIhWkyIXZ OgsmHtPDtuWoJaNvQgDJfhJsfU8a1L0r6Z6OoAwKsR71KPADd291CD5TFOSvwNXmMfqH UJVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=EXYJYTH0BlXR0Q88Mrh5XNUx2jNUUBNGWIeVlxo38T0=; b=cfQN9J1jhmtkYzaNV6+rkcsxAPfK4O3N04iS3t5Ca0DM/XRaULVGKA5pFtorDzJ8Ek H8wNdwUWdMMyb5xds+ZDFI3b4Q8LfBmnqjfrz1dx/yv+fQazIi6pYHVdZQ938OiuptvT Z1G1zaVW3G4Tp/Gru0XXJG8KiAzYOlGhDNDwqnU8vo7hsZjfOHF82o6H4pmxVue8ttxh qhnFGigzcR2806KH2GTXmst7zqkdJ+58k/4Qzy/X8KEcqBi7kcfrl/cfBgrkBjDodbas fQnH+l69gCmBsUuB9eR16gz2mS0hfGJiGrcU0QwyR6bY1aNuXJLjAwlUPpiyZehUL2pt gktg== X-Gm-Message-State: AODbwcBVoE7hFmCQIb/MZIRuE8ycKMAi5s5ls5RNHhceru0rDA2gvPUA wFSxYGaQvGt5bzgxq/o= X-Received: by 10.223.161.30 with SMTP id o30mr669630wro.186.1494758056669; Sun, 14 May 2017 03:34:16 -0700 (PDT) Received: from [10.1.0.103] (bba193486.alshamil.net.ae. [217.165.96.192]) by smtp.gmail.com with ESMTPSA id s110sm12914827wrc.5.2017.05.14.03.34.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 May 2017 03:34:16 -0700 (PDT) From: Ilya Matveychikov Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Message-Id: <1A9D36CE-8B6D-43A7-BE0C-9F232DFDA263@gmail.com> Date: Sun, 14 May 2017 14:34:14 +0400 To: dev@dpdk.org X-Mailer: Apple Mail (2.3273) Subject: [dpdk-dev] A (possible) problem with `--no-huge` option X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2017 10:34:17 -0000 Hi guys, I have a problem while running DPDK with `--no-huge` option. It seems = that the problem occurs since commit = cdc242f260e766bd95a658b5e0686a62ec04f5b0 and that is the change that = affects me: + if ((page & 0x7fffffffffffffULL) =3D=3D 0) + return RTE_BAD_PHYS_ADDR; + What I did is to try to create memory pool using = rte_pktmbuf_pool_create(). I dig into the issue and found that in my = case =E2=80=9Cpage" value is 0x0080000000000000 which means that the = page is not present and =E2=80=9Csoft-dirty=E2=80=9D (according to = kernel=E2=80=99s documentation): * Bits 0-54 page frame number (PFN) if present * Bits 0-4 swap type if swapped * Bits 5-54 swap offset if swapped * Bit 55 pte is soft-dirty (see Documentation/vm/soft-dirty.txt) * Bit 56 page exclusively mapped (since 4.2) * Bits 57-60 zero * Bit 61 page is file-page or shared-anon (since 3.5) * Bit 62 page swapped * Bit 63 page present So, before the change mentioned all =E2=80=9Cworks=E2=80=9D fine and = such pages were not handled. But now the check causes = rte_mempool_populate_default to fail with -EINVAL... Can anyone familiar with the memory pool allocation helps with the = issue? Thanks in advice, Ilya Matveychikov.