Singularity HPC Container Technology Moves Out of the Lab

By John Russell

May 4, 2017

Last week, Singularity – the fast-growing HPC container technology whose development has been spearheaded by Gregory Kurtzer at Lawrence Berkeley National Lab – took a step ‘out of the lab’ with formation of SingularityWare LLC by Kurtzer. In this Q&A interview with HPCwire, Kurtzer discusses Singularity’s history, adoption and technology trends, and what the organizational change means for Singularity and its growing user base. Singularity remains firmly in the open domain says Kurtzer.

Container technology, of course, isn’t new. Docker containers and its ecosystem of tools have stormed through the enterprise computing environment. Enhanced application portability, reproducibility, and collaborative development efforts are among the many attractions. HPC was late to this party, or perhaps more accurately Docker was less than ideal for HPC. For example, security issues and inability to run well in closely-coupled computing environments were prominent stumbling blocks.

Gregory Kurtzer, SingularityWare CEO

Singularity was developed specifically to solve those problems and to accommodate HPC needs and it has enjoyed surprisingly rapid adoption. Kurtzer started working on the project in November of 2015 and release 1.0 was roughly one year ago in April 2016; the latest release, 2.2.1, was issued in February 2017.

Kurtzer says that Open Science Grid has already served roughly 20 million containers in Singularity. A listing of existing Singularity users and the computational resources being used is available for download at the Singularity web site (still hosted at LBNL, at least for the moment). Some of the institutions working with Singularity include: TACC, San Diego Supercomputer Center, GSI Helmholtz Center for Heavy Ion Research, NIH, Stanford University, and LBNL. There is also a small scattering of commercial users.

More than many, Kurtzer in his role as HPC systems architect and technical lead of the HPC group at LBNL has had a close eye on efforts to adapt containers for use in HPC. Incidentally, he will remain a scientific advisor for LBNL but become CEO of SingularityWare, which is being funded by another start-up, RStor. Parsing the SingularityWare-RStor relationship seems a little fuzzy at present but these are early days. Kurtzer informed the community of the new changes under the heading ‘Big Singularity Announcement‘ last Friday.

HPCwire: Container use – mostly Docker – grew rapidly in the enterprise/commercial space; what did you see as the need and role for container technology in HPC at the start of the Singularity project?

Greg Kurtzer: This occurred in chronologic steps. First the problem to solve was, how do we support Docker on our HPC resources. Scientists were asking for it, begging for it in fact, yet no HPC centers were able to install Docker on their traditional HPC systems. After dedicating some time to this, talking to many other resource providers, and integrators, and becoming very frustrated at the inherent incompatibilities. Then I had the novel idea of talking to the scientists. Learning from them what they need. Understanding what problems Docker was solving for them and how best to address that.

These problems that Docker solved for scientists really boiled down to: software environment reproducibility, environment mobility/agility, the ability to leverage the work of their peers, control of their own software stack, and the ability to do all of the above intuitively. But in HPC and on supercomputers, Docker has been deemed a non-starter due to its usage model. For example it would allow users to control a root owned damon process, without appropriate precautions in place to securely access and control data or limit escalation of user contexts. Nor is it generally compatible with resource manager workflows or compatible with MPI workloads, among lots of other factors. So while Docker was working fine for scientists using loosely coupled or non-parallel applications on private resources just fine, it is a dead end path for anyone requiring to scale up to supercomputers.

Singularity approached this from the perspective of, what problems do we really need to solve for science and compute, and what was found is that there is a much more appropriate manner to solve these problems than shoe-horning Docker, a solution designed for enterprise micro-service virtualization, onto scientific computing.

HPCwire: Can you give a few numbers to illustrate Singularity’s growth? Roughly how many users does Singularity have today, what’s been the rate of growth, and what segments (academia, labs, etc.) have been the most active and why? What does the typical user(s) look like?

Kurtzer: This is really hard to keep track of. I had someone recently come up to me and say “In less than a year, Singularity went from being unheard of to a standard component on every HPC resource I have access to!”. I had no response, but was jumping up and down excitedly … on the inside.

