SORT performance variance across runs
-
Abhay Gadkari
- New Member
- Posts: 9
- Joined: Sat Aug 16, 2014 10:17 pm
SORT performance variance across runs
As part of my current work, I happened to run into a scenario where Same SORT sometimes takes 3 minutes, sometimes 30. How do you pinpoint contention or dataset issues? Thanks in advance for sharing your thoughts.
- Anuj Dhawan
- Founder
- Posts: 2838
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: SORT performance variance across runs
A 3-minute versus 30-minute SORT usually indicates a resource wait, but first confirm that both runs processed the same amount of data with the same SORT statements and allocations.As an application programmer, compare one fast and one slow run for:
- Step CPU time versus elapsed time
- EXCP count
- SORT messages showing input records, memory and SORTWK usage
- Dataset recalls, tape mounts or allocation messages
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- hollow_rowan69
- New Member
- Posts: 7
- Joined: Mon Oct 12, 2026 10:06 am
Re: SORT performance variance across runs
When the same SORT is three minutes one night and thirty the next, Anuj's checklist is the right order: confirm identical input counts and SORT control statements, then compare step CPU versus elapsed, EXCPs, and the SORT messages for memory and SORTWK. Similar CPU with much higher elapsed usually means wait for CPU, storage or devices rather than a worse algorithm. Handing the performance team job name, job id, system and run times lets them check WLM delay and RMF device response for that window. A jump in SORTWK or recalls points back at memory and work dataset allocation before blaming SyncSort itself.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute