Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Kleeneness is next to Godelness.


computers / comp.os.vms / Re: clock problems with OpenVMS x86 on VirtualBox

SubjectAuthor
* clock problems with OpenVMS x86 on VirtualBoxCraig A. Berry
+- Re: clock problems with OpenVMS x86 on VirtualBoxDavid Jones
+* Re: clock problems with OpenVMS x86 on VirtualBoxDavid Turner
|+* Re: clock problems with OpenVMS x86 on VirtualBoxRobert A. Brooks
||`* Re: clock problems with OpenVMS x86 on VirtualBoxterry-...@glaver.org
|| +- Re: clock problems with OpenVMS x86 on VirtualBoxGary Sparkes
|| `* Re: clock problems with OpenVMS x86 on VirtualBoxbill
||  +* Re: clock problems with OpenVMS x86 on VirtualBoxDave Froble
||  |`* Re: clock problems with OpenVMS x86 on VirtualBoxbill
||  | +* Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
||  | |`- Re: clock problems with OpenVMS x86 on VirtualBoxabrsvc
||  | `* Re: clock problems with OpenVMS x86 on VirtualBoxJohn Dallman
||  |  `- Re: clock problems with OpenVMS x86 on VirtualBoxBob Gezelter
||  `* Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
||   `* Re: clock problems with OpenVMS x86 on VirtualBoxbill
||    `* Re: clock problems with OpenVMS x86 on VirtualBoxterry-...@glaver.org
||     `* Re: clock problems with OpenVMS x86 on VirtualBoxRobert A. Brooks
||      +* Re: clock problems with OpenVMS x86 on VirtualBoxterry-...@glaver.org
||      |`* Re: clock problems with OpenVMS x86 on VirtualBoxDave Froble
||      | `- Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
||      `* Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
||       `* Re: clock problems with OpenVMS x86 on VirtualBoxDave Froble
||        +* Re: clock problems with OpenVMS x86 on VirtualBoxbill
||        |`* Re: clock problems with OpenVMS x86 on VirtualBoxChris Townley
||        | `- Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
||        `* Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
||         `* Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
||          +* Re: clock problems with OpenVMS x86 on VirtualBoxDave Froble
||          |`* Re: clock problems with OpenVMS x86 on VirtualBoxbill
||          | `- Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
||          `* Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
||           +- Re: clock problems with OpenVMS x86 on VirtualBoxabrsvc
||           `* Re: clock problems with OpenVMS x86 on VirtualBoxBob Wilson
||            `* Re: clock problems with OpenVMS x86 on VirtualBoxDavid Jones
||             `* Re: clock problems with OpenVMS x86 on VirtualBoxbill
||              `- Re: clock problems with OpenVMS x86 on VirtualBoxSingle Stage to Orbit
|+* Re: clock problems with OpenVMS x86 on VirtualBoxJan-Erik Söderholm
||`* Re: clock problems with OpenVMS x86 on VirtualBoxCraig A. Berry
|| `* Re: clock problems with OpenVMS x86 on VirtualBoxJan-Erik Söderholm
||  `* Re: clock problems with OpenVMS x86 on VirtualBoxCraig A. Berry
||   `- Re: clock problems with OpenVMS x86 on VirtualBoxJan-Erik Söderholm
|`- Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
+* Re: clock problems with OpenVMS x86 on VirtualBoxgah4
|+* Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
||`* Re: clock problems with OpenVMS x86 on VirtualBoxgah4
|| `* Re: clock problems with OpenVMS x86 on VirtualBoxDave Froble
||  `- Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
|+* Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
||+* Re: clock problems with OpenVMS x86 on VirtualBoxgah4
|||`* Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
||| +* Re: clock problems with OpenVMS x86 on VirtualBoxgah4
||| |`* Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
||| | `* Re: clock problems with OpenVMS x86 on VirtualBoxterry-...@glaver.org
||| |  `* Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
||| |   `- Re: clock problems with OpenVMS x86 on VirtualBoxJan-Erik Söderholm
||| `* Re: clock problems with OpenVMS x86 on VirtualBoxgah4
|||  `* Re: clock problems with OpenVMS x86 on VirtualBoxDan Cross
|||   `* Re: clock problems with OpenVMS x86 on VirtualBoxgah4
|||    +* Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
|||    |`- Re: clock problems with OpenVMS x86 on VirtualBoxgah4
|||    `* Re: clock problems with OpenVMS x86 on VirtualBoxDan Cross
|||     `* Re: clock problems with OpenVMS x86 on VirtualBoxgah4
|||      +* Re: clock problems with OpenVMS x86 on VirtualBoxterry-...@glaver.org
|||      |`- Re: clock problems with OpenVMS x86 on VirtualBoxgah4
|||      `- Re: clock problems with OpenVMS x86 on VirtualBoxDan Cross
||`* Re: clock problems with OpenVMS x86 on VirtualBoxGary Sparkes
|| `- Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
|`* Re: clock problems with OpenVMS x86 on VirtualBoxSimon Clubley
| `- Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
`* Re: clock problems with OpenVMS x86 on VirtualBoxgah4
 `* Re: clock problems with OpenVMS x86 on VirtualBoxJan-Erik Söderholm
  +- Re: clock problems with OpenVMS x86 on VirtualBoxJan-Erik Söderholm
  +- Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
  `* Re: clock problems with OpenVMS x86 on VirtualBoxSimon Clubley
   +* Re: clock problems with OpenVMS x86 on VirtualBoxDave Froble
   |`* Re: clock problems with OpenVMS x86 on VirtualBoxSimon Clubley
   | +* Re: clock problems with OpenVMS x86 on VirtualBoxClair Grant
   | |+- Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
   | |`* Re: clock problems with OpenVMS x86 on VirtualBoxCraig A. Berry
   | | +- Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
   | | +* Re: clock problems with OpenVMS x86 on VirtualBoxJan-Erik Söderholm
   | | |+- Re: clock problems with OpenVMS x86 on VirtualBoxSimon Clubley
   | | |+- Re: clock problems with OpenVMS x86 on VirtualBoxCraig A. Berry
   | | |`- Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
   | | `- Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
   | `* Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
   |  +* Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
   |  |+* Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
   |  ||`* Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
   |  || `* Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
   |  ||  `* Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
   |  ||   +- Re: clock problems with OpenVMS x86 on VirtualBoxDan Cross
   |  ||   `* Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
   |  ||    `* Re: clock problems with OpenVMS x86 on VirtualBoxDan Cross
   |  ||     `* Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
   |  ||      +- Re: clock problems with OpenVMS x86 on VirtualBoxArne Vajhøj
   |  ||      +* Re: clock problems with OpenVMS x86 on VirtualBoxgah4
   |  ||      |`- Re: clock problems with OpenVMS x86 on VirtualBoxDan Cross
   |  ||      `- Re: clock problems with OpenVMS x86 on VirtualBoxDan Cross
   |  |`* Re: clock problems with OpenVMS x86 on VirtualBoxDan Cross
   |  | +- Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist
   |  | `* Re: clock problems with OpenVMS x86 on VirtualBoxgah4
   |  `* Re: clock problems with OpenVMS x86 on VirtualBoxSimon Clubley
   +* Re: clock problems with OpenVMS x86 on VirtualBoxbill
   `- Re: clock problems with OpenVMS x86 on VirtualBoxJohnny Billquist

Pages:123456
Re: clock problems with OpenVMS x86 on VirtualBox

<u3t5h0$31p8i$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28120&group=comp.os.vms#28120

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 06:37:04 -0500
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <u3t5h0$31p8i$1@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<2ab6eacd-259c-4b41-88bb-56f0a8e42f42n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 15 May 2023 11:37:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e07d9003db6f17238bc0abe7dabc20b6";
logging-data="3204370"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19u8L44nRuns9Qgw1QjkC3zApuO5Vazzvk="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.11.0
Cancel-Lock: sha1:CJqRmQw4SU+jW1L/7zDMA0RC0us=
In-Reply-To: <2ab6eacd-259c-4b41-88bb-56f0a8e42f42n@googlegroups.com>
Content-Language: en-US
 by: Craig A. Berry - Mon, 15 May 2023 11:37 UTC

On 5/12/23 3:25 PM, Clair Grant wrote:
> Virtual Box 7.0.6, Lenovo ThinkBook, Windows 11
>
> I put SHOW TIME in a 10 minute loop and ran it 7 hours. Every output
> showed exactly 10 minutes and 0 seconds from the previous. I did the
> same thing on
>
> ESXi 8.0, DL580
>
> and got the same result. If we have a problem, it is certainly not
> universal.
>
> Clair

Thanks for the reply and for running your own test. The problem is
indeed not universal. I'm beginning to think in my case there is some
disagreement between VirtualBox and macOS, and/or something specific to
the particular laptop hardware of the host.

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t738$31u5r$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28121&group=comp.os.vms#28121

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 08:03:51 -0400
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <u3t738$31u5r$1@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<u3mkt8$1rlf8$1@dont-email.me> <u3t0se$5jt$6@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 12:03:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="700ce4e46f24686e7ffef1f3b56eda81";
logging-data="3209403"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19f3tVegvSDgJM1DgRQKkPttu3b+amcd+4="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:Z2qEQTcTPkO6tsfYjW7seFg7QU8=
In-Reply-To: <u3t0se$5jt$6@news.misty.com>
Content-Language: en-US
 by: Arne Vajhøj - Mon, 15 May 2023 12:03 UTC

