FW: I/O Optimization

2013-06-11 Thread Barry Merrill
[mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Monday, June 10, 2013 11:33 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: I/O Optimization On Mon, 10 Jun 2013 17:18:48 -0500, Barry Merrill wrote: VBS Blocksize in dumped SMF data with RECFM=VBS,LRECL=32760,BLKSIZE=0 does NOT produce

Re: FW: I/O Optimization

2013-06-11 Thread Elardus Engelbrecht
Barry Merrill wrote: NOT PARTICULARLY EFFICIENT, but met the requirments. Of course. It is also not efficient when you need to recover lost SMF data. One broken record or block and the rest of the dataset are lost. [1] Groete / Greetings Elardus Engelbrecht [1] - I believe there is a program

Re: FW: I/O Optimization

2013-06-11 Thread Barry Merrill
: FW: I/O Optimization Barry Merrill wrote: NOT PARTICULARLY EFFICIENT, but met the requirments. Of course. It is also not efficient when you need to recover lost SMF data. One broken record or block and the rest of the dataset are lost. [1] Groete / Greetings Elardus Engelbrecht [1] - I

Re: FW: I/O Optimization

2013-06-11 Thread Barry Merrill
sharing information in my posts. Yours seem to exist only to inflate your ego. Barry -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of John Gilmore Sent: Tuesday, June 11, 2013 7:31 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: FW: I/O

Re: I/O Optimization

2013-06-11 Thread Tom Marchant
On Mon, 10 Jun 2013 16:02:59 -0500, Paul Gilmartin wrote: On Mon, 10 Jun 2013 17:43:58 +, DASDBILL2 wrote: Spanned means that a single logical record might span multiple physical blocks, but the way it is implemented results in having all block sizes be the same, except for possibly the

I/O Optimization

2013-06-11 Thread Blaicher, Christopher Y.
For a complete discussion about V/VB/VS/VBS and F/FB/FBS file formats, please look at Chapter 20 of the DFSMS Using Data Sets manual. The following for FBS is extracted from that manual. This is the definitive manual for standard files to be processed by BSAM and QSAM. Standard Format During

Re: I/O Optimization

2013-06-11 Thread Shmuel Metz (Seymour J.)
In 746510224.45656.1370914746772.javamail.r...@sz0127a.westchester.pa.mail.comcast.net, on 06/11/2013 at 01:39 AM, DASDBILL2 dasdbi...@comcast.net said: On output, the blocks are all written with the same blocksize except possibly the last.  This causes the reading in of such a file with

Re: I/O Optimization

2013-06-11 Thread Shmuel Metz (Seymour J.)
In 0997106197004218.wa.paulgboulderaim@listserv.ua.edu, on 06/10/2013 at 04:02 PM, Paul Gilmartin paulgboul...@aim.com said: Is uniform lengths a requirement? No. Do any applications rely on being able to calculate a cylinder and track address within a VBS data set? I hope not; if it

Re: FW: I/O Optimization

2013-06-11 Thread R.S.
W dniu 2013-06-11 19:20, John Eells pisze: R.S. wrote: snip BTW2: It's really strange why IFASMFDP have no option like SPANINC. Is it candidate for z/OS version 3.x in 2024? As Yogi Berra is rumored to have said (there are any number of attributed variations), Prediction is hard. Especially

Re: I/O Optimization

2013-06-10 Thread DASDBILL2
, June 5, 2013 9:42:32 PM Subject: Re: I/O Optimization Where does spanned come into play? Why does that make the difference? An acronym conflict! I hate IBM's tendency to use the same letters (in the same position) to mean different things! vbS -- Variable Blocked Spanned fbS -- Fixed

Re: I/O Optimization

2013-06-10 Thread Paul Gilmartin
On Mon, 10 Jun 2013 17:43:58 +, DASDBILL2 wrote: Spanned means that a single logical record might span multiple physical blocks, but the way it is implemented results in having all block sizes be the same, except for possibly the last one, which might be short. Is uniform lengths a

Re: I/O Optimization

2013-06-10 Thread Barry Merrill
, June 10, 2013 4:03 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: I/O Optimization On Mon, 10 Jun 2013 17:43:58 +, DASDBILL2 wrote: Spanned means that a single logical record might span multiple physical blocks, but the way it is implemented results in having all block sizes be the same

Re: I/O Optimization

2013-06-10 Thread Ted MacNEIL
@LISTSERV.UA.EDU Date: Mon, 10 Jun 2013 17:18:48 To: IBM-MAIN@LISTSERV.UA.EDU Reply-To: IBM Mainframe Discussion List IBM-MAIN@LISTSERV.UA.EDU Subject: Re: I/O Optimization VBS Blocksize in dumped SMF data with RECFM=VBS,LRECL=32760,BLKSIZE=0 does NOT produce interior same-sized blocks

Re: I/O Optimization

2013-06-10 Thread Ted MacNEIL
@LISTSERV.UA.EDU Reply-To: IBM Mainframe Discussion List IBM-MAIN@LISTSERV.UA.EDU Subject: Re: I/O Optimization �j���qԵ��U ���\j�4P��S0-�9�1e��$*���P�A zٶMQ� �Nj|�6�d�2�o���z%4wQb~0��@�� ���7� x[d.P���~S mU ��$:x�� z�(ƹ�/��\+�+vxY g�'3U6���y�~^�-��ɥ���!Q�0� �4�B�Ss

Re: I/O Optimization

2013-06-10 Thread Paul Gilmartin
On Mon, 10 Jun 2013 17:18:48 -0500, Barry Merrill wrote: VBS Blocksize in dumped SMF data with RECFM=VBS,LRECL=32760,BLKSIZE=0 does NOT produce interior same-sized blocks, as this small file from my DEV machine shows: LENGTHFREQUENCY PERCENT

Re: I/O Optimization

2013-06-06 Thread Elardus Engelbrecht
Paul Gilmartin wrote: It has been pointed out ... Who did that? ... that one of the great challenges to be dealt with in the 21st Century is that there are only 17,576 possible three letter acronyms. Solution: Enlarge your pool of 26 characters to include numbers [ten] and symbols [how many

Re: I/O Optimization

2013-06-06 Thread John Gilmore
There is no avoiding overloaded acronyms. The important They are fairly benign when their chief uses are in very different contexts. Here ACM is an acronym for Association for Computing Machinery. In Nashville it mostly means Academy of Country Music On 6/5/13, Shmuel Metz (Seymour J.)

Re: I/O Optimization

2013-06-06 Thread John Gilmore
My last post was mangled/truncated. The overloaded-acronyms problem is not chiefly a combinatorial one. It is better viewed as a variant of Feller's duplicate-birthdays problem John Gilmore, Ashland, MA 01721 - USA -- For

Re: I/O Optimization

2013-06-06 Thread R.S.
W dniu 2013-06-06 13:20, John Gilmore pisze: My last post was mangled/truncated. The overloaded-acronyms problem is not chiefly a combinatorial one. It is better viewed as a variant of Feller's duplicate-birthdays problem Anybody said USS? ;-) -- Radoslaw Skorupka Lodz, Poland -- Tre

Re: I/O Optimization

2013-06-06 Thread Shmuel Metz (Seymour J.)
In 1697813022-1370486555-cardhu_decombobulator_blackberry.rim.net-1466420072-@b12.c1.bise6.blackberry, on 06/06/2013 at 02:42 AM, Ted MacNEIL eamacn...@yahoo.ca said: ATM -- I thought it meant Automated Teller Machine. At the moment it means asynchronous transfer mode. -- Shmuel

Re: I/O Optimization

2013-06-05 Thread David Crayford
One would expect reads to be faster with ZFS because of the caching but what astonished me was the efficiency of writes. Writes to a ZFS file system were well over 10x faster than QSAM. I profiled the tests and QSAM spent most of it's time waiting for I/O to complete. BSAM was worse. Maybe if

Re: I/O Optimization

2013-06-05 Thread Don Poitras
In article 51af2080.6080...@gmail.com you wrote: One would expect reads to be faster with ZFS because of the caching but what astonished me was the efficiency of writes. Writes to a ZFS file system were well over 10x faster than QSAM. I profiled the tests and QSAM spent most of it's time

Re: I/O Optimization

2013-06-05 Thread Anne Lynn Wheeler
poit...@pobox.com (Don Poitras) writes: I don't know what IBM uses under the covers, but it's probably the same thing that SAS/C did. Calculate the CCHHR from the byte offset and use EXCP to read the block directly. No need to use POINT. FBS is guaranteed not to have any short blocks, so the

Re: I/O Optimization

2013-06-05 Thread David Crayford
BTW, is the reason FBS is fast for seeks because it makes it easier to calculate the track position for a POINT? I've never seen FBS used before. I don't know what IBM uses under the covers, but it's probably the same thing that SAS/C did. Calculate the CCHHR from the byte offset and use EXCP to

Re: I/O Optimization

2013-06-05 Thread Martin Packer
I thought s stood for standard rather than spanned. It's the s in VBS that's spanned. But I can't answer your question. :-( Cheers, Martin Martin Packer, zChampion, Principal Systems Investigator, Worldwide Banking Center of Excellence, IBM +44-7802-245-584 email: martin_pac...@uk.ibm.com

Re: I/O Optimization

2013-06-05 Thread Vernooij, CP - SPLXM
-Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of David Crayford Sent: Wednesday, June 05, 2013 15:19 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: I/O Optimization BTW, is the reason FBS is fast for seeks because it makes it easier

Re: I/O Optimization

2013-06-05 Thread Steve Comstock
On 6/5/2013 7:19 AM, David Crayford wrote: BTW, is the reason FBS is fast for seeks because it makes it easier to calculate the track position for a POINT? I've never seen FBS used before. I don't know what IBM uses under the covers, but it's probably the same thing that SAS/C did. Calculate

Re: I/O Optimization

2013-06-05 Thread Blaicher, Christopher Y.
Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of David Crayford Sent: Wednesday, June 05, 2013 8:19 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: I/O Optimization BTW, is the reason FBS is fast for seeks because it makes it easier to calculate the track

Re: I/O Optimization

2013-06-05 Thread J R
Standard for FBS, not spanned. Spanned is for VBS. = Date: Wed, 5 Jun 2013 21:19:09 +0800 From: dcrayf...@gmail.com Subject: Re: I/O Optimization To: IBM-MAIN@LISTSERV.UA.EDU BTW, is the reason FBS is fast for seeks because it makes it easier to calculate the track position

Re: I/O Optimization

2013-06-05 Thread John Gilmore
David Crayford wrote: begin extract Where does spanned come into play? Why does that make the difference? /end extract The short answer is that it does not come into play. For fixed-length records, S means 'standard', without short blocks. For variable-length records, S means 'spanned', a

Re: I/O Optimization

2013-06-05 Thread John Gilmore
I agree with Chris Blaicher, but I should put the matter more brutally. It has important uses, but FBS is for experienced, highly competent people and only for them.. John Gilmore, Ashland, MA 01721 - USA -- For IBM-MAIN

Re: I/O Optimization

2013-06-05 Thread Paul Gilmartin
On Wed, 5 Jun 2013 09:32:18 -0400, Blaicher, Christopher Y. wrote: Do not MOD data to a FBS file. A short block in an FBS file is a EOF condition. This means that if you luck out and fill the last buffer of a file, you can MOD to it, but 99 44/100 percent of the time it doesn't work and a

Re: I/O Optimization

2013-06-05 Thread Tom Marchant
On Wed, 5 Jun 2013 19:26:56 +0800, David Crayford wrote: I've never seen FBS used before. I see it regularly for dumps that are processed by IPCS. -- Tom Marchant -- For IBM-MAIN subscribe / signoff / archive access

Re: I/O Optimization

2013-06-05 Thread John McKown
As I understand it, the filesystem knows the last byte written. With an FBA device, the access method reads that block and starts writing after the last used byte within the block. It then rewrites the entire block. I don't know why BSAM could not do something similar with FBS files. Of course,

Re: I/O Optimization

2013-06-05 Thread John Gilmore
The overloaded 'S' is a gratuitous trap for novices, and QSAM could have been designed to write an initial dummy record of standard length when it allocated a DASD extent for a RECFM=FBS dataset. cliché We live in an imperfect world in which, in particular, not everyone is perfectly prescient.

Re: I/O Optimization

2013-06-05 Thread Gerhard Postpischil
On 6/5/2013 10:12 AM, Paul Gilmartin wrote: RHETORIC How, then, do OSes with native FBA filesystems manage to support appending to files?/RHETORIC Couldn't QSAM have been designed to to likewise? Either they fill every block, or they keep a pointer. When xSAM was designed, every byte was

Re: I/O Optimization

2013-06-05 Thread Don Poitras
-MAIN@LISTSERV.UA.EDU] On Behalf Of David Crayford Sent: Wednesday, June 05, 2013 8:19 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: I/O Optimization BTW, is the reason FBS is fast for seeks because it makes it easier to calculate the track position for a POINT? I've never seen FBS used

Re: I/O Optimization

2013-06-05 Thread Gerhard Postpischil
On 6/5/2013 9:55 AM, John Gilmore wrote: It has important uses, but FBS is for experienced, highly competent people and only for them.. Unfortunately you may replace FBS with any non-trivial computing concept, and still be correct. What's important is the work environment. With a couple of

Re: I/O Optimization

2013-06-05 Thread Paul Gilmartin
On Wed, 5 Jun 2013 12:49:26 -0400, Gerhard Postpischil wrote: It is still possible to add extra code to OPEN MOD to read the last block, and adjust the buffers, but there is no business case for it. Whenever direct addressing was convenient, I used BSAM or BDAM, and handled MOD and short buffers

Re: I/O Optimization

2013-06-05 Thread Ted MacNEIL
Where does spanned come into play? Why does that make the difference? An acronym conflict! I hate IBM's tendency to use the same letters (in the same position) to mean different things! vbS -- Variable Blocked Spanned fbS -- Fixed Blocked Standard (BTW: why Standard? What the

Re: I/O Optimization

2013-06-05 Thread Paul Gilmartin
On Thu, 6 Jun 2013 02:42:32 +, Ted MacNEIL wrote: An acronym conflict! It has been pointed out that one of the great challenges to be dealt with in the 21st Century is that there are only 17,576 possible three letter acronyms. -- gil

Re: I/O Optimization

2013-06-04 Thread Bernd Oppolzer
Two weeks ago, I told you about tests with our table system, which holds read-only data for our insurance math package. The data was stored in DB2 tables until now, and we tried to get better CPU usage etc. by moving the data to our file based table system, which we have in the Windows and Unix

Re: I/O Optimization

2013-06-04 Thread David Crayford
Did you try using a ZFS file system? On my system freads()/fwrites() to a unix file are significantly faster than QSAM/BSAM. On 5/06/2013 9:33 AM, Bernd Oppolzer wrote: Two weeks ago, I told you about tests with our table system, which holds read-only data for our insurance math package. The

Re: I/O Optimization

2013-06-04 Thread Bernd Oppolzer
Yes, I guess, that the freads on ZFS will be faster, but: - the customer wants the files to be classical z/OS data sets, and - because of the cache (least recently used algoritm), the I/O delays are of no real concern any more - the elapsed time is much better than in the DB2 case, anyway.

Re: I/O Optimization (was: B37 för FTINCL in ISPF ...)

2013-05-23 Thread Shmuel Metz (Seymour J.)
In 9433992692961071.wa.paulgboulderaim@listserv.ua.edu, on 05/22/2013 at 03:42 PM, Paul Gilmartin paulgboul...@aim.com said: On Wed, 22 May 2013 14:25:46 -0400, Shmuel Metz (Seymour J.) wrote: at 07:36 AM, Paul Gilmartin paulgboul...@aim.com said: SYSCALL for the UNIX files;

Re: I/O Optimization (was: B37 för FTINCL in ISPF ...)

2013-05-23 Thread Paul Gilmartin
On Thu, 23 May 2013 11:44:58 -0400, Shmuel Metz (Seymour J.) wrote: In your ADDRESS SYSCALL read, what length do you specify? In your ADDRESS TSO EXECIO, what do you specify for lines? Minimal, in order to let the ALLOCATE/OPEN/CLOSE overhead dominate. Using minimal lengths drives up the other

Re: I/O Optimization (was: B37 för FTINCL in ISPF ...)

2013-05-22 Thread Miklos Szigetvari
Hi Maybe some point: - A few years ago in the OMVS newsgroup somebody pointed out that the fseek ftell etc could decrease the performance very drastically - If you need a random access maybe the VSAM would be an option On 21.05.2013 16:24, Bernd Oppolzer wrote: We already have

Re: I/O Optimization (was: B37 för FTINCL in ISPF ...)

2013-05-22 Thread Shmuel Metz (Seymour J.)
In 1560706747382932.wa.paulgboulderaim@listserv.ua.edu, on 05/21/2013 at 10:35 AM, Paul Gilmartin paulgboul...@aim.com said: I should confess (or at least clarify) that my tests were Rexx-based Using what interface? -- Shmuel (Seymour J.) Metz, SysProg and JOAT Atid/2

Re: I/O Optimization (was: B37 för FTINCL in ISPF ...)

2013-05-22 Thread David Crayford
On 22/05/2013 4:11 PM, Miklos Szigetvari wrote: Hi Maybe some point: - A few years ago in the OMVS newsgroup somebody pointed out that the fseek ftell etc could decrease the performance very drastically - If you need a random access maybe the VSAM would be an option IIRC, that would be if

Re: I/O Optimization (was: B37 för FTINCL in ISPF ...)

2013-05-22 Thread Paul Gilmartin
On Wed, 22 May 2013 05:02:09 -0400, Shmuel Metz (Seymour J.) wrote: at 10:35 AM, Paul Gilmartin said: I should confess (or at least clarify) that my tests were Rexx-based Using what interface? It was a while back, though the code might still be around somewhere. From memory: SYSCALL for

Re: I/O Optimization (was: B37 för FTINCL in ISPF ...)

2013-05-22 Thread Shmuel Metz (Seymour J.)
In 6207625106804329.wa.paulgboulderaim@listserv.ua.edu, on 05/22/2013 at 07:36 AM, Paul Gilmartin paulgboul...@aim.com said: SYSCALL for the UNIX files; BPXWDYN/EXECIO for the legacy. In your ADDRESS SYSCALL read, what length do you specify? In your ADDRESS TSO EXECIO, what do you

Re: I/O Optimization (was: B37 för FTINCL in ISPF ...)

2013-05-22 Thread Paul Gilmartin
On Wed, 22 May 2013 14:25:46 -0400, Shmuel Metz (Seymour J.) wrote: at 07:36 AM, Paul Gilmartin paulgboul...@aim.com said: SYSCALL for the UNIX files; BPXWDYN/EXECIO for the legacy. In your ADDRESS SYSCALL read, what length do you specify? In your ADDRESS TSO EXECIO, what do you specify for

I/O Optimization (was: B37 för FTINCL in ISPF ...)

2013-05-21 Thread Paul Gilmartin
On Tue, 21 May 2013 09:55:51 +0200, Bernd Oppolzer wrote: Slightly drifting topic: We use fseek / ftell / fread to do the file I/O. The files are normal sequential OS files. Sounds like the worst of both worlds. Have you tried it with normal z/OS UNIX files? The kernel may do the caching

Re: I/O Optimization (was: B37 för FTINCL in ISPF ...)

2013-05-21 Thread John Gilmore
Paul Gilmartin wrote: begin extract I've found that for large numbers of small files z/OS UNIX files vastly outperform legacy data sets. The allocate/open/close/free overhead is brutal. /end extract My measurements confirm this, but when these small files are moved [as members] into a single

Re: I/O Optimization (was: B37 för FTINCL in ISPF ...)

2013-05-21 Thread Bernd Oppolzer
We already have improvements to cut the open/close/free overhead. The ca. 800 little tables are put into 8 large containers, which have a (sort of) directory at the beginning, so that there is only one open for the container. The open is done only once, and the containers stay open throughout the

Re: I/O Optimization

2013-05-21 Thread Bernd Oppolzer
BTW: for another customer (also z/OS based), we put all the data in a data space, using a 3rd party system that the other customer provided. No problem there. For Windows server, the application runs multi-threaded, and the cache data of the table system needs to be serialized; this is done

Re: I/O Optimization (was: B37 för FTINCL in ISPF ...)

2013-05-21 Thread Paul Gilmartin
On Tue, 21 May 2013 09:30:41 -0400, John Gilmore wrote: My measurements confirm this, but when these small files are moved [as members] into a single PDSE things change dramatically. The UNIX times are 1.47-3.07 times higher: To avoid spurious exactitude let us just say significantly higher.