Along the effort of trying to keep up, I created a Google form that allows people to self register their system. On this voluntary registry you will find some of the largest public HPC resources in the world. One of them, at any given moment, is running 2000 Singularity containers at a time. The OSG (Open Science Grid) has served up well over twenty million containers with Singularity! I can go on, but the gist is that Singularity has been adopted faster than I could keep up with development, support and maintenance.

HPCwire: What have been the dominant use cases (research, development/prototyping, production, etc.) and how do you see that changing over time? Could you briefly cite a couple of examples of Singularity users and what they are using it for?

Kurtzer: I can elaborate on a couple of very general usage examples:

A scientist has a workload where the dependencies and environment is difficult to (re)create or includes some binary components specific to a particular distribution or flavor of Linux. Singularity will allow this scientist to build a container that properly addresses the dependencies. Once this has been done, that container can be copied to any system (private/local, HPC, or cloud) that the scientist has access to and run that container; assuming of course that Singularity has been installed on that host.

Cloud computing resources are becoming more common, a single Singularity container image can include all of the dependencies necessary to bring that workload from site to site and cloud to center. A result of the image being a single file makes it very easy to “carry around” an image that has all of the applications, tools and environment you may need.

Not all scientific workflows are public, many scientific libraries, programs and data are controlled (export, classified, trade secrets, etc.) which makes managing the visibility and access to these containers critical. Singularity’s use of single file images, like any file on a local file system, abide by standard POSIX permissions, makes Singularity a very capable technology for this use-case.

HPCwire: Maybe we should briefly describe what Singularity is and its underlying technology. What are the key features today, what feature gaps have been identified, and what’s the technology roadmap going forward? I realize the latter may not yet be fleshed out. How do Power- and ARM-based systems fit into the plans?

Kurtzer: Singularity is a container platform designed to support containers utilizing a single image file which allows users to have full control of where and how their containers are accessed and used. Embedded in the container image file is the entire encapsulation of the contained environment, and running any program, script, workflow, or accessing any data within, is as easy as running any command line program. Singularity can also deal with other container formats like Squash FS based containers and Docker containers, but these other formats are less optimal as general purpose Singularity containers.

Comparing to Docker and other enterprise container systems, these focus on the necessity for full process isolation and strive to give the illusion of sole occupancy on the physical host. For scientific compute, the goal is almost 180 degrees opposite. We want to leverage the host’s resources as directly and efficiently as possible. That may include file systems, interconnects and GPUs. Isolation from these services becomes a detriment in terms of our needs.

I have already ported Singularity to Power and it worked “out of the box” on ARM, but I don’t have much access to these architectures, so I don’t test much on them.

HPCwire: How should we relate Singularity to Docker? Are they competitive or likely to bump against each other in the HPC community?

Kurtzer: Traditionally, HPC is referring to a subset of use cases, where the applications are very tightly coupled, based on MPI (or PVM), and they require non-commodity internets for decent performance, and can scale to gigantic extreme scales. While this form of scientific computing is relatively small compared to the overall range of scientific computing in general (e.g. the long tails), large centers have to build computing resources capable of supporting this highest uncommon denominator of computing. As a result, for a container system to run on this resource it must be compatible with this architecture.

Docker is designed for micro-service virtualization. While some of the enterprise feature sets as I mentioned previously fit the scientific uses, Docker is not designed or compatible with the general multi-tenant shared compute architectures traditionally implemented on traditional HPC that I described above. For this reason, in HPC, I see no competition, as Docker just isn’t an option.

But outside of the traditional HPC, as we look more to the generalized scientific application stack, we do see that Docker is being used for local private use-cases. Here scientists now have options, with neither tool being “wrong” when it works. Singularity as a result is building in native compatibility with Docker; for example, in Singularity, you can run a container directly or bootstrap a new container image from a remote Docker registry, without having any Docker bits installed on your host.

Thus commands like:

$ singularity shell –nv docker://tensorflow/tensorflow:latest-gpu would work exactly as expected.

BTW, the above command demonstrates how to run GPU enabled Tensorflow utilizing Singularity’s native Nvidia GPU support, without having Tensorflow installed on the host. After installing Singularity (at present from the ‘development’ GitHub branch), it takes approx 30 seconds to start running programs like this.

HPCwire: Given the move to a for-profit organization, what are the expansion plans for Singularity’s user base/target market?

Kurtzer: While being funded primarily by the government, Singularity had limitations in terms of funding, partners, support and growth. Now that we have a sustainable funding and growth model, it is all about building the team, and developing new features! Some of these features will include support for backgrounded processes (daemons), trusted computing, integration with cloud orchestration platforms like Kubernetes and Mesos, as well as optimization for object stores. We will hopefully expand our use base even more by addressing more of the scientific use cases – e.g. the above command with Nvidia/Cuda support is an example of that – and the “target market” and project goals and direction, will remain the same.

HPCwire: Many job schedulers (e.g. Univa) and “cloud orchestrators” (e.g. Cycle Computing) have worked to become “container” friendly; do you expect the same will happen for Singularity?

Well, Singularity is job scheduler neutral. Any user can add Singularity container commands into their own batch scripts (as long as Singularity is installed) thus all resource managers are supported. As far as orchestration systems outside of traditional HPC, yes! We are recruiting people right now to help with that.

HPCwire: What does moving Singularity into SingularityWare mean for you personally?

Kurtzer: My previous capacity at LBNL was HPC systems architect and technical lead of the HPC group. After I developed Singularity, my “day job” did not vanish, so Singularity has been a side project that I’ve been working on primarily in the evenings and weekends. Working with RStor to create SingularityWare, LLC., has enabled me to focus my time and efforts to Singularity development and building the community and project by making it my primary effort.

HPCwire: As a for profit entity, SingularityWare’s goals and aspirations are presumably somewhat different?

Kurtzer: SingularityWare, LLC, is a hosting platform for Singularity (and Warewulf) rather than a for profit entity. As with any thriving project, it is important not to change anything, but only add value. This means there will be no changes in the existing support, development, contributions or release models that people have become accustomed to. Additionally, because there is no part of the fiscal sustainability model that relies on commercial support contracts, services, consulting or paid licenses, means that there is no pressure to “sell” Singularity.

Of course, if you find that you need more support services than what is currently provided via the open source community, then our door is always open. This is also the same now for technology partnerships.

HPCwire: Perhaps review the changes along the lines of how users will/can receive support, what (products) to expect from SingularityWare, and how community contributions will be handled?

Kurtzer: Given that RStor is funding my time (and others) for Singularity development, I would raise my hand, on behalf of my team at RStor as a provider of support and services for Singularity. As far as community contributions, all commits originating from RStor will assign copyright to SingularityWare, LLC. Contributions from other sources will be maintained and accepted exactly as they do now.

HPCwire: So what’s your new title and are you building a staff at SingularityWare?

Kurtzer: At RStor, my title is “Senior Architect” and YES, I am looking to hire developers! C programmers, Python, and Go developers please send me your resumes ASAP! I am also interested in working with academia and helping them receive funding for interns, grads and postdocs to contribute to Singularity. With regard to SingularityWare, LLC… I suppose I have the fancy title of CEO of a one person company.

HPCwire: I couldn’t find much online about RStor. What does partner/support mean here? What’s the relationship between the two. Will you have a position at RStor?

Kurtzer: To reiterate above, my primary responsibility at RStor is development and leadership of Singularity to which they are providing me a team. But given that they are doing some fantastic stuff, I find myself drawn to be part of helping to make sure their storage platform is highly optimized for the use-cases that hit home personally for me (e.g. Research Data Management – RDM).

This is one of the reasons I decided on this path; an appropriate RDM solution is severely lacking in the scientific industry. When I learned what RStor was planning on doing I became very excited with their direction and was impressed by their leadership and vision. I saw that RDM became easily tangible thanks to the technologies they are creating and if you couple RDM with Singularity single image file based containerization, you end up with the holy grail of reproducible and agile computing.

HPCwire: What haven’t I asked that I should? Please add what you think is important.

Kurtzer: Warewulf is another project that I lead and it is a widely utilized cluster management and provisioning system. Warewulf has been around for 15+ years and currently the basis of provisioning for OpenHPC. I have giant grand visions and have had many discussions with Intel, other national labs, and other corporates about how to make Warewulf exascale ready. I also have commitment from RStor to facilitate this as well.

Subscribe to HPCwire's Weekly Update!

Be the most informed person in the room! Stay ahead of the tech trends with industry updates delivered to you every week!

Empowering High-Performance Computing for Artificial Intelligence

April 19, 2024

Artificial intelligence (AI) presents some of the most challenging demands in information technology, especially concerning computing power and data movement. As a result of these challenges, high-performance computing Read more…

Kathy Yelick on Post-Exascale Challenges

April 18, 2024

With the exascale era underway, the HPC community is already turning its attention to zettascale computing, the next of the 1,000-fold performance leaps that have occurred about once a decade. With this in mind, the ISC Read more…

2024 Winter Classic: Texas Two Step

April 18, 2024

Texas Tech University. Their middle name is ‘tech’, so it’s no surprise that they’ve been fielding not one, but two teams in the last three Winter Classic cluster competitions. Their teams, dubbed Matador and Red Read more…

2024 Winter Classic: The Return of Team Fayetteville

April 18, 2024

Hailing from Fayetteville, NC, Fayetteville State University stayed under the radar in their first Winter Classic competition in 2022. Solid students for sure, but not a lot of HPC experience. All good. They didn’t Read more…

Software Specialist Horizon Quantum to Build First-of-a-Kind Hardware Testbed

April 18, 2024

Horizon Quantum Computing, a Singapore-based quantum software start-up, announced today it would build its own testbed of quantum computers, starting with use of Rigetti’s Novera 9-qubit QPU. The approach by a quantum Read more…

2024 Winter Classic: Meet Team Morehouse

April 17, 2024

Morehouse College? The university is well-known for their long list of illustrious graduates, the rigor of their academics, and the quality of the instruction. They were one of the first schools to sign up for the Winter Read more…

Kathy Yelick on Post-Exascale Challenges

April 18, 2024

With the exascale era underway, the HPC community is already turning its attention to zettascale computing, the next of the 1,000-fold performance leaps that ha Read more…

Software Specialist Horizon Quantum to Build First-of-a-Kind Hardware Testbed

April 18, 2024

Horizon Quantum Computing, a Singapore-based quantum software start-up, announced today it would build its own testbed of quantum computers, starting with use o Read more…

MLCommons Launches New AI Safety Benchmark Initiative

April 16, 2024

MLCommons, organizer of the popular MLPerf benchmarking exercises (training and inference), is starting a new effort to benchmark AI Safety, one of the most pre Read more…

Exciting Updates From Stanford HAI’s Seventh Annual AI Index Report

April 15, 2024

As the AI revolution marches on, it is vital to continually reassess how this technology is reshaping our world. To that end, researchers at Stanford’s Instit Read more…

Intel’s Vision Advantage: Chips Are Available Off-the-Shelf

April 11, 2024

The chip market is facing a crisis: chip development is now concentrated in the hands of the few. A confluence of events this week reminded us how few chips Read more…

The VC View: Quantonation’s Deep Dive into Funding Quantum Start-ups

April 11, 2024

Yesterday Quantonation — which promotes itself as a one-of-a-kind venture capital (VC) company specializing in quantum science and deep physics  — announce Read more…

Nvidia’s GTC Is the New Intel IDF

April 9, 2024

After many years, Nvidia's GPU Technology Conference (GTC) was back in person and has become the conference for those who care about semiconductors and AI. I Read more…

Google Announces Homegrown ARM-based CPUs 

April 9, 2024

Google sprang a surprise at the ongoing Google Next Cloud conference by introducing its own ARM-based CPU called Axion, which will be offered to customers in it Read more…

Nvidia H100: Are 550,000 GPUs Enough for This Year?

August 17, 2023

The GPU Squeeze continues to place a premium on Nvidia H100 GPUs. In a recent Financial Times article, Nvidia reports that it expects to ship 550,000 of its lat Read more…

Synopsys Eats Ansys: Does HPC Get Indigestion?