On 5/15/2023 6:17 AM, Johnny Billquist wrote:
> On 2023-05-13 02:16, Arne Vajhøj wrote:
>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>>> On 2023-05-12, Dave Froble <davef@tsoft-inc.com> wrote:
>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>>> That's going to make for some "interesting" real-time program
>>>>> behaviour... :-)
>>>>
>>>> Do you think any serious real time programmer will run a real time
>>>> task inside a
>>>> VM?  I'm not a real time programmer, and I'd still not do that.
>>>
>>> As well as traditional real-time stuff (which I agree with you about
>>> BTW),
>>
>> I would not want to do it on a type 2 hypervisor - there must be
>> cases where what is happening on the host OS impact the performance
>> of the guest OS.
>>
>> But with a type 1 hypervisor and no over allocation of resources -
>> would it be worse than running on bare metal?
>
> For sure. You have no guarantee that you will get the CPU cycles when
> you need them. No matter what kind of hypervisor we're talking about,
> there is overhead in the host that can affect things way more than what
> might happen on bare metal.

What host? A type 1 hypervisor does not run a host OS.

And why would the CPU not be available, when there is no
over allocation of resources? It seems pretty silly of
the hypervisor to not want to give the CPU if no other
VM can get it.

Arne

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t7le$31u5r$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28122&group=comp.os.vms#28122

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 08:13:33 -0400
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <u3t7le$31u5r$2@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<2ab6eacd-259c-4b41-88bb-56f0a8e42f42n@googlegroups.com>
<u3t5h0$31p8i$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 12:13:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="700ce4e46f24686e7ffef1f3b56eda81";
logging-data="3209403"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hH3JiPOXQ+7wWhh0A/dIQPGNDqmRK7yU="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:mxhvedctRom+1jrxYn6YJawnFgM=
Content-Language: en-US
In-Reply-To: <u3t5h0$31p8i$1@dont-email.me>
 by: Arne Vajhøj - Mon, 15 May 2023 12:13 UTC

On 5/15/2023 7:37 AM, Craig A. Berry wrote:
> On 5/12/23 3:25 PM, Clair Grant wrote:
>> Virtual Box 7.0.6, Lenovo ThinkBook, Windows 11
>>
>> I put SHOW TIME in a 10 minute loop and ran it 7 hours. Every output
>> showed exactly 10 minutes and 0 seconds from the previous. I did the
>> same thing on
>>
>> ESXi 8.0, DL580
>>
>> and got the same result. If we have a problem, it is certainly not
>> universal.
>
> Thanks for the reply and for running your own test.  The problem is
> indeed not universal.  I'm beginning to think in my case there is some
> disagreement between VirtualBox and macOS, and/or something specific to
> the particular laptop hardware of the host.

From the high level perspective then I think we need to realize that:

number of virtualization platforms (software and version) x number of OS
platforms (software and version - discard if type 1 hypervisor) x number
of HW platforms (CPU + MB + more combos) > number VMS x86-64 users

Impossible to test everything.

And in some cases there will be glitches.

Bug in VMS x86-64 or bug in virtualization software or bug in host OS
(if present) or bug in HW.

So far I believe the indication is that VMS x86-64 quality is
pretty good.

Let us call it VMS quality! :-) :-) :-)

Arne

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t7os$ov8$1@reader2.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28123&group=comp.os.vms#28123

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cro...@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 12:15:24 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <u3t7os$ov8$1@reader2.panix.com>
References: <u360f3$2u60a$1@dont-email.me> <2af50234-632d-4bf7-a569-dbab6b36f48an@googlegroups.com> <u3t06k$5jt$1@news.misty.com> <8b6c6dbd-5dc4-41aa-982e-7c25c5ebb29an@googlegroups.com>
Injection-Date: Mon, 15 May 2023 12:15:24 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="25576"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)
 by: Dan Cross - Mon, 15 May 2023 12:15 UTC

In article <8b6c6dbd-5dc4-41aa-982e-7c25c5ebb29an@googlegroups.com>,
gah4 <gah4@u.washington.edu> wrote:
>[snip]
>In the case of virtual machines, each one will have its own CPU timer,
>but only one TOD clock. STCK is not a privileged instruction, so programs
>(or OS) see the host clock.

This would seem to violate Popek and Goldberg's virtualization
criteria; how is that squared?

- Dan C.

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t7p7$320fj$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28124&group=comp.os.vms#28124

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 12:15:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <u3t7p7$320fj$1@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me> <0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com> <u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me> <kc6qfhFd1mhU1@mid.individual.net> <u3ml13$1rlf8$2@dont-email.me> <u3neb8$21n4r$1@dont-email.me> <u3nr2b$231rg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 12:15:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bdaa60a5cce4739bda40e37893ce201c";
logging-data="3211763"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199/HsLmFdimGk9v+UOX4b7W6xqjngN7L8="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:fmIMz1a4Wg+jYChokl0jOlpekiY=
 by: Simon Clubley - Mon, 15 May 2023 12:15 UTC

On 2023-05-13, Arne Vajhøj <arne@vajhoej.dk> wrote:
>
> VAX got real time priorities 16-31.
>
> Alpha got real time priorities 16-63.
>
> I assume Itanium and x86-64 has 16-63 as well.
>
> But I believe there is more to real time than
> having those (no quantum end and no dynamic
> adjustment).
>

Real-time at its core is about meeting timing deadlines.

If you miss the odd timing deadline and can still function (maybe in
a degraded way), it's called soft real-time.

If you miss a timing deadline and hence go BOOM!!! (or even fully fail
in a less dramatic way :-)), it's called hard real-time.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t7sn$321go$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28125&group=comp.os.vms#28125

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 14:17:27 +0200
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <u3t7sn$321go$1@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<2ab6eacd-259c-4b41-88bb-56f0a8e42f42n@googlegroups.com>
<u3t5h0$31p8i$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 15 May 2023 12:17:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a0cac9938666e69da1d0cb25b3b04aa4";
logging-data="3212824"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187xsVSck20iEzAXfGyRSKC"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Cancel-Lock: sha1:s35v55DTRHOfjFlGybvcGdQiqec=
In-Reply-To: <u3t5h0$31p8i$1@dont-email.me>
Content-Language: sv
 by: Jan-Erik Söderholm - Mon, 15 May 2023 12:17 UTC

>
> On 5/12/23 3:25 PM, Clair Grant wrote:
>> Virtual Box 7.0.6, Lenovo ThinkBook, Windows 11
>>
>> I put SHOW TIME in a 10 minute loop and ran it 7 hours. Every
>> output showed exactly 10 minutes and 0 seconds from the previous.

I'm not sure I fully understand how that test was done.

If you ask VMS to wait for 10 min and then ask VMS for the time
passed, I would expect VMS to say that "10 min has passed", no
matter how long those 10 min was in reallity.

Of course VMS in it self belives that 10 min has passed,
it doesn't know better, so to speak.

Or, fully possible of course, I'm just missing something here... :-)

Jan-Erik.

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t81u$320fj$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28126&group=comp.os.vms#28126

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 12:20:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <u3t81u$320fj$2@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me> <0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com> <u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me> <u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me> <u3mkt8$1rlf8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 12:20:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bdaa60a5cce4739bda40e37893ce201c";
logging-data="3211763"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++02NS3+sJbEEpRny9ybEp2Gm/qhwdSNk="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:0/Mvj4GJiI4d/yIj2k42qrpFI3c=
 by: Simon Clubley - Mon, 15 May 2023 12:20 UTC

On 2023-05-12, Arne Vajhøj <arne@vajhoej.dk> wrote:
> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>> On 2023-05-12, Dave Froble <davef@tsoft-inc.com> wrote:
>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>> That's going to make for some "interesting" real-time program behaviour... :-)
>>>
>>> Do you think any serious real time programmer will run a real time task inside a
>>> VM? I'm not a real time programmer, and I'd still not do that.
>>
>> As well as traditional real-time stuff (which I agree with you about BTW),
>
> I would not want to do it on a type 2 hypervisor - there must be
> cases where what is happening on the host OS impact the performance
> of the guest OS.
>
> But with a type 1 hypervisor and no over allocation of resources -
> would it be worse than running on bare metal?
>

A type 1 hypervisor is still a software layer between the hardware and
the RTOS. It would have to _guarantee_ that it would _never_ get in the
way of the timing guarantees that a program running under a RTOS needs.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t8o2$325qe$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28127&group=comp.os.vms#28127

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 12:32:03 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <u3t8o2$325qe$1@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me> <0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com> <u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me> <u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me> <2ab6eacd-259c-4b41-88bb-56f0a8e42f42n@googlegroups.com> <u3t5h0$31p8i$1@dont-email.me> <u3t7sn$321go$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 12:32:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bdaa60a5cce4739bda40e37893ce201c";
logging-data="3217230"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bMed49JVGAg5dA505oH2Rrn/sNPEJcwI="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:UKGviQ1OOM2mSzyKjhg5mYU6K2c=
 by: Simon Clubley - Mon, 15 May 2023 12:32 UTC

On 2023-05-15, Jan-Erik Söderholm <jan-erik.soderholm@telia.com> wrote:
>>
>> On 5/12/23 3:25 PM, Clair Grant wrote:
>>> Virtual Box 7.0.6, Lenovo ThinkBook, Windows 11
>>>
>>> I put SHOW TIME in a 10 minute loop and ran it 7 hours. Every
>>> output showed exactly 10 minutes and 0 seconds from the previous.
>
> I'm not sure I fully understand how that test was done.
>
> If you ask VMS to wait for 10 min and then ask VMS for the time
> passed, I would expect VMS to say that "10 min has passed", no
> matter how long those 10 min was in reallity.
>

I agree. I don't think it's a real test unless both VMS and the host OS
are both doing other things while also running this timing loop and there
is a way to compare the reported VMS time with the underlying host OS time.

> Of course VMS in it self belives that 10 min has passed,
> it doesn't know better, so to speak.
>
> Or, fully possible of course, I'm just missing something here... :-)
>

I don't think you are. I think for the test to be valid, it needs to be
done on a loaded system and a way of comparing the VMS reported time to
the actual host time needs to be devised.

Given the reported problems, I also think the test needs to have an
test interval that's way under 10 minutes.

It needs some kind of script, running on the host OS, that is connected to
VMS and runs a $ SHOW TIME every couple of minutes for several hours.

It needs to write both the output from $ SHOW TIME and the current host
time to a log file, along with the delta difference value between the two.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t8vs$326mp$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28128&group=comp.os.vms#28128

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 08:36:10 -0400
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <u3t8vs$326mp$1@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<u3mkt8$1rlf8$1@dont-email.me> <u3t81u$320fj$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 12:36:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="700ce4e46f24686e7ffef1f3b56eda81";
logging-data="3218137"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SzPD48nRrgBWhP6Slo7LRMWeWeO+MV+w="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:MgzsF+TDf7By+3Vl8VGWhLvkZHs=
In-Reply-To: <u3t81u$320fj$2@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Mon, 15 May 2023 12:36 UTC

On 5/15/2023 8:20 AM, Simon Clubley wrote:
> On 2023-05-12, Arne Vajhøj <arne@vajhoej.dk> wrote:
>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>>> On 2023-05-12, Dave Froble <davef@tsoft-inc.com> wrote:
>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>>> That's going to make for some "interesting" real-time program behaviour... :-)
>>>>
>>>> Do you think any serious real time programmer will run a real time task inside a
>>>> VM? I'm not a real time programmer, and I'd still not do that.
>>>
>>> As well as traditional real-time stuff (which I agree with you about BTW),
>>
>> I would not want to do it on a type 2 hypervisor - there must be
>> cases where what is happening on the host OS impact the performance
>> of the guest OS.
>>
>> But with a type 1 hypervisor and no over allocation of resources -
>> would it be worse than running on bare metal?
>
> A type 1 hypervisor is still a software layer between the hardware and
> the RTOS. It would have to _guarantee_ that it would _never_ get in the
> way of the timing guarantees that a program running under a RTOS needs.

It is software that is active between the VMS and the HW.

But it is not obvious to me where any delay would come from.

If we talk type 2 then it is easy to understand. You have a host
OS running 200 processes - 1 VM and 199 other stuff, and 4 CPU
so those 200 processes get scheduled on those 4 CPU's, and certain
interrupts may happen in the host OS. That VM will have
a problem providing real time capabilities.

But in the type 1 with no over allocation of resources then
what will cause any delays? The VM got its own CPU or CPU's
that no other VM want, so I would expect the hypervisor to
keep them permanently allocated to the VM. And I don't
see the need for any interrupts in the hypervisor either.

Arne

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t9d8$h0c$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28129&group=comp.os.vms#28129

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.10.184.180.213.static.wline.lns.sme.cust.swisscom.ch!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 14:43:20 +0200
Organization: MGT Consulting
Message-ID: <u3t9d8$h0c$1@news.misty.com>
References: <u360f3$2u60a$1@dont-email.me>
<5751da2a-4b87-4f86-9d7b-815606a626ean@googlegroups.com>
<u3l2fq$g0q$1@news.misty.com>
<2af50234-632d-4bf7-a569-dbab6b36f48an@googlegroups.com>
<u3t06k$5jt$1@news.misty.com>
<f2a6d688-b41e-4f4b-96f2-f97c66d3cf41n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 12:43:20 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="10.184.180.213.static.wline.lns.sme.cust.swisscom.ch:213.180.184.10";
logging-data="17420"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.11.0
In-Reply-To: <f2a6d688-b41e-4f4b-96f2-f97c66d3cf41n@googlegroups.com>
 by: Johnny Billquist - Mon, 15 May 2023 12:43 UTC

On 2023-05-15 12:59, gah4 wrote:
> On Monday, May 15, 2023 at 3:06:16 AM UTC-7, Johnny Billquist wrote:
>
> (snip, I wrote)
>
>>> IBM S/360 uses the same system for both, as you describe.
>
>> So does VMS, all Unixes that I've ever encountered, all PDP-11 OSes I've
>> ever encountered, all RTOSes I've ever encountered, and everything else
>> I've ever encountered...
>
> The S/360 interval timer is a 32 bit word in memory that decrement such that
> bit 23 (counting from the left) seems to decrement at 300Hz. That allows for
> an actual 50Hz or 60Hz timer, subtracting 6 or 5. An interrupt is generated
> when it goes below zero.

PDP-11 clock interrupts are usually also at 50Hz or 60Hz depending on
what frequence is used on main lines power. Not an unusual frequency for
computers to use to count time.

It used to be a *very* reliable clock source. Power grids used to
compensate for drift because of load, so that over 24 hours, you have a
very exact number of peaks on the power. All type of clocks were
designed with this clock source. Sadly, I think power grids no longer
are caring as much about the accuracy of the frequency.

VAX didn't, but instead have a 100 Hz clock source for interrupts, which
was less accurate than the power based one.

> One way to look at it is a microcode interrupt. It only decrements between
> instructions. It does not need to generate a real interrupt at that rate.

I don't know the S/360 at all, but I would expect that it also uses the
50/60Hz as a clock source with interrupts generated at that frequency...

Johnny

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t9ef$326hu$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28130&group=comp.os.vms#28130

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 07:43:59 -0500
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <u3t9ef$326hu$1@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<2ab6eacd-259c-4b41-88bb-56f0a8e42f42n@googlegroups.com>
<u3t5h0$31p8i$1@dont-email.me> <u3t7sn$321go$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 12:43:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e07d9003db6f17238bc0abe7dabc20b6";
logging-data="3217982"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19QhT4/OLBkQTVl6tH3E1AoBeN3pI/tJms="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.11.0
Cancel-Lock: sha1:uCtP+ZfSoEc3aGEudFfaGnyjJyM=
In-Reply-To: <u3t7sn$321go$1@dont-email.me>
Content-Language: en-US
 by: Craig A. Berry - Mon, 15 May 2023 12:43 UTC

On 5/15/23 7:17 AM, Jan-Erik Söderholm wrote:
>>
>> On 5/12/23 3:25 PM, Clair Grant wrote:
>>> Virtual Box 7.0.6, Lenovo ThinkBook, Windows 11
>>>
>>> I put SHOW TIME in a 10 minute loop and ran it 7 hours. Every
>>> output showed exactly 10 minutes and 0 seconds from the previous.
>
> I'm not sure I fully understand how that test was done.
>
> If you ask VMS to wait for 10 min and then ask VMS for the time
> passed, I would expect VMS to say that "10 min has passed", no
> matter how long those 10 min was in reallity.
>
> Of course VMS in it self belives that 10 min has passed,
> it doesn't know better, so to speak.
>
> Or, fully possible of course, I'm just missing something here... :-)

I was assuming that the total time of 7 hours was independently
corroborated, but you're right, he didn't explicitly say that.

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t9k3$h0c$2@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28131&group=comp.os.vms#28131

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.10.184.180.213.static.wline.lns.sme.cust.swisscom.ch!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 14:46:59 +0200
Organization: MGT Consulting
Message-ID: <u3t9k3$h0c$2@news.misty.com>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<2ab6eacd-259c-4b41-88bb-56f0a8e42f42n@googlegroups.com>
<u3t5h0$31p8i$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 12:46:59 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="10.184.180.213.static.wline.lns.sme.cust.swisscom.ch:213.180.184.10";
logging-data="17420"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.11.0
In-Reply-To: <u3t5h0$31p8i$1@dont-email.me>
 by: Johnny Billquist - Mon, 15 May 2023 12:46 UTC

On 2023-05-15 13:37, Craig A. Berry wrote:
>
> On 5/12/23 3:25 PM, Clair Grant wrote:
>> Virtual Box 7.0.6, Lenovo ThinkBook, Windows 11
>>
>> I put SHOW TIME in a 10 minute loop and ran it 7 hours. Every output
>> showed exactly 10 minutes and 0 seconds from the previous. I did the
>> same thing on
>>
>> ESXi 8.0, DL580
>>
>> and got the same result. If we have a problem, it is certainly not
>> universal.
>>
>> Clair
>
>
> Thanks for the reply and for running your own test.  The problem is
> indeed not universal.  I'm beginning to think in my case there is some
> disagreement between VirtualBox and macOS, and/or something specific to
> the particular laptop hardware of the host.

In your case, I would agree. The amount of errors you mentioned is big.
Definitely sounds like some disagreement between the components about
the clock handling.

Johnny

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t9o1$h0c$3@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28132&group=comp.os.vms#28132

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.10.184.180.213.static.wline.lns.sme.cust.swisscom.ch!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 14:49:05 +0200
Organization: MGT Consulting
Message-ID: <u3t9o1$h0c$3@news.misty.com>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<2ab6eacd-259c-4b41-88bb-56f0a8e42f42n@googlegroups.com>
<u3t5h0$31p8i$1@dont-email.me> <u3t7sn$321go$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 12:49:05 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="10.184.180.213.static.wline.lns.sme.cust.swisscom.ch:213.180.184.10";
logging-data="17420"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.11.0
In-Reply-To: <u3t7sn$321go$1@dont-email.me>
 by: Johnny Billquist - Mon, 15 May 2023 12:49 UTC

