Virtual function share tool
SR-IOV lets a supported GPU expose several virtual functions (VFs), which can be assigned to virtual machines. Enter your card's memory and how many VFs you plan, and see what each one would get. Every result here is an estimate for planning.
Your split
The starting numbers, 16 GB and four VFs, are a hypothetical example, not a real card.
Turn on JavaScript to use the share tool. The formulas below work by hand too.
- Available to share
- –
- Even share per VF
- –
- Assigned so far
- –
How the numbers are worked out
The tool only does arithmetic on the figures you type in. It holds no product data.
available = total memory − memory kept back
even share per VF = available ÷ number of VFs, in whole 0.01 GB steps
share percent = VF share ÷ available × 100
left to assign = available − sum of all VF shares
Assumptions
- Enter every memory figure in GB. The tool does no unit conversion: if a specification gives another unit, convert it yourself before typing it in.
- Memory figures are held to 0.01 GB (two decimal places). Anything finer is rejected, not rounded.
- The even split gives every VF the same amount and keeps back only what you enter. When the available memory does not divide evenly in 0.01 GB steps, the first VFs get one extra 0.01 GB each, so the shares add up exactly.
- Percentages are rounded to two decimal places for display. The fields, readouts, strip and fan all use the same 0.01 GB values.
- An estimate, not a driver setting. A GPU driver may only offer certain VF counts or fixed memory sizes per VF, and may keep memory back for itself. This tool does not know those rules, so check your GPU's documentation.
Background reading
- PCI Express I/O Virtualization Howto, The Linux Kernel documentation
- Virtualization with SR-IOV, Intel Xe GPU Software documentation
For setup steps and card limits, see the guides.