IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

VSAM Performance Tuning..


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Hariharan Ramachandran

New User


Joined: 30 Nov 2010
Posts: 28
Location: Chennai, Tamilnadu,INDIA

PostPosted: Sun Dec 05, 2010 8:13 pm
Reply with quote

Hi

I am trying to increase the performance of an VSAM KSDS dataset(Sequential processing). Currently the dataset does not support Extended Addressability. Now my question is..

1. Shall i use AMP=BUFNI,BUFND parmeter in the jcl or shall i use SMB technique(Ill have to make the dataset EA and then use AMP) ??

2. What are the advantages and disadvantages of the above two technique??

3. If anybody has experienced in using the above techniques please suggest me the best one ???

Note - I have already referred the REDBOOK Demystified.

Let me know if more informations are required.

Thanks in advance

#ari
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sun Dec 05, 2010 8:26 pm
Reply with quote

double post ?

ibmmainframes.com/viewtopic.php?t=52505

Once i had a utility to compute BUFNI, BUFND values. A pity i lost that.
For sequential access you define a larger BUFND than BUFNI, for direct
access the other way around.
You can always try the trial and error routine.

Maybe the next link will help :

www.mainstar.com/pdf/000-0513_CAT_NSR-Buffering.pdf

or this one :

www2.sas.com/proceedings/sugi24/Sysarch/p302-24.pdf
Back to top
View user's profile Send private message
Hariharan Ramachandran

New User


Joined: 30 Nov 2010
Posts: 28
Location: Chennai, Tamilnadu,INDIA

PostPosted: Sun Dec 05, 2010 8:53 pm
Reply with quote

Thanks peter, i have already gone thru the PDF's now let me make my requirement much clear.

I have a dataset DATASET1 which is not in extended format. This is a master dataset and its been used at various PROC's. Depending on the cobol code for that particular step its access mode may be Direct or Sequential.

Lets consider my cobol has sequential access to DATASET1 which produces huge number of EXCP count and more elapsed time. If i wana increase its performance then which solution shall i go for ??

Soln1 - Ill have to define the DATASET1 as Extended format and use the SMB technique to increase performance

Soln2 - I could code the AMP=BUFNI,BUFND in the ddame of the DATASET1 to increase performance.

now please help me in deciding which solution i shall go for?? Which would be best and cost effective?? will the preferred solution will be acceptable??

If soln1 is best den how does it advantage over soln2 and vice versa ??

Thanks,
#ari
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Mon Dec 06, 2010 2:20 pm
Reply with quote

To reduce EXCP's then increasing the CISIZE and AMP='BUFNO=xx' values would help, regardless of whether it is Extend Format or not. The CISISZE should still be calculated to fit the MAXLRECL as evenly as possible, and FREESPACE (if any) should also be calculated to be sufficient to contain at least one maximum sized record otherwise it can end up as dead space.

You should really be reading the IBM's VSAM Demystified or Ron Fergusons VSAM File Structures to understand VSAM properly.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Dec 06, 2010 3:26 pm
Reply with quote

Pete, The addition of buffers can also be one of the worst performance degraders if the file is access as skip sequential.

At the switch of access method all buffers are cleared and reloaded, so the more buffers you have the more resource it uses just to perform the refreshes.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Dec 06, 2010 4:34 pm
Reply with quote

Expat,

with all respect i dont agree with that. CICS uses a lot of skip sequential
access. Beside that why doing skip sequential mixed with random and or totaly sequental? Skip sequential slows down when records are far apart in a large dataset.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Dec 06, 2010 4:41 pm
Reply with quote

Peter, I agree, so was merely alerting the OP to the possible effects of making changes without fully understanding the consequences.

So give me a break mate, this is the first technical response I've given in ages, rather than the RTFM line of replies for the threads that deserved them. It was actually a little pleasing to be able to reply like that. Go on, go on, ruin my day, moan moan whinge whine, it's all you fault icon_lol.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Dec 06, 2010 4:47 pm
Reply with quote

Expat,

i started with "with all respect", expecting you to be a little slow after all
that RTFM stuff.
But im sure you will be recuperated within no time.

Still with a lot of regards,

yours truly.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Dec 06, 2010 5:06 pm
Reply with quote

Peter,

Just had a crap weekend, and today so far wasn't at all any better.

Get me a job over there and I'll buy you a beer or five icon_biggrin.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Dec 06, 2010 5:19 pm
Reply with quote

Expat,

im really sorry your weekend was rotten. If i could i would have gotten you a job, but do you expect it to be better here?

But to have some beers doesnt need a reason, at least for me.

But (try to) cheer up.

Cheers,

Peter
Back to top
View user's profile Send private message
Hariharan Ramachandran

New User


Joined: 30 Nov 2010
Posts: 28
Location: Chennai, Tamilnadu,INDIA

PostPosted: Tue Dec 07, 2010 9:22 pm
Reply with quote

Thanks icon_wink.gif
Back to top
View user's profile Send private message
Hariharan Ramachandran

New User


Joined: 30 Nov 2010
Posts: 28
Location: Chennai, Tamilnadu,INDIA

PostPosted: Fri Dec 10, 2010 11:58 am
Reply with quote

expat wrote:
Peter, I agree, so was merely alerting the OP to the possible effects of making changes without fully understanding the consequences.


Expat, The questions was asked knowing the consequences and was trying to get an infromation from people who may have experienced the worst case scenarios.

Regards,
#ari
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts exploiting Z16 performance PL/I & Assembler 2
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top