On 2023-05-15 14:17, Jan-Erik Söderholm wrote:
>>
>> On 5/12/23 3:25 PM, Clair Grant wrote:
>>> Virtual Box 7.0.6, Lenovo ThinkBook, Windows 11
>>>
>>> I put SHOW TIME in a 10 minute loop and ran it 7 hours. Every
>>> output showed exactly 10 minutes and 0 seconds from the previous.
>
> I'm not sure I fully understand how that test was done.
>
> If you ask VMS to wait for 10 min and then ask VMS for the time
> passed, I would expect VMS to say that "10 min has passed", no
> matter how long those 10 min was in reallity.
>
> Of course VMS in it self belives that 10 min has passed,
> it doesn't know better, so to speak.
>
> Or, fully possible of course, I'm just missing something here... :-)

Ha! A very good point. The test don't actually prove anything. You are
right. :-)

But if you were to compare to an external clock, I would suspect you
would not see big deviations either, but I would expect there to be
small glitches in the short timescale and if you look with enough
resolution.

Johnny

Re: clock problems with OpenVMS x86 on VirtualBox

<u3t9s7$h0c$4@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28133&group=comp.os.vms#28133

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.10.184.180.213.static.wline.lns.sme.cust.swisscom.ch!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 14:51:19 +0200
Organization: MGT Consulting
Message-ID: <u3t9s7$h0c$4@news.misty.com>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<u3mkt8$1rlf8$1@dont-email.me> <u3t0se$5jt$6@news.misty.com>
<u3t738$31u5r$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 12:51:19 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="10.184.180.213.static.wline.lns.sme.cust.swisscom.ch:213.180.184.10";
logging-data="17420"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.11.0
In-Reply-To: <u3t738$31u5r$1@dont-email.me>
 by: Johnny Billquist - Mon, 15 May 2023 12:51 UTC

On 2023-05-15 14:03, Arne Vajhøj wrote:
> On 5/15/2023 6:17 AM, Johnny Billquist wrote:
>> On 2023-05-13 02:16, Arne Vajhøj wrote:
>>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>>>> On 2023-05-12, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>>>> That's going to make for some "interesting" real-time program
>>>>>> behaviour... :-)
>>>>>
>>>>> Do you think any serious real time programmer will run a real time
>>>>> task inside a
>>>>> VM?  I'm not a real time programmer, and I'd still not do that.
>>>>
>>>> As well as traditional real-time stuff (which I agree with you about
>>>> BTW),
>>>
>>> I would not want to do it on a type 2 hypervisor - there must be
>>> cases where what is happening on the host OS impact the performance
>>> of the guest OS.
>>>
>>> But with a type 1 hypervisor and no over allocation of resources -
>>> would it be worse than running on bare metal?
>>
>> For sure. You have no guarantee that you will get the CPU cycles when
>> you need them. No matter what kind of hypervisor we're talking about,
>> there is overhead in the host that can affect things way more than
>> what might happen on bare metal.
>
> What host? A type 1 hypervisor does not run a host OS.

Um? What is the hypervisor then?

> And why would the CPU not be available, when there is no
> over allocation of resources? It seems pretty silly of
> the hypervisor to not want to give the CPU if no other
> VM can get it.

Any kind of hypervisor means we're talking about virtualization. That
means you have real hardware which exists outside of this
virtualization. And that hardware can generate interrupts and demand
service, which then forces the hypervisor to wait before it can actually
get any cycles. Outside the control of the hypervisor...

Johnny

Re: clock problems with OpenVMS x86 on VirtualBox

<u3ta02$h0c$5@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28134&group=comp.os.vms#28134

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.10.184.180.213.static.wline.lns.sme.cust.swisscom.ch!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 14:53:22 +0200
Organization: MGT Consulting
Message-ID: <u3ta02$h0c$5@news.misty.com>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<u3mkt8$1rlf8$1@dont-email.me> <u3t81u$320fj$2@dont-email.me>
<u3t8vs$326mp$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 12:53:22 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="10.184.180.213.static.wline.lns.sme.cust.swisscom.ch:213.180.184.10";
logging-data="17420"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.11.0
In-Reply-To: <u3t8vs$326mp$1@dont-email.me>
 by: Johnny Billquist - Mon, 15 May 2023 12:53 UTC

On 2023-05-15 14:36, Arne Vajhøj wrote:
> On 5/15/2023 8:20 AM, Simon Clubley wrote:
>> On 2023-05-12, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>>>> On 2023-05-12, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>>>> That's going to make for some "interesting" real-time program
>>>>>> behaviour... :-)
>>>>>
>>>>> Do you think any serious real time programmer will run a real time
>>>>> task inside a
>>>>> VM?  I'm not a real time programmer, and I'd still not do that.
>>>>
>>>> As well as traditional real-time stuff (which I agree with you about
>>>> BTW),
>>>
>>> I would not want to do it on a type 2 hypervisor - there must be
>>> cases where what is happening on the host OS impact the performance
>>> of the guest OS.
>>>
>>> But with a type 1 hypervisor and no over allocation of resources -
>>> would it be worse than running on bare metal?
>>
>> A type 1 hypervisor is still a software layer between the hardware and
>> the RTOS. It would have to _guarantee_ that it would _never_ get in the
>> way of the timing guarantees that a program running under a RTOS needs.
>
> It is software that is active between the VMS and the HW.
>
> But it is not obvious to me where any delay would come from.
>
> If we talk type 2 then it is easy to understand. You have a host
> OS running 200 processes - 1 VM and 199 other stuff, and 4 CPU
> so those 200 processes get scheduled on those 4 CPU's, and certain
> interrupts may happen in the host OS. That VM will have
> a problem providing real time capabilities.
>
> But in the type 1 with no over allocation of resources then
> what will cause any delays? The VM got its own CPU or CPU's
> that no other VM want, so I would expect the hypervisor to
> keep them permanently allocated to the VM. And I don't
> see the need for any interrupts in the hypervisor either.

Can you guarantee that no interrupts happens on the CPUs the hypervisor
is using? I would suspect "no", which means you do not have full control.

It's kindof weird to me that people can even believe that it would be
possible to add a software layer in between that have no actual impact.

Johnny

Re: clock problems with OpenVMS x86 on VirtualBox

<u3tceq$32fc5$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28135&group=comp.os.vms#28135

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 09:35:21 -0400
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <u3tceq$32fc5$1@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<u3mkt8$1rlf8$1@dont-email.me> <u3t0se$5jt$6@news.misty.com>
<u3t738$31u5r$1@dont-email.me> <u3t9s7$h0c$4@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 13:35:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="700ce4e46f24686e7ffef1f3b56eda81";
logging-data="3227013"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BoVXoiXutKnXWeuHeOgSwC/zLNT9p4mA="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:SJTbBjLiwCqznjFt4fHHjX/MmFE=
Content-Language: en-US
In-Reply-To: <u3t9s7$h0c$4@news.misty.com>
 by: Arne Vajhøj - Mon, 15 May 2023 13:35 UTC

On 5/15/2023 8:51 AM, Johnny Billquist wrote:
> On 2023-05-15 14:03, Arne Vajhøj wrote:
>> On 5/15/2023 6:17 AM, Johnny Billquist wrote:
>>> On 2023-05-13 02:16, Arne Vajhøj wrote:
>>>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>>>>> On 2023-05-12, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>>>>> That's going to make for some "interesting" real-time program
>>>>>>> behaviour... :-)
>>>>>>
>>>>>> Do you think any serious real time programmer will run a real time
>>>>>> task inside a
>>>>>> VM?  I'm not a real time programmer, and I'd still not do that.
>>>>>
>>>>> As well as traditional real-time stuff (which I agree with you
>>>>> about BTW),
>>>>
>>>> I would not want to do it on a type 2 hypervisor - there must be
>>>> cases where what is happening on the host OS impact the performance
>>>> of the guest OS.
>>>>
>>>> But with a type 1 hypervisor and no over allocation of resources -
>>>> would it be worse than running on bare metal?
>>>
>>> For sure. You have no guarantee that you will get the CPU cycles when
>>> you need them. No matter what kind of hypervisor we're talking about,
>>> there is overhead in the host that can affect things way more than
>>> what might happen on bare metal.
>>
>> What host? A type 1 hypervisor does not run a host OS.
>
> Um? What is the hypervisor then?

The hypervisor software like ESXi.

It is not running on top of a host OS like a type 2 (VirtualBox etc.) does.

>> And why would the CPU not be available, when there is no
>> over allocation of resources? It seems pretty silly of
>> the hypervisor to not want to give the CPU if no other
>> VM can get it.
>
> Any kind of hypervisor means we're talking about virtualization. That
> means you have real hardware which exists outside of this
> virtualization. And that hardware can generate interrupts and demand
> service, which then forces the hypervisor to wait before it can actually
> get any cycles. Outside the control of the hypervisor...

Maybe. But what would that be?

Arne

Re: clock problems with OpenVMS x86 on VirtualBox

