HDT (Hardware Detection Tool) is an OS independent tool that displays low-level information on any x86 compatible system. It detects ACPI, CPU, PCI devices, DMI (memory, BIOS, motherboard, IPMI base board, chassis, batteries, CPU), disks (geometry, partitions), PXE environment, VESA modes, and VPD. It can also deduce the Linux kernel modules needed by a given host.
hwloc provides command line tools and a C API to obtain the hierarchical map of key computing elements, such as: NUMA memory nodes, shared caches, processor sockets, processor cores, and processor "threads". hwloc also gathers various attributes such as cache and memory information, and is portable across a variety of different operating systems and platforms. hwloc primarily aims at helping high-performance computing (HPC) applications, but is also applicable to any project seeking to exploit code and/or data locality on modern computing platforms.