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.
Rosetta Stone API aims to create a programming equivalent to the popular Unix Rosetta Stone, which gives commands for common tasks for many different flavors of Unix. RSApi is a Web page and library dedicated to getting system information out of different Unix platforms including Linux, Tru64, Solaris, HP-UX, and AIX.