Python Code on VM Running Slow on TrueNAS-SCALE-22.12.0 - Need Help

hur

Cadet
Joined
Dec 26, 2022
Messages
9
Hello TrueNAS SCALE Community!

I am running TrueNAS-SCALE-22.12.0 on my system, and I have encountered an issue with the performance of Python code on my VM. I could really use some help to identify and fix the problem.

Here are the specifications of my hardware:

  • Storage: 1TB HDD
  • Boot drive: 256GB SSD
  • Memory: 16GiB
  • CPU: Intel(R) Xeon(R) CPU E31245 @ 3.30GHz
I have allocated 2 CPUs, 4 threads, and 4GB RAM to my Lubuntu VM. In the past, I have also tried using Linux Mint and Pepper but faced similar issues.

My use case involves running a few basic bots on the VM for tasks like forwarding messages from Discord to WhatsApp. My VM's network speeds appear to be fine, as I am getting more than 15Mbps for both upload and download on speedtest.net. However, I have noticed that Python code slows down significantly when performing online tasks, such as installing packages via pip.

Interestingly, the same code runs without any issues on another Windows PC, as well as on a Linux Mint installation within Oracle VirtualBox on that same PC.

I suspect that the problem lies with Python's network-related tasks on my TrueNAS SCALE setup. If anyone has experienced a similar issue or has any suggestions on how to troubleshoot and resolve this problem, I would greatly appreciate your input.

Thank you in advance for your help!
 
Top