c186282 <c186…@nnada.net> writes:
>On 11/10/26 09:35, Peter Flass wrote:
>> On 11/10/26 02:37, Alexander Schreiber wrote:
>>>
>>
>> A prime example of neat code is that HASP (now JES) printed an entire
>> page with one channel program instead of a line at a time. It also read
>> a number of cards with one channel program instead of one card at a
>> time, or, as someone has mentioned, one card column at a time.
>
> "Smart" periphs are good ... but also
> a kind of trap.
Not really. The Mainframe controllers (Burroughs) in the
1970s and 1980s offloaded work from the central CPU
that could be used for actual work. Whether it was the
line printers, card readers, tape drives, disk drives
or terminal concentrators.
>
> Ideally the CPU does almost everything - so you
> can optimize/tweak.
Can you describe _anything_ that could be optimized or
tweaked, on the host CPU that cannot be more easily done
by the adapter/controller hardware?
>
> But esp in the Olde Days the CPU really wasn't
> that strong or had that many resources.
Especially today, it would be a huge waste to have the CPU
interacting closely with the controllers on a per
request basis, much less on each data transfer.
NVMe controllers support multiple queues - the host
OS simple queues requests(s) to the controller asynchronously
and is notified (if desired) upon completion. To avoid
per-request overhead, interrupt moderation techniques are
used in the networking space (which use similar queueing
mechanisms) and in the NVMe space.
Additionally, most modern high-end devices support SRIOV
virtualization capabilities, which allows guest operating
systems direct access to the peripheral hardware, eliminating
multiple trips throught the hypervisor on each request.