Jump to content

FN 11 VM resource allocation question.

Quick question regarding resource allocation of a VM running within FreeNAS 11. Sorry if this is a dumb question, I'm new to using VMs.

 

So the main OS on the system is FN11 and I installed a Ubuntu VM that gets 4 (out of 8) CPU cores and 6GB RAM (out of 16). Does this mean that FN11 now only has access to 4 cores and 10GB or are the resources dynamically allocated as needed and the settings only represent what the VM is allowed to use/see? For example: If the VM is given 6GB but is only using 1GB at the time, does this mean that FN11 can still use 15GB or is it still limited to the 10GB? Could I theoretically give a VM all 8 cores and still have the rest of the system function normally? Side question: can VMs overlap resources? Can I have 3 VMs running each with 4 cores even though there are only 8 cores total?

 

Thanks for your help.

Primary PC-

CPU: Intel i7-6800k @ 4.2-4.4Ghz   CPU COOLER: Bequiet Dark Rock Pro 4   MOBO: MSI X99A SLI Plus   RAM: 32GB Corsair Vengeance LPX quad-channel DDR4-2800  GPU: EVGA GTX 1080 SC2 iCX   PSU: Corsair RM1000i   CASE: Corsair 750D Obsidian   SSDs: 500GB Samsung 960 Evo + 256GB Samsung 850 Pro   HDDs: Toshiba 3TB + Seagate 1TB   Monitors: Acer Predator XB271HUC 27" 2560x1440 (165Hz G-Sync)  +  LG 29UM57 29" 2560x1080   OS: Windows 10 Pro

Album

Other Systems:

Spoiler

Home HTPC/NAS-

CPU: AMD FX-8320 @ 4.4Ghz  MOBO: Gigabyte 990FXA-UD3   RAM: 16GB dual-channel DDR3-1600  GPU: Gigabyte GTX 760 OC   PSU: Rosewill 750W   CASE: Antec Gaming One   SSD: 120GB PNY CS1311   HDDs: WD Red 3TB + WD 320GB   Monitor: Samsung SyncMaster 2693HM 26" 1920x1200 -or- Steam Link to Vizio M43C1 43" 4K TV  OS: Windows 10 Pro

 

Offsite NAS/VM Server-

CPU: 2x Xeon E5645 (12-core)  Model: Dell PowerEdge T610  RAM: 16GB DDR3-1333  PSUs: 2x 570W  SSDs: 8GB Kingston Boot FD + 32GB Sandisk Cache SSD   HDDs: WD Red 4TB + Seagate 2TB + Seagate 320GB   OS: FreeNAS 11+

 

Laptop-

CPU: Intel i7-3520M   Model: Dell Latitude E6530   RAM: 8GB dual-channel DDR3-1600  GPU: Nvidia NVS 5200M   SSD: 240GB TeamGroup L5   HDD: WD Black 320GB   Monitor: Samsung SyncMaster 2693HM 26" 1920x1200   OS: Windows 10 Pro

Having issues with a Corsair AIO? Possible fix here:

Spoiler

Are you getting weird fan behavior, speed fluctuations, and/or other issues with Link?

Are you running AIDA64, HWinfo, CAM, or HWmonitor? (ASUS suite & other monitoring software often have the same issue.)

Corsair Link has problems with some monitoring software so you may have to change some settings to get them to work smoothly.

-For AIDA64: First make sure you have the newest update installed, then, go to Preferences>Stability and make sure the "Corsair Link sensor support" box is checked and make sure the "Asetek LC sensor support" box is UNchecked.

-For HWinfo: manually disable all monitoring of the AIO sensors/components.

-For others: Disable any monitoring of Corsair AIO sensors.

That should fix the fan issue for some Corsair AIOs (H80i GT/v2, H110i GTX/H115i, H100i GTX and others made by Asetek). The problem is bad coding in Link that fights for AIO control with other programs. You can test if this worked by setting the fan speed in Link to 100%, if it doesn't fluctuate you are set and can change the curve to whatever. If that doesn't work or you're still having other issues then you probably still have a monitoring software interfering with the AIO/Link communications, find what it is and disable it.

Link to comment
Share on other sites

Link to post
Share on other sites

You can assign more resources to the VM's and the host will still "see" all the ram and cores. If a VM was allocated 4 cores but is only currently utilizing 1 core, the host (or another VM) can take advantage of those unused cores. 

 

However, you want to be careful. You want to look at peak performance and resource utilization. If each VM uses all their cores and the server doesn't have enough physical resources to feed them all, you can run into huge performance issues. 

 

However, if not all VM's will be running at once, or you can guarantee that they won't use too much and overlap, then what you propose is fine. 

 

Personally, I avoid assigning too many cores. I have 16 thread in my server and I won't assign more than 16 "cores" out in total. 

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to comment
Share on other sites

Link to post
Share on other sites

Seldom will you need more than 2 cpu/cores in a vm, so unless you a hit a bottleneck I'd start with 2.

 

FreeNAS 11 uses behyve for vms, so how it shares resources is dependent on that. Normally if cpu cycles are free then the host has access to them, but the vm will get priority. Since FreeNAS will use any available RAM for cache, behyve may reserve RAM for the VMs, not really sure tbh.

 

One issue with over-allocating CPUs to a system is that at least in Windows, the O/S will try to distribute load across all available cores which will tie them up.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×