<u3td18$32fc5$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28136&group=comp.os.vms#28136

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 09:45:11 -0400
Organization: A noiseless patient Spider
Lines: 58
Message-ID: <u3td18$32fc5$2@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<u3mkt8$1rlf8$1@dont-email.me> <u3t81u$320fj$2@dont-email.me>
<u3t8vs$326mp$1@dont-email.me> <u3ta02$h0c$5@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 13:45:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="700ce4e46f24686e7ffef1f3b56eda81";
logging-data="3227013"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+yYGGeWxiSi0riXP28dr9PgnVbdsjFN5k="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:ri+v1GvKk7h2+w3MepgZYIoGZ3A=
In-Reply-To: <u3ta02$h0c$5@news.misty.com>
Content-Language: en-US
 by: Arne Vajhøj - Mon, 15 May 2023 13:45 UTC

On 5/15/2023 8:53 AM, Johnny Billquist wrote:
> On 2023-05-15 14:36, Arne Vajhøj wrote:
>> On 5/15/2023 8:20 AM, Simon Clubley wrote:
>>> On 2023-05-12, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>>>>> On 2023-05-12, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>>>>> That's going to make for some "interesting" real-time program
>>>>>>> behaviour... :-)
>>>>>>
>>>>>> Do you think any serious real time programmer will run a real time
>>>>>> task inside a
>>>>>> VM?  I'm not a real time programmer, and I'd still not do that.
>>>>>
>>>>> As well as traditional real-time stuff (which I agree with you
>>>>> about BTW),
>>>>
>>>> I would not want to do it on a type 2 hypervisor - there must be
>>>> cases where what is happening on the host OS impact the performance
>>>> of the guest OS.
>>>>
>>>> But with a type 1 hypervisor and no over allocation of resources -
>>>> would it be worse than running on bare metal?
>>>
>>> A type 1 hypervisor is still a software layer between the hardware and
>>> the RTOS. It would have to _guarantee_ that it would _never_ get in the
>>> way of the timing guarantees that a program running under a RTOS needs.
>>
>> It is software that is active between the VMS and the HW.
>>
>> But it is not obvious to me where any delay would come from.
>>
>> If we talk type 2 then it is easy to understand. You have a host
>> OS running 200 processes - 1 VM and 199 other stuff, and 4 CPU
>> so those 200 processes get scheduled on those 4 CPU's, and certain
>> interrupts may happen in the host OS. That VM will have
>> a problem providing real time capabilities.
>>
>> But in the type 1 with no over allocation of resources then
>> what will cause any delays? The VM got its own CPU or CPU's
>> that no other VM want, so I would expect the hypervisor to
>> keep them permanently allocated to the VM. And I don't
>> see the need for any interrupts in the hypervisor either.
>
> Can you guarantee that no interrupts happens on the CPUs the hypervisor
> is using? I would suspect "no", which means you do not have full control.

What would those interrupts do?

A type 1 hypervisor does not do that much.

It has not very much in common with a type 2 hypervisor. I see it
as more of a software equivalent of system partitioning (DEC Galaxy,
IBM LPAR).

Arne

Re: clock problems with OpenVMS x86 on VirtualBox

<u3teec$32qrs$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28137&group=comp.os.vms#28137

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 10:09:14 -0400
Organization: A noiseless patient Spider
Lines: 81
Message-ID: <u3teec$32qrs$1@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<u3mkt8$1rlf8$1@dont-email.me> <u3t81u$320fj$2@dont-email.me>
<u3t8vs$326mp$1@dont-email.me> <u3ta02$h0c$5@news.misty.com>
<u3td18$32fc5$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 14:09:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="700ce4e46f24686e7ffef1f3b56eda81";
logging-data="3238780"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JT3538yehtSB8ki2eOVIFCid9FnWau1A="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:tYZVC+VjJMUkpvkws/6McAkOdsU=
Content-Language: en-US
In-Reply-To: <u3td18$32fc5$2@dont-email.me>
 by: Arne Vajhøj - Mon, 15 May 2023 14:09 UTC

On 5/15/2023 9:45 AM, Arne Vajhøj wrote:
> On 5/15/2023 8:53 AM, Johnny Billquist wrote:
>> On 2023-05-15 14:36, Arne Vajhøj wrote:
>>> On 5/15/2023 8:20 AM, Simon Clubley wrote:
>>>> On 2023-05-12, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>>>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>>>>>> On 2023-05-12, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>>>>>> That's going to make for some "interesting" real-time program
>>>>>>>> behaviour... :-)
>>>>>>>
>>>>>>> Do you think any serious real time programmer will run a real
>>>>>>> time task inside a
>>>>>>> VM?  I'm not a real time programmer, and I'd still not do that.
>>>>>>
>>>>>> As well as traditional real-time stuff (which I agree with you
>>>>>> about BTW),
>>>>>
>>>>> I would not want to do it on a type 2 hypervisor - there must be
>>>>> cases where what is happening on the host OS impact the performance
>>>>> of the guest OS.
>>>>>
>>>>> But with a type 1 hypervisor and no over allocation of resources -
>>>>> would it be worse than running on bare metal?
>>>>
>>>> A type 1 hypervisor is still a software layer between the hardware and
>>>> the RTOS. It would have to _guarantee_ that it would _never_ get in the
>>>> way of the timing guarantees that a program running under a RTOS needs.
>>>
>>> It is software that is active between the VMS and the HW.
>>>
>>> But it is not obvious to me where any delay would come from.
>>>
>>> If we talk type 2 then it is easy to understand. You have a host
>>> OS running 200 processes - 1 VM and 199 other stuff, and 4 CPU
>>> so those 200 processes get scheduled on those 4 CPU's, and certain
>>> interrupts may happen in the host OS. That VM will have
>>> a problem providing real time capabilities.
>>>
>>> But in the type 1 with no over allocation of resources then
>>> what will cause any delays? The VM got its own CPU or CPU's
>>> that no other VM want, so I would expect the hypervisor to
>>> keep them permanently allocated to the VM. And I don't
>>> see the need for any interrupts in the hypervisor either.
>>
>> Can you guarantee that no interrupts happens on the CPUs the
>> hypervisor is using? I would suspect "no", which means you do not have
>> full control.
>
> What would those interrupts do?
>
> A type 1 hypervisor does not do that much.
>
> It has not very much in common with a type 2 hypervisor. I see it
> as more of a software equivalent of system partitioning (DEC Galaxy,
> IBM LPAR).

As I don't know much about hypervisors and real time, then
no need to take my opinion too serious.

But one can look at the market.

VMWare officially talks about real-time:

https://docs.vmware.com/en/VMware-Edge-Compute-Stack/1.0/ecs-enterprise-edge-ref-arch/GUID-99972F62-3FAE-42B2-A850-66402274B616.html

And a whole bunch of special type 1 hypervisors for real time usage exist:

Wind River Helix -
https://www.windriver.com/solutions/learning/hypervisor and
https://www.windriver.com/products/helix

RTS - https://www.real-time-systems.com/

Acontis - https://www.acontis.com/en/acontis-hypervisor.html

Some people besides me seems to think that VM and real time is possible.

Arne

Re: clock problems with OpenVMS x86 on VirtualBox

<u3tek3$1g5$1@reader2.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28138&group=comp.os.vms#28138

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cro...@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 14:12:19 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <u3tek3$1g5$1@reader2.panix.com>
References: <u360f3$2u60a$1@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me> <u3mkt8$1rlf8$1@dont-email.me> <u3t0se$5jt$6@news.misty.com>
Injection-Date: Mon, 15 May 2023 14:12:19 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
logging-data="1541"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)
 by: Dan Cross - Mon, 15 May 2023 14:12 UTC

In article <u3t0se$5jt$6@news.misty.com>,
Johnny Billquist <bqt@softjar.se> wrote:
>On 2023-05-13 02:16, Arne Vajhøj wrote:
>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>>> On 2023-05-12, Dave Froble <davef@tsoft-inc.com> wrote:
>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>>> That's going to make for some "interesting" real-time program
>>>>> behaviour... :-)
>>>>
>>>> Do you think any serious real time programmer will run a real time
>>>> task inside a
>>>> VM?  I'm not a real time programmer, and I'd still not do that.
>>>
>>> As well as traditional real-time stuff (which I agree with you about
>>> BTW),
>>
>> I would not want to do it on a type 2 hypervisor - there must be
>> cases where what is happening on the host OS impact the performance
>> of the guest OS.
>>
>> But with a type 1 hypervisor and no over allocation of resources -
>> would it be worse than running on bare metal?
>
>For sure. You have no guarantee that you will get the CPU cycles when
>you need them. No matter what kind of hypervisor we're talking about,
>there is overhead in the host that can affect things way more than what
>might happen on bare metal.

There are many issues at play when we talk about virtualization
and soft real-time systems. What you're describing has to do
with scheduling of guest tasks, and best-in-class techniques can
mostly deal with that (e.g., schedulers like Tableau or applying
an EDF scheduler to VCPU management).

But even without over-commit, there are other aspects of the
overall system configuration that can affect performance. For
example, there is overhead in managing the guest's physical
address space: while current x86 architectures can support a set
of second-level page tables for this, there is still the issue
of needing to walk those tables, the pressure that puts on the
equivalent of the TLB, etc. Not to mention that the real TLB
for virtual addresses (both guest and host) will be put under
pressure due to both the host and other guest tasks (even a
non-overcommitted type-1 hypervisor may move tasks around
between physical host CPUs). And if you're using nested virt
or shadow-paging...well, good luck.

