Re: Calculation involving SMF CPU Time
In 45fcfbbb8bc8eb4a9dfedc6fa2cc7fdf99a82...@sdkmbx02.emea.sas.com, on 10/15/2014 at 06:03 AM, Lindy Mayfield lindy.mayfi...@sas.com said: I honestly cannot remember why I did that, to divide by 38400, Google for timer units, or check a 370-mode PoOps. I would hope that IBM has stopped using them for new fields, but SMFCPU is fairly old. -- Shmuel (Seymour J.) Metz, SysProg and JOAT ISO position; see http://patriot.net/~shmuel/resume/brief.html We don't care. We don't have to care, we're Congress. (S877: The Shut up and Eat Your spam act of 2003) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Calculation involving SMF CPU Time
12 hours? IIRC86,400 sec = 24 hours snip I needed to pull off some user SMF records, and so I used a small program that I had written about 6 or so years ago. In it, I have a line of code like this: SMFCPU = SMFCPU / 38400 I honestly cannot remember why I did that, to divide by 38400, but I must have had a good reason. It doesn't appear to be time related. I'm sure someone here knows, though. /snip -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Calculation involving SMF CPU Time
I found this in some of my old notes. SMFCPU - The CPU time used in timer units. Note: there are 38,400 timer units in a second. Maybe this helps? This e-mail may contain Sprint proprietary information intended for the sole use of the recipient(s). Any use by others is prohibited. If you are not the intended recipient, please contact the sender and delete all copies of the message. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Calculation involving SMF CPU Time
I needed to pull off some user SMF records, and so I used a small program that I had written about 6 or so years ago. In it, I have a line of code like this: SMFCPU = SMFCPU / 38400 I honestly cannot remember why I did that, to divide by 38400, but I must have had a good reason. It doesn't appear to be time related. I'm sure someone here knows, though. Thank you kindly :) Lindy -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Calculation involving SMF CPU Time
Lindy Mayfield wrote: I needed to pull off some user SMF records, and so I used a small program that I had written about 6 or so years ago. In it, I have a line of code like this: SMFCPU = SMFCPU / 38400 I honestly cannot remember why I did that, to divide by 38400, but I must have had a good reason. It doesn't appear to be time related. I'm sure someone here knows, though. I believe there are good reasons, since 38400 is a product of 640 and 60. I vaguely remember some threads about that, something about 'ticks' or CPU Timer which if you multiply it enough, you will come at about 1 second. Ok, After some RTFM in SMF book, POP, macros references, I believe it is 26.04166 microseconds (one timer unit), which if you multiply it by 38400, you arrive at 999 999.744 which could be translated to about 1 second AFAIK. What I know the resolution of CPU values in SMF records are in hundreds of seconds, while the STORE CLOCK (EXTENDED) use more bits in the clock value which is higher resolution. Alternatively, could you be kind to show all statements which contain SMFCPU before that SMFCPU / 38400? This is to see how you got your SMFCPU in the first place and at wat value format it was. Groete / Greetings Elardus Engelbrecht -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Calculation involving SMF CPU Time
Thank you very much for your help, Elardus. I am using this: SMFCPU DS F CPU time in timer units So I am just converting to CPU seconds then. As soon as I noticed timer units in the DSECT I realized it. Thanks for checking for me. I'm not sure if I got that number myself from a doc, or if someone here helped me with it a long time ago. Perhaps that thread was mine and you remembered it. :-) Kind regards, Lindy -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Elardus Engelbrecht Sent: Wednesday, October 15, 2014 9:55 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Calculation involving SMF CPU Time Lindy Mayfield wrote: I needed to pull off some user SMF records, and so I used a small program that I had written about 6 or so years ago. In it, I have a line of code like this: SMFCPU = SMFCPU / 38400 I honestly cannot remember why I did that, to divide by 38400, but I must have had a good reason. It doesn't appear to be time related. I'm sure someone here knows, though. I believe there are good reasons, since 38400 is a product of 640 and 60. I vaguely remember some threads about that, something about 'ticks' or CPU Timer which if you multiply it enough, you will come at about 1 second. Ok, After some RTFM in SMF book, POP, macros references, I believe it is 26.04166 microseconds (one timer unit), which if you multiply it by 38400, you arrive at 999 999.744 which could be translated to about 1 second AFAIK. What I know the resolution of CPU values in SMF records are in hundreds of seconds, while the STORE CLOCK (EXTENDED) use more bits in the clock value which is higher resolution. Alternatively, could you be kind to show all statements which contain SMFCPU before that SMFCPU / 38400? This is to see how you got your SMFCPU in the first place and at wat value format it was. Groete / Greetings Elardus Engelbrecht -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Calculation involving SMF CPU Time
On 15 October 2014 02:55, Elardus Engelbrecht elardus.engelbre...@sita.co.za wrote: Ok, After some RTFM in SMF book, POP, macros references, I believe it is 26.04166 microseconds (one timer unit), which if you multiply it by 38400, you arrive at 999 999.744 which could be translated to about 1 second AFAIK. This particular magic number comes from the System/360 Interval Timer, which was the only timer on S/360, and persisted into S/370 architecture, but was dropped in 370/XA. It is a 32-bit signed fixed-point number, defined such that bit position 23 is decremented every 1/300 of a second. This was a convenient definition to implement in a basic form in both 50 and 60 Hz countries, since the rate is easily derived from the power supply. But in all but the most low end models, a bit position to the right of 23 was decremented at a faster rate, giving higher precision. Bit position 31 represents 13.020833... μS; I don't know why double that, or bit position 30, is considered a timer unit for SMF purposes. Possibly they wanted to be able to represent more than the 7.7ish hours that the positive number range of the architected format provides. Tony H. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN