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.

In GB, to at most two decimal places, from your card's official specification. 16 is only an example.

In GB, to at most two decimal places. Anything you want to leave for the host. Enter 0 if you do not know.

A whole number from 1 to 64. Your card's own limit may be lower. 4 is only an example.

Turn on JavaScript to use the share tool. The formulas below work by hand too.

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

For setup steps and card limits, see the guides.