¿ªÔÆÌåÓý

Re: memset help


 

¿ªÔÆÌåÓý

Dave,

?

I¡¯m acutely aware of that IBM advice, but in the last two decades I have also been involved in multiple rounds of ¡°MIPS-saving¡± projects when management wanted application teams to ¡°do more with less¡± (i.e. increase performance / reduce batch execution times without buying more/bigger hardware).

?

The most effective solutions in those projects were finding the ¡°CPU hot spots¡± (the Strobe product was always particularly effective for such efforts), and more times than not the worst ¡°hot spots¡± turned out to be MVCL and sometimes CLCL instructions in compiler-generated COBOL code, and the second worst ¡°hot spots¡± were the COBOL INITIALIZE verb for large heterogenous structures used inside of a loop, or at every invocation of a subroutine.

?

Finding ways to hoist long-length moves/compares and INITIALIZE verbs out of business processing loops usually yielded the best/largest reductions of CPU and elapsed time used.? Second-best solutions were complicated and usually application-specific adjustments to business processing rules (along the lines of ¡°the fastest I/O or business process is the one not done¡±).

?

But I digress from the subject at hand.? You and Harold are right here, for Hercules fewer instructions will yield better performance, so if replacement of the C version of MEMSET would dramatically improve performance for C programs then the MVCL solution will probably work best under Hercules.

?

Peter

?

From: [email protected] <[email protected]> On Behalf Of Dave Wade
Sent: Tuesday, April 14, 2020 7:17 PM
To: [email protected]
Subject: Re: [h390-vm] memset help

?

Peter,

I tend not to worry about performance, but any way I believe that IBM current advice is don¡¯t try and instruction timings disappeared from the manuals yonks ago¡­

For example early 9370 were especially bad on non-aligned instructions, but modern hardware doesn¡¯t give a jot. I suppose it might be nice to try it on the P390 but still trying to re-write a web sit ¡­

Dave

?

From: [email protected] <[email protected]> On Behalf Of pjfarley3
Sent: 14 April 2020 23:24
To: [email protected]
Subject: Re: [h390-vm] memset help

?

Because I did not remember that MVCL was available at the 370 architecture level (and failed to go look it up) and because MVCL has mostly been quite slow at the real-iron hardware level.

?

Of course, Hercules might do MVCL relatively better than the real iron.

?

MEMSETCL.txt using MVCL attached.

?

Peter

?

> -----Original Message-----

> From: [email protected] <[email protected]> On Behalf Of Peter Coghlan

> Sent: Tuesday, April 14, 2020 3:33 AM

> To: [email protected]

> Subject: Re: [h390-vm] memset help

>

<Snipped>

> Why don't you suggest using an MVCL instruction?

>

> Regards,

> Peter Coghlan.

--

_._,_._,_

Join [email protected] to automatically receive all group messages.