And separately there are issues of IO: in a type-1 scenario, IO
is offloaded to another VM (or even a separate system) on behalf
of a guest; that introduces non-determinate latency and
noisy-neighbor problems without careful construction. Even with
SR-IOV and passthru techniques for hypervisor-bypass, there are
classes of IO that must go through the host, and these can take
arbitrarily long. What do you do when the `outb` to your
virtualized console UART blocks? There are some techniques to
amortize the overhead of these events (posted IOs, for example)
but they are not perfect.

With careful construction, one can side-step most of the cost
and get latencies down to within a couple of percentage points
of running on bare-metal, but there _is_ overhead, and in many
scenarios, it can be unbounded, even if in practice it is
relatively small.

- Dan C.

Re: clock problems with OpenVMS x86 on VirtualBox

<u3teno$321go$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28139&group=comp.os.vms#28139

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 16:14:16 +0200
Organization: A noiseless patient Spider
Lines: 91
Message-ID: <u3teno$321go$2@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<u3mkt8$1rlf8$1@dont-email.me> <u3t81u$320fj$2@dont-email.me>
<u3t8vs$326mp$1@dont-email.me> <u3ta02$h0c$5@news.misty.com>
<u3td18$32fc5$2@dont-email.me> <u3teec$32qrs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 14:14:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a0cac9938666e69da1d0cb25b3b04aa4";
logging-data="3212824"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ak+sSQbNWlg9Gw6/Llx0X"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Cancel-Lock: sha1:NkRedy+xz288Rs8QrPBpXJD5l+Y=
Content-Language: sv
In-Reply-To: <u3teec$32qrs$1@dont-email.me>
 by: Jan-Erik Söderholm - Mon, 15 May 2023 14:14 UTC

Den 2023-05-15 kl. 16:09, skrev Arne Vajhøj:
> On 5/15/2023 9:45 AM, Arne Vajhøj wrote:
>> On 5/15/2023 8:53 AM, Johnny Billquist wrote:
>>> On 2023-05-15 14:36, Arne Vajhøj wrote:
>>>> On 5/15/2023 8:20 AM, Simon Clubley wrote:
>>>>> On 2023-05-12, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>>>>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>>>>>>> On 2023-05-12, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>>>>>>> That's going to make for some "interesting" real-time program
>>>>>>>>> behaviour... :-)
>>>>>>>>
>>>>>>>> Do you think any serious real time programmer will run a real time
>>>>>>>> task inside a
>>>>>>>> VM?  I'm not a real time programmer, and I'd still not do that.
>>>>>>>
>>>>>>> As well as traditional real-time stuff (which I agree with you about
>>>>>>> BTW),
>>>>>>
>>>>>> I would not want to do it on a type 2 hypervisor - there must be
>>>>>> cases where what is happening on the host OS impact the performance
>>>>>> of the guest OS.
>>>>>>
>>>>>> But with a type 1 hypervisor and no over allocation of resources -
>>>>>> would it be worse than running on bare metal?
>>>>>
>>>>> A type 1 hypervisor is still a software layer between the hardware and
>>>>> the RTOS. It would have to _guarantee_ that it would _never_ get in the
>>>>> way of the timing guarantees that a program running under a RTOS needs.
>>>>
>>>> It is software that is active between the VMS and the HW.
>>>>
>>>> But it is not obvious to me where any delay would come from.
>>>>
>>>> If we talk type 2 then it is easy to understand. You have a host
>>>> OS running 200 processes - 1 VM and 199 other stuff, and 4 CPU
>>>> so those 200 processes get scheduled on those 4 CPU's, and certain
>>>> interrupts may happen in the host OS. That VM will have
>>>> a problem providing real time capabilities.
>>>>
>>>> But in the type 1 with no over allocation of resources then
>>>> what will cause any delays? The VM got its own CPU or CPU's
>>>> that no other VM want, so I would expect the hypervisor to
>>>> keep them permanently allocated to the VM. And I don't
>>>> see the need for any interrupts in the hypervisor either.
>>>
>>> Can you guarantee that no interrupts happens on the CPUs the hypervisor
>>> is using? I would suspect "no", which means you do not have full control.
>>
>> What would those interrupts do?
>>
>> A type 1 hypervisor does not do that much.
>>
>> It has not very much in common with a type 2 hypervisor. I see it
>> as more of a software equivalent of system partitioning (DEC Galaxy,
>> IBM LPAR).
>
> As I don't know much about hypervisors and real time, then
> no need to take my opinion too serious.
>
> But one can look at the market.
>
> VMWare officially talks about real-time:
>
> https://docs.vmware.com/en/VMware-Edge-Compute-Stack/1.0/ecs-enterprise-edge-ref-arch/GUID-99972F62-3FAE-42B2-A850-66402274B616.html
>
> And a whole bunch of special type 1 hypervisors for real time usage exist:
>
> Wind River Helix - https://www.windriver.com/solutions/learning/hypervisor
> and https://www.windriver.com/products/helix
>
> RTS - https://www.real-time-systems.com/
>
> Acontis - https://www.acontis.com/en/acontis-hypervisor.html
>
> Some people besides me seems to think that VM and real time is possible.
>
> Arne
>
>

And I use to say that "real time" is worthless if you do not
specify what you mean with it. What are your expections?

For a user standing with some I/O devices like a hand-scanner
and a label printer, "real time" can be "within 1-2 seconds".

For a system talkning to some machinery, "real time" can be a
few 10's of milliseconds or even less.

Re: clock problems with OpenVMS x86 on VirtualBox

<fe68baaa-0db8-4dbe-8dfe-631e2e98fad5n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28140&group=comp.os.vms#28140

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:1994:b0:74d:f7d0:6a5f with SMTP id bm20-20020a05620a199400b0074df7d06a5fmr9607635qkb.0.1684161189736;
Mon, 15 May 2023 07:33:09 -0700 (PDT)
X-Received: by 2002:a05:622a:15c2:b0:3f5:a07:e6d5 with SMTP id
d2-20020a05622a15c200b003f50a07e6d5mr2258846qty.8.1684161189299; Mon, 15 May
2023 07:33:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 15 May 2023 07:33:09 -0700 (PDT)
In-Reply-To: <u3teno$321go$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:188:c402:dc70:69e0:b9a3:c9b5:41ad;
posting-account=UTAzUQoAAAAQtdL2ivz1KyyeVhy6-yBA
NNTP-Posting-Host: 2601:188:c402:dc70:69e0:b9a3:c9b5:41ad
References: <u360f3$2u60a$1@dont-email.me> <0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<u3mkt8$1rlf8$1@dont-email.me> <u3t81u$320fj$2@dont-email.me>
<u3t8vs$326mp$1@dont-email.me> <u3ta02$h0c$5@news.misty.com>
<u3td18$32fc5$2@dont-email.me> <u3teec$32qrs$1@dont-email.me> <u3teno$321go$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fe68baaa-0db8-4dbe-8dfe-631e2e98fad5n@googlegroups.com>
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
From: clairgra...@gmail.com (Clair Grant)
Injection-Date: Mon, 15 May 2023 14:33:09 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6140
 by: Clair Grant - Mon, 15 May 2023 14:33 UTC

On Monday, May 15, 2023 at 10:16:42 AM UTC-4, Jan-Erik Söderholm wrote:
> Den 2023-05-15 kl. 16:09, skrev Arne Vajhøj:
> > On 5/15/2023 9:45 AM, Arne Vajhøj wrote:
> >> On 5/15/2023 8:53 AM, Johnny Billquist wrote:
> >>> On 2023-05-15 14:36, Arne Vajhøj wrote:
> >>>> On 5/15/2023 8:20 AM, Simon Clubley wrote:
> >>>>> On 2023-05-12, Arne Vajhøj <ar...@vajhoej.dk> wrote:
> >>>>>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
> >>>>>>> On 2023-05-12, Dave Froble <da...@tsoft-inc.com> wrote:
> >>>>>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
> >>>>>>>>> That's going to make for some "interesting" real-time program
> >>>>>>>>> behaviour... :-)
> >>>>>>>>
> >>>>>>>> Do you think any serious real time programmer will run a real time
> >>>>>>>> task inside a
> >>>>>>>> VM? I'm not a real time programmer, and I'd still not do that.
> >>>>>>>
> >>>>>>> As well as traditional real-time stuff (which I agree with you about
> >>>>>>> BTW),
> >>>>>>
> >>>>>> I would not want to do it on a type 2 hypervisor - there must be
> >>>>>> cases where what is happening on the host OS impact the performance
> >>>>>> of the guest OS.
> >>>>>>
> >>>>>> But with a type 1 hypervisor and no over allocation of resources -
> >>>>>> would it be worse than running on bare metal?
> >>>>>
> >>>>> A type 1 hypervisor is still a software layer between the hardware and
> >>>>> the RTOS. It would have to _guarantee_ that it would _never_ get in the
> >>>>> way of the timing guarantees that a program running under a RTOS needs.
> >>>>
> >>>> It is software that is active between the VMS and the HW.
> >>>>
> >>>> But it is not obvious to me where any delay would come from.
> >>>>
> >>>> If we talk type 2 then it is easy to understand. You have a host
> >>>> OS running 200 processes - 1 VM and 199 other stuff, and 4 CPU
> >>>> so those 200 processes get scheduled on those 4 CPU's, and certain
> >>>> interrupts may happen in the host OS. That VM will have
> >>>> a problem providing real time capabilities.
> >>>>
> >>>> But in the type 1 with no over allocation of resources then
> >>>> what will cause any delays? The VM got its own CPU or CPU's
> >>>> that no other VM want, so I would expect the hypervisor to
> >>>> keep them permanently allocated to the VM. And I don't
> >>>> see the need for any interrupts in the hypervisor either.
> >>>
> >>> Can you guarantee that no interrupts happens on the CPUs the hypervisor
> >>> is using? I would suspect "no", which means you do not have full control.
> >>
> >> What would those interrupts do?
> >>
> >> A type 1 hypervisor does not do that much.
> >>
> >> It has not very much in common with a type 2 hypervisor. I see it
> >> as more of a software equivalent of system partitioning (DEC Galaxy,
> >> IBM LPAR).
> >
> > As I don't know much about hypervisors and real time, then
> > no need to take my opinion too serious.
> >
> > But one can look at the market.
> >
> > VMWare officially talks about real-time:
> >
> > https://docs.vmware.com/en/VMware-Edge-Compute-Stack/1.0/ecs-enterprise-edge-ref-arch/GUID-99972F62-3FAE-42B2-A850-66402274B616.html
> >
> > And a whole bunch of special type 1 hypervisors for real time usage exist:
> >
> > Wind River Helix - https://www.windriver.com/solutions/learning/hypervisor
> > and https://www.windriver.com/products/helix
> >
> > RTS - https://www.real-time-systems.com/
> >
> > Acontis - https://www.acontis.com/en/acontis-hypervisor.html
> >
> > Some people besides me seems to think that VM and real time is possible..
> >
> > Arne
> >
> >
> And I use to say that "real time" is worthless if you do not
> specify what you mean with it. What are your expections?
>
> For a user standing with some I/O devices like a hand-scanner
> and a label printer, "real time" can be "within 1-2 seconds".
>
> For a system talkning to some machinery, "real time" can be a
> few 10's of milliseconds or even less.
Of course you are right. My test did not prove anything. That was really stupid.

