From patchwork Tue May 10 15:34:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 67464 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp2193237qge; Tue, 10 May 2016 08:35:10 -0700 (PDT) X-Received: by 10.141.5.197 with SMTP id h188mr25250814qhd.97.1462894510603; Tue, 10 May 2016 08:35:10 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r126si1789842qke.137.2016.05.10.08.35.10; Tue, 10 May 2016 08:35:10 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 314D26163B; Tue, 10 May 2016 15:35:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 79CDF610AC; Tue, 10 May 2016 15:35:03 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7B68E61103; Tue, 10 May 2016 15:34:54 +0000 (UTC) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by lists.linaro.org (Postfix) with ESMTPS id 2CEFC6107B for ; Tue, 10 May 2016 15:34:53 +0000 (UTC) Received: by mail-lf0-f44.google.com with SMTP id u64so19340203lff.3 for ; Tue, 10 May 2016 08:34:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EYt8QLXzgp1Z9us/QgzqgOIDRkmJZSZ3+mHZsvPUXtI=; b=clbUlMMDd5hshwwf/nw6yNDUg1rheELU7qNficYdyEov072Soy8vOnhrauYk7VHbWj 7sTGazV5OwRZie+41jhB3Uvay0CzyYeGh6udta5ZBogppFpKdncdEc2u5+su1xybg1Uw 7bSX5eEJNbzbCzLfzK6gRCxnZqLYOC8dCeRmH31p9L+QUMNidneUu6GiTiu0jxhc7pIg Fm1pwa3LZLUbiwIUUNsR6Xhc5uqCjrYs4CE1vyOxKaeSxhs3o1iMjiOZ/sqe5WtSHuvd mfWMgqYPZoWTk63znOmZ3FCs9ZdkFYmQmATNRdfi9esKXjvE2S5Thqio3obBHYBmS9Ek vZZQ== X-Gm-Message-State: AOPr4FV/Xsu7khd5usuQxjhj23FVZudPcTmy7KbLtScaPSOPvJruQeSg0Xdjbne2vNZPfmM3Dgg= X-Received: by 10.112.198.169 with SMTP id jd9mr14546879lbc.94.1462894491928; Tue, 10 May 2016 08:34:51 -0700 (PDT) Received: from localhost.localdomain (ppp91-77-173-31.pppoe.mtu-net.ru. [91.77.173.31]) by smtp.gmail.com with ESMTPSA id l21sm486645lfi.37.2016.05.10.08.34.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 May 2016 08:34:51 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 10 May 2016 18:34:37 +0300 Message-Id: <1462894477-9931-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH] api: system: specify default huge page size X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" System can have different sizes for huge pages. Clarify that this api returns default system huge page size, which is usually 2Mb on x86 reachable with: grep Hugepagesize: /proc/meminfo Signed-off-by: Maxim Uvarov Reviewed-by: Bill Fischofer --- It might be too late for current Monarch rename api calls or do some more smart info about huge pages, so we can clarify behaviour in odp api. Maxim. include/odp/api/spec/system_info.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/odp/api/spec/system_info.h b/include/odp/api/spec/system_info.h index 6957731..c5a5fd0 100644 --- a/include/odp/api/spec/system_info.h +++ b/include/odp/api/spec/system_info.h @@ -24,9 +24,9 @@ extern "C" { */ /** - * Huge page size in bytes + * Default system huge page size in bytes * - * @return Huge page size in bytes + * @return Default huge page size in bytes */ uint64_t odp_sys_huge_page_size(void);