0

some processes on my computer are using way too much video card memory for the tasks they're doing. I'd like to impose a limit on these tasks to have the OS limit the on-card RAM usage of these tasks. normally, I could use ulimit if the target were the file system, CPU, or system memory. This utility however does not seem to have any capabilities regarding the video card's memory within a PC.

So then this is my question: given that I know the path of an executable that I'd like to impose an upper limit on the consumption of video card memory for, how does one impose such a limit? The card in this case is NVidia based.

4
  • If you reduce the video display resolution does the video ram consumption of these processes also get smaller? Commented Jul 17, 2023 at 5:29
  • @SottoVoce in this case, reducing from 4k to 2k does have a noticeable effect on the memory, though it is minor. Commented Jul 17, 2023 at 5:37
  • 1
    AFAIK that's currently not possible. No API for that, nothing on the side of NVIDIA. Commented Jul 17, 2023 at 8:27
  • @ArtemS.Tashkinov I'd agree with you. I think you should post your comment as answer! Commented Jul 17, 2023 at 8:47

1 Answer 1

1

AFAIK that's currently not possible. No API for that, nothing on the side of NVIDIA.

That looks almost weird and irrational but then there's a likely rationale: GPUs, despite being masively parallel, are often/normally used to a run a single computational task. The only exception I can think of is your Display Manager and your system UI which are running in parallel at all times but then their memory/compute use should be negligible (unless your GPU is over 15 years old but then you shouldn't be running a modern OS and tasks on such an outdated device).

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.