SCHEDMD'S NICK IHLI DISCUSSES SLURM AT SUPERCOMPUTING - COREWEAVE INC
I'm going to be talking about accelerating HPC and AI with Slurm and SkedMD. My name is Nick Eilly. I'm the Director of Solutions Engineering at SkedmD and also focus on our cloud. Now, most people know what Slurm is. So Slurm, is your schedule, your means of allocating your resources, managing the competition for the resources among your users, the means of starting and executing your jobs, managing the node health and the job health, et cetera. So Slurm leads in the industry in all these different areas that we have here. So Slumm is on the first exascale system of Frontier, so on and so forth. So Slunn can do a lot and has a lot of capabilities. One of the most important things about Slurm is right here. So at SkedMD, we are the developers and maintainers at Slurm. So we're able to continue to advance Slurm and move it into all the new next-gen capabilities that are needed amongst the many high-performance computing and AI systems that are out there. Right here, specifically, Kubernetes. This is where CoreWeave comes in. So CoreWeav, if you are not familiar with CoreWeав, their whole environment that they provide in their cloud is all built on Kubernetes. And so they have developed an amazing integration with Slurm to do really two things, to provide you the ability to schedule your AI workloads that are on Kubernetes, like your inference on Kubernetes but also use the same resources in your whole cloud environment with Slurm for your batch and HPC jobs and training jobs and things like that. Also, they're using some of Slurm's capabilities to autoscale those resources so that you can add more nodes as needed within your environment. We'll talk more about that. So as I mentioned, not as many people know So, Skedmd, we are the main developers of Slurm, we maintain the repo, and the main thing that we do is provide support, consultation, training services with Slurm. So when you have a problem with Slurm, you call us, okay? So SkedMd, you are the Slurm company. When you work with Slurn, you're going to work with organizations that have trusted SCETMD, many different organizations from across all the different HPC industries that you work with. AI, manufacturing to biopharmaceutical, academic government, et cetera. And so our main service that we provide is support. With SCETDMD you are able to get immediate access with the engineers that are actually developing Slurm and fixing Slurm. Fixing Slurm bugs and issues, etc. We have like a first or second or third level that you move down the list to somebody that can actually finally solve your problem. You get the engineer that's going to fix your issue is the person you're going to talk to immediately when you submit issues with Slurm. Through our support we're able to provide you best practice optimization, help you to get the most out of Slurm that you're using. Now you've spent millions of dollars on your HPT environment and then you're using Slurm, and you want to get as much out of that hardware that you can. And so that's where we come in with our consultations. We're able to, you know, look at your configuration, optimize it to make sure you're getting the most out of it. You're getting that high utilization, so you're not wasting any of those expensive resources that you have purchased. We also provide training. Our training service is extremely beneficial to organizations. Many of them think, oh, I know slurm. I've used it for many years. But through our three-day intense training, you're able to get a very good detailed understanding of how the internals of slurm works, which then can help you understand how we should take these different configurations and policies and match those to our business rules that we might have. So we can, again, get the most out of it and be running at a high efficiency. And so our training can be very, very beneficial. Even if you had it before, highly recommend to get it again for those that are new to slurm that are using something else like LSF PBS Pro grid engine etc we also provide a proof of concept where we can work with you to learn how you're gonna migrate from what you currently are you to slur will sit down with you understand what your workflows are like understand your workloads understand all the different policies and business rules you have and help you convert those and translate those to what Slurm would require and how you'd use Slurm to handle those different business use cases that you have. During this time, you also get full access to our support team so you can learn how support works and ultimately have a more efficient and quicker migration. So that's GetMD. Now let's talk again about Slurm. So do more with Slurm I'm going to cover a number of areas that Slurm is able to handle. A lot of times we get questions from people like, oh, I didn't know Slurm could do this, or I didn' t know Slurm could do that. So we're going to talk through about a number of these. And these are the things that we see why sites are using Slurm. First of all, Slurm is highly, highly scalable. So today, Slurrm is on the list that just came out yesterday, five of the top ten supercomputing systems, specifically number one of Frontier. So it can handle thousands and thousands and 1000s of nodes, handle those large, large environments that you might have. No environment is too large for Slurm. At the same time, we can also handle high throughput environments. So we're very, very strong in areas like the financial community that might be having millions and millions and billions of jobs, that they have that throughput, the jobs might be in the seconds, and you need to see jobs move through the environment very, very quickly. Now, for customers of CoreWeave and kind of one of the highest growth industries right now of AI, Slurm is very strong in as well. We treat GPUs as a first-class citizen. So GPUs to us are the same as like a CPU. So you can have very fine-grained control of how your jobs are scheduled to GPUs, whether that be you want to pin your resources to a GPU, pin them to the closest CPU and closest GPU memory, etc. We auto-detect the GPUs. We support the MIGs as well. You can treat each individual partition MIG as a normal GPU where you set CUDA to visible devices and your job knows exactly which GPU it's been allocated to that job. So when you're needing those GPU workloads, Slurm is very strong for that. One of the strongest aspects of Slurm is that ability to match your complex business rules and practices to feature functionality within Slurm. So you might have those situations where certain users are more important than other users, certain projects take precedence over other projects. You have a wide variety of users that all have a different level of usage of the environment, and some are more importante than others, et cetera. You need to go and be able to take those business rules that have been agreed upon by different committees and organizations and have the scheduler do those automatically. And so SLURM has a number of capabilities that can make that possible. Multi-factor priorities, a number of different components that can go in to determine what the priority of a job is in the queue. Maybe the age of the job, who submitted the job how much of the system they've been using from a fair share perspective. Maybe that job has been preempted previously and restarted, etc. Has the fair share capabilities So you can divvy out the system and make sure that the right amount of resources are used by the different organizations. And if they end up getting too much usage of the system over a period of time, their priority drops. While other people have been using less of the systems, their priorities increase. So you are able to go and have a more fair, balanced system according to what is fair to your business rules. Qualities of services, account hierarchies. You can have subaccounts and multiple accounts for your different projects and set priorities and usage limits and limitations to make sure, again, the right people to the right resources. And then again, this is where our services come in, where we can sit down with you and help you take those policies that you have and figure out how SLURM is going to do those best. So you balance that high utilization with also making sure you are getting the level of access to the system that different groups need. all too often these sites maybe implement certain policies but at the detriment to utilization where they'll have 20 percent of the system sitting there idle wasting because they're trying to make sure they set aside resources for specific groups and so there's ways to balance that to have that high utilization still and still make sure that the right people get access to the resources when they need support all these different trackable resources we call them Tres, trackable resources. These are things like CPU, memory, nodes, but also GPUs, licenses, file system, and custom generic resources that you might have. All these are able to be pushed into Slurm, where then you're able to submit jobs and request which kind of resources you need, and we've talked about GPUs as well as the fine-grained control you have over those. Usage limits, you have quality services in Slurm where you can make sure that you set different groups and different projects have access to, so that not one group can fully dominate the system. They're able to manage licenses, so all those very, very expensive licenses you have with your applications, with Slurm you're able make sure that those licenses are available before the job starts, and you're be able to push that data into Slurm so it's able to understand and know what it has scheduled. Also if you have licenses that are taken from the license manager outside of the scheduling Slurm can be made aware of those so that you are able to have your jobs properly dispatched with a license and not have the job start and then fail because somebody took the license from somewhere else. Reporting. So Slurm also has a reporting database to hold all of the information about jobs, all this raw data about utilization of resources, GPU utilization, GPU memory, CPU utilization, how long the jobs ran, who ran the job, et cetera. All that raw data is available. We're able to access that data through a couple commands, S account. With S account, you can get job-specific data. With S report, you Can get roll-up and data of understanding how many resources that idle because of our policies that we maybe have. We had resources available, but jobs were queued up for a period of time and couldn't run on those resources because of some policy that we may have had. Or how many more jobs could have ran if we had more resources? and so you understand what your queue looked like that you can give to management and say, hey, we go buy 100 more nodes, we could have got X amount more workload through the environment. Also, there's a number of community tools provided that allow you to have access to that raw data through a visualization means. A popular one is XDMod. We also have some plugins to Elasticsearch where you can use Kibana to view that data. A very popular one these days is a Prometheus scraper that then using Grafana, you're able to view that data. So Slurm is really the edge to the cloud. Many of you might have an on-prem environment and you're looking to use CoreWeave. Slurm becomes that on-ramp to the Cloud for you because your experience of Slurm in Cloud is going to be the exact same experience on-prem. Submit your job, the job runs. behind the scenes where Slurm and CoreWeave will be adding more nodes to the environment dynamically. The jobs run on those nodes and then those nodes are no longer needed and they get powered down, they get destroyed and relinquished to the cloud. And you as a user, you just submitted your job. So from a user perspective, there's nothing different. So it's very easy to move from your on-prem environment to a cloud environment with Slurm or do that hybrid environment where you burst to the cloud. You have your on-prem. You need more resources. Those resources get added in CoreWeave for your jobs. We have very tight integration. This is a very common question. So there's a couple of different methods that you can do with containers with Slurm. One in the release, last release, which was 2302. From the container technology like Podman, you can submit a container, and that runs a job that runs in the environment within that container. You can, with the job submission command of sbatch, you are able to submit a job with a container as well. Here's an actual example of this. You should do sbash dash dash container, give it the container. We'll get dispatched with that container and run inside that container, We also have a REST API. So the REST APIs allows you to have that programmatical interface interface with SLURM makes it very easy to integrate your different applications or to create your own maybe visualization tool for that data that we had talked about. One final pitch, just to give you more information. If you want to learn more about it, you're a SLURN user. We have our next SLURRM user group conference in September. I don't know if we have dates yet, no dates yet. But you can get an early registration now, and it's in Oslo, Norway. So go to Norway. It's going to be beautiful, and you'll be able to work with other organizations that use Slurm, learn more how they're using it, and learn better ways that you could utilize it as well.
- Company
- COREWEAVE INC
- Keywords
- COREWEAVE INC