Re: clock problems with OpenVMS x86 on VirtualBox

<u3thmc$3354k$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28141&group=comp.os.vms#28141

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 17:04:44 +0200
Organization: A noiseless patient Spider
Lines: 97
Message-ID: <u3thmc$3354k$1@dont-email.me>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<u3mkt8$1rlf8$1@dont-email.me> <u3t81u$320fj$2@dont-email.me>
<u3t8vs$326mp$1@dont-email.me> <u3ta02$h0c$5@news.misty.com>
<u3td18$32fc5$2@dont-email.me> <u3teec$32qrs$1@dont-email.me>
<u3teno$321go$2@dont-email.me>
<fe68baaa-0db8-4dbe-8dfe-631e2e98fad5n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 15:04:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a0cac9938666e69da1d0cb25b3b04aa4";
logging-data="3249300"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Z/0CGPu1WMeW5RE17SJ33"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Cancel-Lock: sha1:vrm6Rs/htzgpn4os944fgjik1U4=
In-Reply-To: <fe68baaa-0db8-4dbe-8dfe-631e2e98fad5n@googlegroups.com>
Content-Language: sv
 by: Jan-Erik Söderholm - Mon, 15 May 2023 15:04 UTC

Den 2023-05-15 kl. 16:33, skrev Clair Grant:
> On Monday, May 15, 2023 at 10:16:42 AM UTC-4, Jan-Erik Söderholm wrote:
>> Den 2023-05-15 kl. 16:09, skrev Arne Vajhøj:
>>> On 5/15/2023 9:45 AM, Arne Vajhøj wrote:
>>>> On 5/15/2023 8:53 AM, Johnny Billquist wrote:
>>>>> On 2023-05-15 14:36, Arne Vajhøj wrote:
>>>>>> On 5/15/2023 8:20 AM, Simon Clubley wrote:
>>>>>>> On 2023-05-12, Arne Vajhøj <ar...@vajhoej.dk> wrote:
>>>>>>>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>>>>>>>>> On 2023-05-12, Dave Froble <da...@tsoft-inc.com> wrote:
>>>>>>>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>>>>>>>>> That's going to make for some "interesting" real-time program
>>>>>>>>>>> behaviour... :-)
>>>>>>>>>>
>>>>>>>>>> Do you think any serious real time programmer will run a real time
>>>>>>>>>> task inside a
>>>>>>>>>> VM? I'm not a real time programmer, and I'd still not do that.
>>>>>>>>>
>>>>>>>>> As well as traditional real-time stuff (which I agree with you about
>>>>>>>>> BTW),
>>>>>>>>
>>>>>>>> I would not want to do it on a type 2 hypervisor - there must be
>>>>>>>> cases where what is happening on the host OS impact the performance
>>>>>>>> of the guest OS.
>>>>>>>>
>>>>>>>> But with a type 1 hypervisor and no over allocation of resources -
>>>>>>>> would it be worse than running on bare metal?
>>>>>>>
>>>>>>> A type 1 hypervisor is still a software layer between the hardware and
>>>>>>> the RTOS. It would have to _guarantee_ that it would _never_ get in the
>>>>>>> way of the timing guarantees that a program running under a RTOS needs.
>>>>>>
>>>>>> It is software that is active between the VMS and the HW.
>>>>>>
>>>>>> But it is not obvious to me where any delay would come from.
>>>>>>
>>>>>> If we talk type 2 then it is easy to understand. You have a host
>>>>>> OS running 200 processes - 1 VM and 199 other stuff, and 4 CPU
>>>>>> so those 200 processes get scheduled on those 4 CPU's, and certain
>>>>>> interrupts may happen in the host OS. That VM will have
>>>>>> a problem providing real time capabilities.
>>>>>>
>>>>>> But in the type 1 with no over allocation of resources then
>>>>>> what will cause any delays? The VM got its own CPU or CPU's
>>>>>> that no other VM want, so I would expect the hypervisor to
>>>>>> keep them permanently allocated to the VM. And I don't
>>>>>> see the need for any interrupts in the hypervisor either.
>>>>>
>>>>> Can you guarantee that no interrupts happens on the CPUs the hypervisor
>>>>> is using? I would suspect "no", which means you do not have full control.
>>>>
>>>> What would those interrupts do?
>>>>
>>>> A type 1 hypervisor does not do that much.
>>>>
>>>> It has not very much in common with a type 2 hypervisor. I see it
>>>> as more of a software equivalent of system partitioning (DEC Galaxy,
>>>> IBM LPAR).
>>>
>>> As I don't know much about hypervisors and real time, then
>>> no need to take my opinion too serious.
>>>
>>> But one can look at the market.
>>>
>>> VMWare officially talks about real-time:
>>>
>>> https://docs.vmware.com/en/VMware-Edge-Compute-Stack/1.0/ecs-enterprise-edge-ref-arch/GUID-99972F62-3FAE-42B2-A850-66402274B616.html
>>>
>>> And a whole bunch of special type 1 hypervisors for real time usage exist:
>>>
>>> Wind River Helix - https://www.windriver.com/solutions/learning/hypervisor
>>> and https://www.windriver.com/products/helix
>>>
>>> RTS - https://www.real-time-systems.com/
>>>
>>> Acontis - https://www.acontis.com/en/acontis-hypervisor.html
>>>
>>> Some people besides me seems to think that VM and real time is possible.
>>>
>>> Arne
>>>
>>>
>> And I use to say that "real time" is worthless if you do not
>> specify what you mean with it. What are your expections?
>>
>> For a user standing with some I/O devices like a hand-scanner
>> and a label printer, "real time" can be "within 1-2 seconds".
>>
>> For a system talkning to some machinery, "real time" can be a
>> few 10's of milliseconds or even less.
> Of course you are right. My test did not prove anything. That was really stupid.

Maybe not stupid, but I'd say that it missed an important point. :-)

And I guess you are replying to my note about using the same system
to measure the systems own clock. It will always be "spot-on".
Not really my post about real-time...

Re: clock problems with OpenVMS x86 on VirtualBox

<f3864ca5-db67-44df-929e-7f1e4d3a20d8n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28142&group=comp.os.vms#28142

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:3199:b0:74e:46de:9879 with SMTP id bi25-20020a05620a319900b0074e46de9879mr11165114qkb.0.1684172582448;
Mon, 15 May 2023 10:43:02 -0700 (PDT)
X-Received: by 2002:a05:620a:4110:b0:759:40d8:b265 with SMTP id
j16-20020a05620a411000b0075940d8b265mr2183803qko.0.1684172582244; Mon, 15 May
2023 10:43:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 15 May 2023 10:43:02 -0700 (PDT)
In-Reply-To: <u3t9d8$h0c$1@news.misty.com>
Injection-Info: google-groups.googlegroups.com; posting-host=100.8.228.76; posting-account=2vnRtAoAAAAE0ap3uRDMDu6cngT6BrOO
NNTP-Posting-Host: 100.8.228.76
References: <u360f3$2u60a$1@dont-email.me> <5751da2a-4b87-4f86-9d7b-815606a626ean@googlegroups.com>
<u3l2fq$g0q$1@news.misty.com> <2af50234-632d-4bf7-a569-dbab6b36f48an@googlegroups.com>
<u3t06k$5jt$1@news.misty.com> <f2a6d688-b41e-4f4b-96f2-f97c66d3cf41n@googlegroups.com>
<u3t9d8$h0c$1@news.misty.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f3864ca5-db67-44df-929e-7f1e4d3a20d8n@googlegroups.com>
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
From: terry-gr...@glaver.org (terry-...@glaver.org)
Injection-Date: Mon, 15 May 2023 17:43:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 16
 by: terry-...@glaver.org - Mon, 15 May 2023 17:43 UTC

