Re: Increase default number of devices created for LDOMs on sparc64

2020-05-19 Thread Kurt Mosiejczuk
On Mon, May 18, 2020 at 08:43:25PM +0200, Otto Moerbeek wrote:
> On Mon, May 18, 2020 at 06:27:04PM -, Miod Vallat wrote:

> > > Learning how LDOMs work on this T4-1 and we only create 8 devices
> > > (each /dev/ldom* and /dev/ttyV*) by default. The now-commonly-available
> > > T4-1 machines can do far more than that pretty easily, so bump up the
> > > number created by default from 8 to 16.

> > > ok?

> > MAKEDEV is a generated file. Edit the second-to-last line of MAKEDEV.md
> > to add the extra 8 nodes.

> After edit MAKEDEV.md, commit MAKEDEV.md, run make and commit the resulting
> MAKEDEV file.

Thank you. This should be the right way. 

ok?

--Kurt

Index: MAKEDEV.md
===
RCS file: /cvs/src/etc/etc.sparc64/MAKEDEV.md,v
retrieving revision 1.91
diff -u -p -r1.91 MAKEDEV.md
--- MAKEDEV.md  23 Jan 2020 02:47:29 -  1.91
+++ MAKEDEV.md  19 May 2020 23:41:32 -
@@ -177,8 +177,8 @@ target(all, drm, 0, 1, 2, 3)dnl
 target(all, switch, 0, 1, 2, 3)dnl
 twrget(all, s64_tzs, tty, a, b, c, d)dnl
 twrget(all, s64_czs, cua, a, b, c, d)dnl
-twrget(all, vcc, ttyV, 0, 1, 2, 3, 4, 5, 6, 7)dnl
+twrget(all, vcc, ttyV, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f)dnl
 twrget(all, vldc_hvctl, hvctl)dnl
 twrget(all, vldc_spds, spds)dnl
-twrget(all, vldc_ldom, ldom, 0, 1, 2, 3, 4, 5, 6, 7)dnl
+twrget(all, vldc_ldom, ldom, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 
15)dnl
 target(all, vdsp, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)dnl



Re: Increase default number of devices created for LDOMs on sparc64

2020-05-18 Thread Otto Moerbeek
On Mon, May 18, 2020 at 06:27:04PM -, Miod Vallat wrote:

> 
> > Learning how LDOMs work on this T4-1 and we only create 8 devices
> > (each /dev/ldom* and /dev/ttyV*) by default. The now-commonly-available
> > T4-1 machines can do far more than that pretty easily, so bump up the
> > number created by default from 8 to 16.
> >
> > ok?
> 
> MAKEDEV is a generated file. Edit the second-to-last line of MAKEDEV.md
> to add the extra 8 nodes.
> 

After edit MAKEDEV.md, commit MAKEDEV.md, run make and commit the resulting
MAKEDEV file.

-Otto



Re: Increase default number of devices created for LDOMs on sparc64

2020-05-18 Thread Miod Vallat


> Learning how LDOMs work on this T4-1 and we only create 8 devices
> (each /dev/ldom* and /dev/ttyV*) by default. The now-commonly-available
> T4-1 machines can do far more than that pretty easily, so bump up the
> number created by default from 8 to 16.
>
> ok?

MAKEDEV is a generated file. Edit the second-to-last line of MAKEDEV.md
to add the extra 8 nodes.



Re: Increase default number of devices created for LDOMs on sparc64

2020-05-18 Thread Klemens Nanni
On Mon, May 18, 2020 at 01:20:07PM -0400, Kurt Mosiejczuk wrote:
> Learning how LDOMs work on this T4-1 and we only create 8 devices
> (each /dev/ldom* and /dev/ttyV*) by default. The now-commonly-available
> T4-1 machines can do far more than that pretty easily, so bump up the
> number created by default from 8 to 16.
Seems reasonable, what about adopting vmd(8) CAVEATS for ldomd(8)?

Running out of devices with more guests can be nasty do debug.



Increase default number of devices created for LDOMs on sparc64