February 8, 2024

Recently, it was announced that Synopsys is buying HPC tool developer Ansys. Started in Pittsburgh, Pa., in 1970 as Swanson Analysis Systems, Inc. (SASI) by John Swanson (and eventually renamed), Ansys serves the CAE (Computer Aided Engineering)/multiphysics engineering simulation market. Read more…

Intel’s Server and PC Chip Development Will Blur After 2025

January 15, 2024

Intel's dealing with much more than chip rivals breathing down its neck; it is simultaneously integrating a bevy of new technologies such as chiplets, artificia Read more…

Choosing the Right GPU for LLM Inference and Training

December 11, 2023

Accelerating the training and inference processes of deep learning models is crucial for unleashing their true potential and NVIDIA GPUs have emerged as a game- Read more…

Baidu Exits Quantum, Closely Following Alibaba’s Earlier Move

January 5, 2024

Reuters reported this week that Baidu, China’s giant e-commerce and services provider, is exiting the quantum computing development arena. Reuters reported � Read more…

Comparing NVIDIA A100 and NVIDIA L40S: Which GPU is Ideal for AI and Graphics-Intensive Workloads?

October 30, 2023

With long lead times for the NVIDIA H100 and A100 GPUs, many organizations are looking at the new NVIDIA L40S GPU, which it’s a new GPU optimized for AI and g Read more…

Shutterstock 1179408610

Google Addresses the Mysteries of Its Hypercomputer 

December 28, 2023

When Google launched its Hypercomputer earlier this month (December 2023), the first reaction was, "Say what?" It turns out that the Hypercomputer is Google's t Read more…

AMD MI3000A

How AMD May Get Across the CUDA Moat

October 5, 2023

When discussing GenAI, the term "GPU" almost always enters the conversation and the topic often moves toward performance and access. Interestingly, the word "GPU" is assumed to mean "Nvidia" products. (As an aside, the popular Nvidia hardware used in GenAI are not technically... Read more…

Leading Solution Providers

Contributors

Shutterstock 1606064203

Meta’s Zuckerberg Puts Its AI Future in the Hands of 600,000 GPUs

January 25, 2024

In under two minutes, Meta's CEO, Mark Zuckerberg, laid out the company's AI plans, which included a plan to build an artificial intelligence system with the eq Read more…

China Is All In on a RISC-V Future

January 8, 2024

The state of RISC-V in China was discussed in a recent report released by the Jamestown Foundation, a Washington, D.C.-based think tank. The report, entitled "E Read more…

Shutterstock 1285747942

AMD’s Horsepower-packed MI300X GPU Beats Nvidia’s Upcoming H200

December 7, 2023

AMD and Nvidia are locked in an AI performance battle – much like the gaming GPU performance clash the companies have waged for decades. AMD has claimed it Read more…

DoD Takes a Long View of Quantum Computing

December 19, 2023

Given the large sums tied to expensive weapon systems – think $100-million-plus per F-35 fighter – it’s easy to forget the U.S. Department of Defense is a Read more…

Nvidia’s New Blackwell GPU Can Train AI Models with Trillions of Parameters

March 18, 2024

Nvidia's latest and fastest GPU, codenamed Blackwell, is here and will underpin the company's AI plans this year. The chip offers performance improvements from Read more…

Eyes on the Quantum Prize – D-Wave Says its Time is Now

January 30, 2024

Early quantum computing pioneer D-Wave again asserted – that at least for D-Wave – the commercial quantum era has begun. Speaking at its first in-person Ana Read more…

GenAI Having Major Impact on Data Culture, Survey Says

February 21, 2024

While 2023 was the year of GenAI, the adoption rates for GenAI did not match expectations. Most organizations are continuing to invest in GenAI but are yet to Read more…

The GenAI Datacenter Squeeze Is Here

February 1, 2024

The immediate effect of the GenAI GPU Squeeze was to reduce availability, either direct purchase or cloud access, increase cost, and push demand through the roof. A secondary issue has been developing over the last several years. Even though your organization secured several racks... Read more…

  • arrow
  • Click Here for More Headlines
  • arrow
HPCwire