On Wed, Nov 04, 2020 at 10:44:52PM +0100, Mark Kettenis wrote:
> Yeah, that reads better.  On request though.  Can you pick a character
> name from:
> 
> https://www.openbsd.org/lyrics.html#38
> 
> as the name of the domain?  Beluge is the bad guy, so this probably
> should be Marlus.
Sure!

Final version with Marlus, a missing .Pp and another grammar fix.
OK?


Index: ldom.conf.5
===================================================================
RCS file: /cvs/src/usr.sbin/ldomctl/ldom.conf.5,v
retrieving revision 1.14
diff -u -p -r1.14 ldom.conf.5
--- ldom.conf.5 14 Sep 2020 19:42:16 -0000      1.14
+++ ldom.conf.5 4 Nov 2020 22:11:45 -0000
@@ -38,8 +38,11 @@ If no configuration for the primary doma
 all CPU and memory resources not used by any guest domains.
 .It Ic vcpu Ar number Ns Op : Ns Ar stride
 Declare the number of virtual CPUs assigned to a domain.
-Optionally a stride can be specified to allocate additional virtual CPUs
-but not assign them to a domain.
+Optionally a stride can be specified to allocate
+.Ar stride
+VCPUs at a time but assign only
+.Ar number
+VCPUs to the domain.
 This can be used to distribute virtual CPUs over the available CPU cores.
 .It Ic memory Ar bytes
 Declare the amount of memory assigned to a domain, in bytes.
@@ -117,6 +120,21 @@ domain "salmah" {
 .Pp
 On a machine with 32 cores and 64GB physical memory, this leaves 12 cores and
 58GB memory to the primary domain.
+.Pp
+Use a
+.Ar stride
+step size to distribute VCPUs:
+.Bd -literal -offset indent
+domain "marlus" {
+       vcpu 2:4
+       memory 4G
+       vdisk "/home/marlus/vdisk0"
+}
+.Ed
+.Pp
+On a machine with eight threads per physical core, this allocates two strides
+of four VCPUs each for the guest domain but assigns only two VCPUs to it, i.e.
+makes it occupy an entire physical core while running on two threads only.
 .Sh SEE ALSO
 .Xr eeprom 8 ,
 .Xr ldomctl 8 ,

Reply via email to