2020-05-18 Thread Kurt Mosiejczuk
Learning how LDOMs work on this T4-1 and we only create 8 devices
(each /dev/ldom* and /dev/ttyV*) by default. The now-commonly-available
T4-1 machines can do far more than that pretty easily, so bump up the
number created by default from 8 to 16.

ok?

--Kurt

Index: MAKEDEV
===
RCS file: /cvs/src/etc/etc.sparc64/MAKEDEV,v
retrieving revision 1.204
diff -u -p -r1.204 MAKEDEV
--- MAKEDEV 18 Apr 2020 21:29:57 -  1.204
+++ MAKEDEV 18 May 2020 14:33:34 -
@@ -634,19 +634,21 @@ local)
 all)
R vdsp0 vdsp1 vdsp2 vdsp3 vdsp4 vdsp5 vdsp6 vdsp7 vdsp8 vdsp9
R vdsp10 vdsp11 vdsp12 vdsp13 vdsp14 vdsp15 ldom0 ldom1 ldom2
-   R ldom3 ldom4 ldom5 ldom6 ldom7 spds hvctl ttyV0 ttyV1 ttyV2
-   R ttyV3 ttyV4 ttyV5 ttyV6 ttyV7 cuaa cuab cuac cuad ttya ttyb
-   R ttyc ttyd switch0 switch1 switch2 switch3 drm0 drm1 drm2
-   R drm3 bpp0 vnd0 vnd1 vnd2 vnd3 sd0 sd1 sd2 sd3 sd4 sd5 sd6
-   R sd7 sd8 sd9 cd0 cd1 rd0 tap0 tap1 tap2 tap3 tun0 tun1 tun2
-   R tun3 bio pty0 fd1 fd1B fd1C fd1D fd1E fd1F fd1G fd1H fd0
-   R fd0B fd0C fd0D fd0E fd0F fd0G fd0H diskmap vscsi0 ch0 audio0
-   R audio1 audio2 dt bpf fuse pppac pppx hotplug ptm local
-   R wscons pci0 pci1 pci2 pci3 uall rmidi0 rmidi1 rmidi2 rmidi3
-   R rmidi4 rmidi5 rmidi6 rmidi7 video0 video1 uk0 random lpa0
-   R lpa1 lpa2 lpt0 lpt1 lpt2 tty00 tty01 tty02 tty03 tty04 tty05
-   R tty06 tty07 tty08 tty09 tty0a tty0b ttyh0 ttyh1 pf wd0 wd1
-   R wd2 wd3 std st0 st1 fd
+   R ldom3 ldom4 ldom5 ldom6 ldom7 ldom8 ldom9 ldom10 ldom11
+   R ldom12 ldom13 ldom14 ldom15 spds hvctl ttyV0 ttyV1 ttyV2
+   R ttyV3 ttyV4 ttyV5 ttyV6 ttyV7 ttyV8 ttyV9 ttyVa ttyVb ttyVc
+   R ttyVd ttyVe ttyVf cuaa cuab cuac cuad ttya ttyb ttyc ttyd
+   R switch0 switch1 switch2 switch3 drm0 drm1 drm2 drm3 bpp0 
+   R vnd0 vnd1 vnd2 vnd3 sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9
+   R cd0 cd1 rd0 tap0 tap1 tap2 tap3 tun0 tun1 tun2 tun3 bio pty0
+   R fd1 fd1B fd1C fd1D fd1E fd1F fd1G fd1H fd0 fd0B fd0C fd0D 
+   R fd0E fd0F fd0G fd0H diskmap vscsi0 ch0 audio0 audio1 audio2
+   R dt bpf fuse pppac pppx hotplug ptm local wscons pci0 pci1
+   R pci2 pci3 uall rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 
+   R rmidi6 rmidi7 video0 video1 uk0 random lpa0 lpa1 lpa2 lpt0
+   R lpt1 lpt2 tty00 tty01 tty02 tty03 tty04 tty05 tty06 tty07
+   R tty08 tty09 tty0a tty0b ttyh0 ttyh1 pf wd0 wd1 wd2 wd3 std
+   R st0 st1 fd
;;
 
 wd*|sd*)