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 21002A034F; Mon, 11 Oct 2021 19:25:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D3F1410E8; Mon, 11 Oct 2021 19:25:03 +0200 (CEST) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) by mails.dpdk.org (Postfix) with ESMTP id DE95A410E6 for ; Mon, 11 Oct 2021 19:25:02 +0200 (CEST) Received: by mail-yb1-f171.google.com with SMTP id r1so40675977ybo.10 for ; Mon, 11 Oct 2021 10:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=5ZZBznnUDYvUubVVIvuvT7kE5EV0lliCXee82rPFPUA=; b=j44UwrjSBUfGKcIXorgl1Ck6uN78lu/Qw80hz8MHJLuAYlQylOCHRJ/N8JfhJNuTj6 2Fbg15ZmIglflrNEAURwZ5FuGaPIy/6+dUeiI0Xh+0Ho8ryy07E7N6wbkFbOklLs2sPB GbywMuTDZJi1y9NDvUsLXH/wbOcXKrqLVGv1EzGVSPQGGN1e/CWJ67sDFHZKuB2PArSQ CXCfcgJxtUoy6QXkox08tAQIEOHf26m3ZcKjec2ExEB3DGOx7BWg8k4R028e5Q1V19MN 3PId8CngmfvSVA4UWDV+V2yhKjwwj7XUjdx2sa2TLtnDrBCnXPO+aiyB3bs9jBGRqlaP 5mKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5ZZBznnUDYvUubVVIvuvT7kE5EV0lliCXee82rPFPUA=; b=QLxRvS2ubSR8qMZ9OtNSe9BKw7BpzIcJsYEKQJomxm/QIbexxvdR+65vn28owiixNy uZHpGQ0FarbSjOJ/FY9MaFDpfvtq+pH4HJoSwDUijhSAUM2ojHZQYbsksx25S76elEVn 1T07kQhoIRzb8I6Bq3ITR8xZh+TWuvY4C3SEFqVxNX7BUXNkHJnBo+gfJTXPwUsITvfx cCRavrTGmKJ2ytrxZY3Ksq9DS3CGc/rLr5kUHktHP0E7exG4CnwVkGJrWIqZbhFJa3sW 5Gwqj4u1Fbs6obccswUuI40kp+2so9iO0FsQUpXN8mEPfhd2jtAp1KoP1oo8SQsXngBj IweQ== X-Gm-Message-State: AOAM532g/jF8pS4DWLoH1V4EU5nWhmAfTLS4dBxu7e3XfwsThVyi7nq2 A4FBRjdTZxFQ05zUsIkibS48XIYp1eQMS3Va709kqwC8g0s= X-Google-Smtp-Source: ABdhPJzgyz3ES7C7SkzXG6gTlxWTXekPWkE0jFjlTxDCjThnetEwWIKJ8YZ85bl0IKqIN2Bc5eX741qcOTfHrStkDjw= X-Received: by 2002:a25:bb08:: with SMTP id z8mr23917799ybg.306.1633973101930; Mon, 11 Oct 2021 10:25:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a5b:78f:0:0:0:0:0 with HTTP; Mon, 11 Oct 2021 10:25:01 -0700 (PDT) From: Brijesh Singh Date: Mon, 11 Oct 2021 10:25:01 -0700 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-dev] Mmap query X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi there, We are seeing high mmap time for 1G hugepage during eal memalloc init. Most time is spent for clearing page, each 4k size.. It's not clear to me why clear huge pages is called? The code mmaps rte_map file with map_populate and map_shared this shouldn't cause page zeroing. I am curious to know how zeroing is forced? As an alternative, I would like to memset from userspace. In my experiment we are noticing memset 1G file is faster that clear huge pages. Apreciate your help. Regards Brijesh