[Info-vax] New free Load Average driver (LAXDRIVER) to replace LAVDRIVER
Chris Scheers
chris at applied-synergy.com
Thu Jun 30 17:12:17 EDT 2022
Jake Hamby wrote:
> On Monday, June 20, 2022 at 11:20:15 AM UTC-7, Arne Vajhøj wrote:
>>> That said, I do hope that you are right.
>> Copyright rules are pretty strict. Stuff in SYS$EXAMPLES
>> are copyrighted and one need permission to use
>> copyrighted material.
>>
>> But I think in this case one could try argue:
>> - the stuff in SYS$EXAMPLES are obviously intended
>> to be used so it must be OK to use it at
>> least locally
>> - everybody using this code will obviously have
>> a VMS system and a SYS$EXAMPLES with the same
>> stuff already, so it is distributing code to people
>> that already have a legal copy of that code
>>
>> The argument also points to a workaround: distribute
>> only ones own code and a script that merge it with
>> SYS$EXAMPLES stuff.
>
> At some point I'll replace the comments with something shorter and written in my own style. I didn't want to do that originally mostly because I didn't want to claim authoritatively the system states that are described in the comments for the different callback functions that I filled in with my own code.
>
> I'm still curious what's accounting for the load average being higher than I'd expect when there are 2 running/computable processes and 2 CPUs. I'd expect to see values closer to 2.0 than 3.5 to 4.0. At least it shows ~0.01 when idle. It looks to all appearances like a running process can show up as computable and also current on a CPU, including in the MONITOR system process counts. Not that this is the sort of thing that a hardware device driver would ever be concerned with, as opposed to a pseudo-device driver that's poking around in the system state.
I don't have the internals manual here just now, and things may have
changed in later versions of VMS anyways, but when a process is made
CUR, is it actually removed from the COM queue?
Also, depending on how you are scanning the queues, processes can move
between queues while you are scanning.
--
-----------------------------------------------------------------------
Chris Scheers, Applied Synergy, Inc.
Voice: 817-237-3360 Internet: chris at applied-synergy.com
Fax: 817-237-3074
More information about the Info-vax
mailing list