Using MPS to dramatically increase PPD on big GPUs (Linux guide)
Moderators: Site Moderators, FAHC Science Team
-
toTOW
- Site Moderator
- Posts: 6514
- Joined: Sun Dec 02, 2007 10:38 am
- Location: Bordeaux, France
- Contact:
Re: Using MPS to dramatically increase PPD on big GPUs (Linux guide)
Use your own hardware if you want to try exotic things.
-
foldinghomealone
- Posts: 176
- Joined: Wed Feb 01, 2017 7:07 pm
- Hardware configuration: 5900x + 5080
Re: Using MPS to dramatically increase PPD on big GPUs (Linux guide)
Parallel computing shouldn't be considered "exotic" on a cloud computing marketplace that rents out GPU and compute resources for AI workloads, machine learning training, rendering, and other high-performance computing tasks
-
toTOW
- Site Moderator
- Posts: 6514
- Joined: Sun Dec 02, 2007 10:38 am
- Location: Bordeaux, France
- Contact:
Re: Using MPS to dramatically increase PPD on big GPUs (Linux guide)
Docker instances will always have limitations to protect the host and other users on the same host. If you need total control of the hardware, you'll need dedicated hardware.
-
muziqaz
- Posts: 2227
- Joined: Sun Dec 16, 2007 6:22 pm
- Hardware configuration: 9950x, 9950x3d, 7950x3d, 5950x, 5800x3d
7900xtx, RX9070, Radeon 7, 5700xt, 6900xt, RX550, Intel B580 - Location: London
- Contact:
Re: Using MPS to dramatically increase PPD on big GPUs (Linux guide)
Try one layer of exotic only.
MPS is one layer
Docker is second layer
Vast.ai instance is 3rd layer
MPS is one layer
Docker is second layer
Vast.ai instance is 3rd layer
-
foldinghomealone
- Posts: 176
- Joined: Wed Feb 01, 2017 7:07 pm
- Hardware configuration: 5900x + 5080
Re: Using MPS to dramatically increase PPD on big GPUs (Linux guide)
Sorry guys, even considered that you're most helpful here on the board, you're answers are not really useful in this case because that they don't give any actionable information.
Useful answeres would be:
- no reply at all, if there is no meaningful information to add.
- "In my experience, docker template XYZ allowes EXCLUSIVE_PROCESS."
- "I haven't found any docker template allowing EXCLUSIVE_PROCESS."
- "Pls contact our team member USER - he's a vast.ai pro."
Useful answeres would be:
- no reply at all, if there is no meaningful information to add.
- "In my experience, docker template XYZ allowes EXCLUSIVE_PROCESS."
- "I haven't found any docker template allowing EXCLUSIVE_PROCESS."
- "Pls contact our team member USER - he's a vast.ai pro."
-
muziqaz
- Posts: 2227
- Joined: Sun Dec 16, 2007 6:22 pm
- Hardware configuration: 9950x, 9950x3d, 7950x3d, 5950x, 5800x3d
7900xtx, RX9070, Radeon 7, 5700xt, 6900xt, RX550, Intel B580 - Location: London
- Contact:
Re: Using MPS to dramatically increase PPD on big GPUs (Linux guide)
No,foldinghomealone wrote: ↑Mon Nov 10, 2025 12:06 pm Sorry guys, even considered that you're most helpful here on the board, you're answers are not really useful in this case because that they don't give any actionable information.
Useful answeres would be:
- no reply at all, if there is no meaningful information to add.
- "In my experience, docker template XYZ allowes EXCLUSIVE_PROCESS."
- "I haven't found any docker template allowing EXCLUSIVE_PROCESS."
- "Pls contact our team member USER - he's a vast.ai pro."
You are asking us to debug (for you, remotely) two items which are not included in the OP's post. This thread assumes you own the hardware, and it is at your house, you are not using docker or some other form of environment.
-
foldinghomealone
- Posts: 176
- Joined: Wed Feb 01, 2017 7:07 pm
- Hardware configuration: 5900x + 5080
Re: Using MPS to dramatically increase PPD on big GPUs (Linux guide)
So you're suggesting that if I open a new thread asking the same question I will get a more helpful answer from you?
-
muziqaz
- Posts: 2227
- Joined: Sun Dec 16, 2007 6:22 pm
- Hardware configuration: 9950x, 9950x3d, 7950x3d, 5950x, 5800x3d
7900xtx, RX9070, Radeon 7, 5700xt, 6900xt, RX550, Intel B580 - Location: London
- Contact:
Re: Using MPS to dramatically increase PPD on big GPUs (Linux guide)
No, you are free to use this one, but don't dismiss our suggestions, as they are valid suggestions. Whenever you do exotic stuff try to limit the variables. This is the same with troubleshooting of hardwarefoldinghomealone wrote: ↑Mon Nov 10, 2025 12:28 pmSo you're suggesting that if I open a new thread asking the same question I will get a more helpful answer from you?
Last edited by muziqaz on Mon Nov 10, 2025 2:21 pm, edited 1 time in total.
-
toTOW
- Site Moderator
- Posts: 6514
- Joined: Sun Dec 02, 2007 10:38 am
- Location: Bordeaux, France
- Contact:
Re: Using MPS to dramatically increase PPD on big GPUs (Linux guide)
Officiel Vast.ai Discord : https://discord.gg/vastfoldinghomealone wrote: ↑Mon Nov 10, 2025 12:06 pm - "Pls contact our team member USER - he's a vast.ai pro."
You're welcome.
-
foldinghomealone
- Posts: 176
- Joined: Wed Feb 01, 2017 7:07 pm
- Hardware configuration: 5900x + 5080
Re: Using MPS to dramatically increase PPD on big GPUs (Linux guide)
Regarding vast.ai and using MPS.
According to official support:
Vast docker are non privileged containers, meaning some permissions/access are not available to root users.
VMs should be tried instead for such tasks.
It is recommended to use following template (Ubuntu VM):
https://cloud.vast.ai?ref_id=108031&tem ... 830d32ab5b
However, it seems that not many GPUs are available for use with VM and they are more expensive than the one using the normal CUDA template.
According to official support:
Vast docker are non privileged containers, meaning some permissions/access are not available to root users.
VMs should be tried instead for such tasks.
It is recommended to use following template (Ubuntu VM):
https://cloud.vast.ai?ref_id=108031&tem ... 830d32ab5b
However, it seems that not many GPUs are available for use with VM and they are more expensive than the one using the normal CUDA template.
-
Albuquerquefx
- Posts: 20
- Joined: Wed Oct 01, 2025 3:05 am
- Hardware configuration: AMD 9800X3D + 5090, Windows 11
AMD 5950X + 4070 Super, Fedora 42 VM on Proxmox 8.3
AMD 5500 + 4070 Super + 4090, Fedora 42 + Cuda MPS
Re: Using MPS to dramatically increase PPD on big GPUs (Linux guide)
There's no way a docker host would instantiate Exclusive Mode for the hardware GPU; that completely breaks the concept (and base reasoning) for using a container ecosystem to begin with. Containerized workloads were designed and built as a very lightweight means to run multiple workloads on the same hardware, without the heavier Type 1 Hypervisor performance penalties (and also missing a lot of the featureset, too.)
Exclusive mode means only one CUDA context is permitted on the GPU. Thus, if a Docker host is providing GPU resources, why would you ever limit the card to a single docker instance? What are all the other docker containers gonna do? The short answer is: nothing with the GPU.
MPS combines all child contexts into a single parent context, which is how "Exclusive Mode" works with MPS. This decision to blend all contexts together makes precarious security assumptions... If it's your own Docker host at home, it's no problem at all because assumedly these are all your own CUDA contexts and you're OK with them hanging out together. In a production cloud (read: multitenant, or potentially so) environment, you should never amalgamate all these contexts together. MPS basically eliminates any data and process isolation mechanisms between the different CUDA contexts, meaning a bad actor can very easily reach across into processes and datasets which aren't theirs. It's great for eliminating terribly expensive context switches on the GPU, but it's terrible for process security.
CN: You'll need to rent your own piece of hardware, and then stack up Docker, if you want to play this game. It's not worth it.
Exclusive mode means only one CUDA context is permitted on the GPU. Thus, if a Docker host is providing GPU resources, why would you ever limit the card to a single docker instance? What are all the other docker containers gonna do? The short answer is: nothing with the GPU.
MPS combines all child contexts into a single parent context, which is how "Exclusive Mode" works with MPS. This decision to blend all contexts together makes precarious security assumptions... If it's your own Docker host at home, it's no problem at all because assumedly these are all your own CUDA contexts and you're OK with them hanging out together. In a production cloud (read: multitenant, or potentially so) environment, you should never amalgamate all these contexts together. MPS basically eliminates any data and process isolation mechanisms between the different CUDA contexts, meaning a bad actor can very easily reach across into processes and datasets which aren't theirs. It's great for eliminating terribly expensive context switches on the GPU, but it's terrible for process security.
CN: You'll need to rent your own piece of hardware, and then stack up Docker, if you want to play this game. It's not worth it.
