Skip to main content
QUICK REVIEW

[Paper Review] Portage: Bringing Hackers' Wisdom to Science

G. Amádio, Benda Xu|arXiv (Cornell University)|Oct 10, 2016
Cloud Computing and Resource ManagementComputer Science1 references4 citations
TL;DR

This paper proposes Portage, a flexible and robust package management system from Gentoo Linux, adapted via Gentoo Prefix to enable cross-compilation and management of complex, up-to-date software stacks in HPC environments. It demonstrates how Portage's use of ebuilds, USE flags, and package slots allows fine-grained control over multiple versions and build configurations, significantly improving reproducibility and maintainability in scientific computing.

ABSTRACT

Providing users of HPC systems with a wide variety of up to date software packages is a challenging task. Large software stacks built from source are difficult to manage, requiring powerful package management tools. The Portage package manager from Gentoo is a highly flexible tool that offers a mature solution to this otherwise daunting task. The Gentoo Prefix project develops and maintains a way of installing Gentoo systems in non-standard locations, bringing the virtues of Gentoo to other operating systems. Here we demonstrate how a Gentoo Prefix installation can be used to cross compile software packages for the Intel Xeon Phi known as Knights Corner, as well as to manage large software stacks in HPC environments.

Motivation & Objective

  • Address the challenge of managing large, up-to-date software stacks in HPC environments where system-provided packages are outdated.
  • Overcome the limitations of traditional package managers in handling complex dependencies, build-time configurations, and multiple versions of the same package.
  • Enable users in privilege-restricted HPC environments to install and manage customized software stacks using Gentoo Prefix.
  • Support scientific reproducibility by natively managing multiple versions and build configurations of software packages.
  • Leverage the collective wisdom of the open-source community to improve software sustainability and maintainability in scientific computing.

Proposed method

  • Utilize Portage, a source-based package manager with ebuilds that define build instructions, dependencies, and configuration options.
  • Employ USE flags to customize compile-time options (e.g., enabling MPI, choosing Python versions) without rebuilding entire stacks.
  • Use package slots to allow multiple versions of the same package (e.g., different compilers or BLAS libraries) to coexist on the same system.
  • Leverage Gentoo Prefix to install a full Gentoo environment in non-standard, user-writable locations, enabling rootless software management.
  • Apply patches to packages via ebuilds and overlays, supporting customization for HPC-specific needs.
  • Use the emerge command-line tool to resolve dependencies, enforce correct build order, and rebuild only affected packages when configurations change.

Experimental results

Research questions

  • RQ1How can a package manager effectively manage complex, multi-version software stacks in HPC environments with diverse build configurations?
  • RQ2To what extent can a source-based package manager like Portage improve software reproducibility and maintainability in scientific computing?
  • RQ3Can Gentoo Prefix enable secure, user-level installation of customizable software stacks in HPC systems without root access?
  • RQ4What are the practical benefits and trade-offs of supporting multiple versions and build configurations by default in scientific software management?
  • RQ5How can the collective experience of open-source developers (hackers) be leveraged to solve persistent challenges in scientific software deployment?

Key findings

  • Portage enables the management of large, complex software stacks in HPC environments with fine-grained control over build configurations and dependencies.
  • The use of USE flags allows users to tailor software builds for performance or compatibility, such as enabling specific instruction sets or disabling unnecessary components.
  • Package slots allow multiple versions of the same package (e.g., different MPI implementations or Python versions) to be installed simultaneously, supporting reproducibility and compatibility.
  • Gentoo Prefix allows full installation of a Gentoo environment in non-standard, user-writable paths, enabling users to manage software without root privileges.
  • The system supports cross-compilation for specialized hardware like Intel Xeon Phi (Knights Corner), demonstrating its adaptability to HPC workloads.
  • The maturity and scrutiny of Portage—maintained by hundreds of developers—make it a robust and reliable solution for scientific software management, reducing the chaos of inconsistent software builds.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.