From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 9EE2F11C5 for ; Tue, 24 Mar 2015 15:53:07 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 24 Mar 2015 07:53:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,458,1422950400"; d="scan'208";a="703415996" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 24 Mar 2015 07:53:05 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t2OEr45j022237; Tue, 24 Mar 2015 14:53:04 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t2OEr4nD016584; Tue, 24 Mar 2015 14:53:04 GMT Received: (from jmcnam2x@localhost) by sivswdev02.ir.intel.com with id t2OEr4nN016580; Tue, 24 Mar 2015 14:53:04 GMT From: John McNamara To: dev@dpdk.org Date: Tue, 24 Mar 2015 14:52:58 +0000 Message-Id: <1427208779-16548-1-git-send-email-john.mcnamara@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] mk: added make target to print out system info X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2015 14:53:08 -0000 Added a 'make system_info' target to print out system info related to DPDK. This is intended as output that can be attached to bug reports. This is related to the recent call for tools brainstorming by Thomas. http://dpdk.org/ml/archives/dev/2015-March/015499.html Bug reports to the DPDK mailing list rarely have enough information and require several follow-up questions to determine the version of software, the OS, the compiler etc. This 'make' target prints out some useful system information that can be attached to an email. There is no guarantee that the end user will do this but at least it can be documented and we can point them to it. Suggestions for other useful information to be output welcome. Untested on FreeBSD for now. Sample output: $ make system_info CC version ========== cc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8) Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. DPDK version ============ 2.0.0-rc2 Git commit ========== 0431d322b80858b9efa1b43480be6d4ddccf4a66 Uname ===== Linux 3.6.10-4.fc18.x86_64 #1 SMP Tue Dec 11 18:01:27 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Hugepages ========= AnonHugePages: 102400 kB HugePages_Total: 1024 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB ============================================================ Core and Socket Information (as reported by '/proc/cpuinfo') ============================================================ cores = [0, 1, 2, 3, 4, 5, 6, 7] sockets = [0, 1] Socket 0 Socket 1 -------- -------- Core 0 [0, 16] [8, 24] Core 1 [1, 17] [9, 25] Core 2 [2, 18] [10, 26] Core 3 [3, 19] [11, 27] Core 4 [4, 20] [12, 28] Core 5 [5, 21] [13, 29] Core 6 [6, 22] [14, 30] Core 7 [7, 23] [15, 31] Network devices using DPDK-compatible driver ============================================ 0000:84:00.0 '82599EB 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio unused= 0000:86:00.0 '82599EB 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio unused= Network devices using kernel driver =================================== 0000:03:00.0 'RTL8111/8168 PCI Express Gigabit Ethernet controller' if=p260p1 drv=r8169 unused=igb_uio 0000:06:00.0 'I350 Gigabit Network Connection' if=em0 drv=igb unused=igb_uio 0000:06:00.1 'I350 Gigabit Network Connection' if=eth0 drv=igb unused=igb_uio 0000:81:00.0 '82599EB 10-Gigabit SFI/SFP+ Network Connection' if=p264p1 drv=ixgbe unused=igb_uio 0000:81:00.1 '82599EB 10-Gigabit SFI/SFP+ Network Connection' if=p264p2 drv=ixgbe unused=igb_uio 0000:84:00.1 '82599EB 10-Gigabit SFI/SFP+ Network Connection' if=p263p2 drv=ixgbe unused=igb_uio 0000:86:00.1 '82599EB 10-Gigabit SFI/SFP+ Network Connection' if=p262p2 drv=ixgbe unused=igb_uio 0000:88:00.0 '82599EB 10-Gigabit SFI/SFP+ Network Connection' if=p261p1 drv=ixgbe unused=igb_uio 0000:88:00.1 '82599EB 10-Gigabit SFI/SFP+ Network Connection' if=p261p2 drv=ixgbe unused=igb_uio Other network devices ===================== John McNamara (1): mk: added make target to print out system info mk/rte.sdkroot.mk | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) -- 1.8.1.4