Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2795

How to limit CPU utilization for a process in ubuntu vm

$
0
0

I am using ubuntu 20.04 VM for a course. For an assignment, I need to run a command that creates some thread and two processes happen simultaneously. However as soon I run the command ubuntu slows down and the CPU utilization goes to 200% for that process. I allotted 8GB/16GB RAM to oracle VM and 6/12 CPUs (Oracle forbids to allocate beyond 6 CPUs).

A screenshot of situation is attached:enter image description here

Is there some way to prevent this to happening?? Maybe some alternative that takes less CPU but more time? Also will this issue occur in WSL2??

PS: I am new to ubuntu and don't know the inner working at all. My friends and the Teaching assistants are not familiar with VM. I cannot dual boot ubuntu, last time it gave serious issues.


Viewing all articles
Browse latest Browse all 2795

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>