On Monday, May 15, 2023 at 8:45:00 AM UTC-4, Johnny Billquist wrote:
> It used to be a *very* reliable clock source. Power grids used to
> compensate for drift because of load, so that over 24 hours, you have a
> very exact number of peaks on the power. All type of clocks were
> designed with this clock source. Sadly, I think power grids no longer
> are caring as much about the accuracy of the frequency.

You can see the (near) real-time frequency deviation as well as the
cumulative clock drift that it causes here:
https://www.swissgrid.ch/en/home/operation/grid-data/current-data.html#frequency

5 or years ago, a Kosovo / Serbia dispute caused much larger drift -
on the order of 6 minutes. Do a web search for 'kosovo makes clocks
run slow'

Re: clock problems with OpenVMS x86 on VirtualBox

<u3tr77$6e9$1@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28143&group=comp.os.vms#28143

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.10.184.180.213.static.wline.lns.sme.cust.swisscom.ch!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 19:47:19 +0200
Organization: MGT Consulting
Message-ID: <u3tr77$6e9$1@news.misty.com>
References: <u360f3$2u60a$1@dont-email.me>
<0a2380af-03c7-400c-9a97-f93809394743n@googlegroups.com>
<u3kr5m$1egq6$1@dont-email.me> <u3laii$1hsr0$2@dont-email.me>
<u3lc20$1i1jf$2@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<u3mkt8$1rlf8$1@dont-email.me> <u3t0se$5jt$6@news.misty.com>
<u3t738$31u5r$1@dont-email.me> <u3t9s7$h0c$4@news.misty.com>
<u3tceq$32fc5$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 17:47:19 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="10.184.180.213.static.wline.lns.sme.cust.swisscom.ch:213.180.184.10";
logging-data="6601"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.11.0
In-Reply-To: <u3tceq$32fc5$1@dont-email.me>
 by: Johnny Billquist - Mon, 15 May 2023 17:47 UTC

On 2023-05-15 15:35, Arne Vajhøj wrote:
> On 5/15/2023 8:51 AM, Johnny Billquist wrote:
>> On 2023-05-15 14:03, Arne Vajhøj wrote:
>>> On 5/15/2023 6:17 AM, Johnny Billquist wrote:
>>>> On 2023-05-13 02:16, Arne Vajhøj wrote:
>>>>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>>>>>> On 2023-05-12, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>>>>>> That's going to make for some "interesting" real-time program
>>>>>>>> behaviour... :-)
>>>>>>>
>>>>>>> Do you think any serious real time programmer will run a real
>>>>>>> time task inside a
>>>>>>> VM?  I'm not a real time programmer, and I'd still not do that.
>>>>>>
>>>>>> As well as traditional real-time stuff (which I agree with you
>>>>>> about BTW),
>>>>>
>>>>> I would not want to do it on a type 2 hypervisor - there must be
>>>>> cases where what is happening on the host OS impact the performance
>>>>> of the guest OS.
>>>>>
>>>>> But with a type 1 hypervisor and no over allocation of resources -
>>>>> would it be worse than running on bare metal?
>>>>
>>>> For sure. You have no guarantee that you will get the CPU cycles
>>>> when you need them. No matter what kind of hypervisor we're talking
>>>> about, there is overhead in the host that can affect things way more
>>>> than what might happen on bare metal.
>>>
>>> What host? A type 1 hypervisor does not run a host OS.
>>
>> Um? What is the hypervisor then?
>
> The hypervisor software like ESXi.
>
> It is not running on top of a host OS like a type 2 (VirtualBox etc.) does.

I never assumed you had a full OS. However, they Hypervisor is
intercepting access to hardware, and is responsible for the actual
interaction with the hardware, adding a layer between the guest OS and
the hardware. Which means that the hypvervisor is in the end doing
interrupt handling, for example. Which means that the CPU might be doing
things that suspends the execution for the hypervisor outside the
control of the hypervisor itself, and further more makes things like
interrupts to the guest OS happen at some random later time, including
clock interrupts, which are what affects things like real-time reponse
times.

>>> And why would the CPU not be available, when there is no
>>> over allocation of resources? It seems pretty silly of
>>> the hypervisor to not want to give the CPU if no other
>>> VM can get it.
>>
>> Any kind of hypervisor means we're talking about virtualization. That
>> means you have real hardware which exists outside of this
>> virtualization. And that hardware can generate interrupts and demand
>> service, which then forces the hypervisor to wait before it can
>> actually get any cycles. Outside the control of the hypervisor...
>
> Maybe. But what would that be?

Primarily I would be worried about interrupts, which introduce unknown
amout of delay.

But yes, for things like memory, if it is fixed allocated to VM
instances, and always available, then another potential source of delays
are at least not there.

Depending on what the hypervisor does, you might still also have issues
like page table caches, and normal memory caches, which will have rather
different behaviors compared to plain hardware. Caches are a significant
factor is performance these days.

Johnny

Re: clock problems with OpenVMS x86 on VirtualBox

<u3trbi$6e9$2@news.misty.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=28144&group=comp.os.vms#28144

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.10.184.180.213.static.wline.lns.sme.cust.swisscom.ch!not-for-mail
From: bqt...@softjar.se (Johnny Billquist)
Newsgroups: comp.os.vms
Subject: Re: clock problems with OpenVMS x86 on VirtualBox
Date: Mon, 15 May 2023 19:49:38 +0200
Organization: MGT Consulting
Message-ID: <u3trbi$6e9$2@news.misty.com>
References: <u360f3$2u60a$1@dont-email.me> <u3lt3p$1p1uh$1@dont-email.me>
<u3mkt8$1rlf8$1@dont-email.me> <u3t0se$5jt$6@news.misty.com>
<u3tek3$1g5$1@reader2.panix.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 15 May 2023 17:49:38 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="10.184.180.213.static.wline.lns.sme.cust.swisscom.ch:213.180.184.10";
logging-data="6601"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.11.0
In-Reply-To: <u3tek3$1g5$1@reader2.panix.com>
 by: Johnny Billquist - Mon, 15 May 2023 17:49 UTC

On 2023-05-15 16:12, Dan Cross wrote:
> In article <u3t0se$5jt$6@news.misty.com>,
> Johnny Billquist <bqt@softjar.se> wrote:
>> On 2023-05-13 02:16, Arne Vajhøj wrote:
>>> On 5/12/2023 1:30 PM, Simon Clubley wrote:
>>>> On 2023-05-12, Dave Froble <davef@tsoft-inc.com> wrote:
>>>>> On 5/12/2023 8:14 AM, Simon Clubley wrote:
>>>>>> That's going to make for some "interesting" real-time program
>>>>>> behaviour... :-)
>>>>>
>>>>> Do you think any serious real time programmer will run a real time
>>>>> task inside a
>>>>> VM?  I'm not a real time programmer, and I'd still not do that.
>>>>
>>>> As well as traditional real-time stuff (which I agree with you about
>>>> BTW),
>>>
>>> I would not want to do it on a type 2 hypervisor - there must be
>>> cases where what is happening on the host OS impact the performance
>>> of the guest OS.
>>>
>>> But with a type 1 hypervisor and no over allocation of resources -
>>> would it be worse than running on bare metal?
>>
>> For sure. You have no guarantee that you will get the CPU cycles when
>> you need them. No matter what kind of hypervisor we're talking about,
>> there is overhead in the host that can affect things way more than what
>> might happen on bare metal.
>
> There are many issues at play when we talk about virtualization
> and soft real-time systems. What you're describing has to do
> with scheduling of guest tasks, and best-in-class techniques can
> mostly deal with that (e.g., schedulers like Tableau or applying
> an EDF scheduler to VCPU management).
>
> But even without over-commit, there are other aspects of the
> overall system configuration that can affect performance. For
> example, there is overhead in managing the guest's physical
> address space: while current x86 architectures can support a set
> of second-level page tables for this, there is still the issue
> of needing to walk those tables, the pressure that puts on the
> equivalent of the TLB, etc. Not to mention that the real TLB
> for virtual addresses (both guest and host) will be put under
> pressure due to both the host and other guest tasks (even a
> non-overcommitted type-1 hypervisor may move tasks around
> between physical host CPUs). And if you're using nested virt
> or shadow-paging...well, good luck.
>
> And separately there are issues of IO: in a type-1 scenario, IO
> is offloaded to another VM (or even a separate system) on behalf
> of a guest; that introduces non-determinate latency and
> noisy-neighbor problems without careful construction. Even with
> SR-IOV and passthru techniques for hypervisor-bypass, there are
> classes of IO that must go through the host, and these can take
> arbitrarily long. What do you do when the `outb` to your
> virtualized console UART blocks? There are some techniques to
> amortize the overhead of these events (posted IOs, for example)
> but they are not perfect.
>
> With careful construction, one can side-step most of the cost
> and get latencies down to within a couple of percentage points
> of running on bare-metal, but there _is_ overhead, and in many
> scenarios, it can be unbounded, even if in practice it is
> relatively small.

Thanks for the exhaustive answer. I don't think I need to add much more
to this.

Johnny


computers / comp.os.vms / Re: clock problems with OpenVMS x86 on VirtualBox

Pages:123456
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor