tips and tricks to improve system performance and save ... · tips and tricks to improve system...
TRANSCRIPT
![Page 1: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/1.jpg)
Tips and Tricks to improve system performance and save disk space.
Pete Massiello
iTech Solutions
203-744-7854
iTech Solutions because IBM i (AS/400s) don’t come with System Administrators
0 itechsol.com
![Page 2: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/2.jpg)
1
In this session
In this presentation we will discuss the ways to clean up our disk space, and what you can do to improve performance. While the IBM i may manage itself in some areas, there are many optimization and cleanup techniques that are part of IBM i, yet most shops don’t spend the time and effort to implement them. We will learn the “tricks” that can help you reduce your disk I/O, reduce disk utilization, reduce memory faulting, and improve system performance.
itechsol.com
![Page 3: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/3.jpg)
2
What We’ll Cover …
• Performance Terms and Problems
• Physical Files
• Logical Files
• Programs
• Other Objects
• Performance and Expert Cache
• Basic Cleanup and Why
• Save Files, Reclaim Storage, and Spool Files
• DISKTASKs
• What to do Tomorrow
• Wrap-up
itechsol.com
![Page 4: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/4.jpg)
3
What We’ll Cover …
• Performance Terms and Problems
• Physical Files
• Logical Files
• Programs
• Other Objects
• Performance and Expert Cache
• Basic Cleanup and Why
• Save Files, Reclaim Storage, and Spool Files
• DISKTASKs
• What to do Tomorrow
• Wrap-up
itechsol.com
![Page 5: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/5.jpg)
4
Timeslice Optimization
Mirroring
Activity Levels
Batch Throughput
Management
Performance tools
AutomaticPerformance
Adjustment
Is This Where to Start Performance Tuning?
itechsol.com
![Page 6: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/6.jpg)
5
Downforce
Turbo Pressure
Tire Selection
?!
Damper settings
8286IBM
Identifying the Problem
itechsol.com
![Page 7: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/7.jpg)
6
Identifying the Problem (cont.)
8286IBM
What Performance can you expect?
itechsol.com
![Page 8: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/8.jpg)
7
Why We Should Be Cleaning
Hidden costs.
“Having a lot of storage is like having children. It can cost you almost nothing to have a child, but the upkeep costs a lot. In fact, Aberdeen’s research and other people’s research show that there can be an order of magnitude difference between the cost to acquire the storage and the cost to maintain it.”
Dan TannerAnalyst with Aberdeen Group
itechsol.com
![Page 9: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/9.jpg)
8
Removing Excess Baggage
Optimization
Tuning
What We Will Discuss
itechsol.com
![Page 10: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/10.jpg)
9
What We’ll Cover …
• Performance Terms and Problems
• Physical Files
• Logical Files
• Programs
• Other Objects
• Performance and Expert Cache
• Basic Cleanup and Why
• Save Files, Reclaim Storage, and Spool Files
• DISKTASKs
• What to do Tomorrow
• Wrap-up
itechsol.com
![Page 11: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/11.jpg)
10
Generate List of Files
itechsol.com
![Page 12: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/12.jpg)
11
Create Query
• Select input file as yourlib/DSPFDPF
• Select these fields: MBLIB, MBFILE, MBNAME, MBNRCD, MBNDTR, MBDSZ2
• Sort by MBDSZ2 Descending
• Select records by: MBNDTR GT 0 and MBFILE NLIKE 'QADB%'
itechsol.com
![Page 13: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/13.jpg)
12
Use SQL on SysTableStat
itechsol.com
![Page 14: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/14.jpg)
13
List to Work On
itechsol.com
![Page 15: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/15.jpg)
14
Physical Files
• Size
• Reorganize (normal and while active*)
• Blocking
• Resequence
• Purge & Archive
• 3rd Party Software
itechsol.com
![Page 16: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/16.jpg)
15
All Records are stored in pages. Think of a page as a chess
board containing:
Deleted records
Active records
RGZPFM
itechsol.com
![Page 17: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/17.jpg)
16
RGZPFM (cont.)
itechsol.com
![Page 18: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/18.jpg)
17
The Old Way
itechsol.com
![Page 19: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/19.jpg)
18
Reorganize While Active
Requires file to be journaled.
And, let’s discuss the LOCK
Parameter.
itechsol.com
![Page 20: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/20.jpg)
19
Locked, Others Can Read
itechsol.com
![Page 21: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/21.jpg)
20
Use SQL on SysTableStat – Which files are you using
itechsol.com
![Page 22: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/22.jpg)
21
Use SQL on SysTableStat
itechsol.com
![Page 23: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/23.jpg)
22
Physical Files
• Size
• Reorganize
• Blocking
• Resequence
• Purge & Archive
• 3rd Party Software
itechsol.com
![Page 24: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/24.jpg)
23
What We’ll Cover …
• Performance Terms and Problems
• Physical Files
• Logical Files
• Programs
• Other Objects
• Performance and Expert Cache
• Basic Cleanup and Why
• Save Files, Reclaim Storage, and Spool Files
• DISKTASKs
• What to do Tomorrow
• Wrap-up
itechsol.com
![Page 25: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/25.jpg)
24
Logical Files
• Size
• Sharing
• Performance
• Maintenance Level
• Onetime Fixes
• 3rd Party Software
itechsol.com
![Page 26: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/26.jpg)
25
Sharing Access Paths
itechsol.com
![Page 27: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/27.jpg)
26
Sharing Example
• Sales Physical File
• Logical File A• Keyed by Country
• Logical File B• Key by Country, State
itechsol.com
![Page 28: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/28.jpg)
27
Logical Files
• Size
• Sharing
• Performance
• Maintenance Level
• Onetime Fixes
• 3rd Party Software
itechsol.com
![Page 29: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/29.jpg)
28
What We’ll Cover …
• Performance Terms and Problems
• Physical Files
• Logical Files
• Programs
• Other Objects
• Performance and Expert Cache
• Basic Cleanup and Why
• Save Files, Reclaim Storage, and Spool Files
• DISKTASKs
• What to do Tomorrow
• Wrap-up
itechsol.com
![Page 30: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/30.jpg)
29
Programs
• Symbol Table
• Starting in V5R1 Observability & Creation Data
• V6R1 Migrations• Analyze Object Convert - ANZOBJCVN
• Types of Compression
• Optimization
• Usage
itechsol.com
![Page 31: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/31.jpg)
30
What We’ll Cover …
• Performance Terms and Problems
• Physical Files
• Logical Files
• Programs
• Other Objects
• Performance and Expert Cache
• Basic Cleanup and Why
• Save Files, Reclaim Storage, and Spool Files
• DISKTASKs
• What to do Tomorrow
• Wrap-up
itechsol.com
![Page 32: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/32.jpg)
31
Removing Excess Baggage — Other Objects
• Device Files
• Menus
• Panel Groups
• Source Files
• Spool Files
itechsol.com
![Page 33: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/33.jpg)
32
Removing Excess Baggage — Other Ways
• Temporary & Spool Storage – RCLTMPSTG & RCLSPLSTG
• IFS
• Reclaim Storage – RCLSTG *ALL | *DBXREF | *DIR
• Resizing of Objects
• History Logs, Spool Files, Journal Rcvrs
itechsol.com
![Page 34: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/34.jpg)
33
What We’ll Cover …
• Performance Terms and Problems
• Physical Files
• Logical Files
• Programs
• Other Objects
• Performance and Expert Cache
• Basic Cleanup and Why
• Save Files, Reclaim Storage, and Spool Files
• DISKTASKs
• What to do Tomorrow
• Wrap-up
itechsol.com
![Page 35: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/35.jpg)
34
Performance — Expert Cache
• Part of IBM i
• Look ahead cache
• Used only with Shared Pools
• *CALC Paging Option
• CHGSBSD to use Shared Pools
• WRKSHRPOOL
itechsol.com
![Page 36: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/36.jpg)
35
WRKACTJOB
How to Activate
itechsol.com
![Page 37: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/37.jpg)
36
WRKSHRPOOL (cont.) Minimum Sizes are
not correct for your
machine
itechsol.com
![Page 38: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/38.jpg)
37
Performance
• QPFRADJ• 0 No Adjustment
• 1 Adjustment at IPL
• 2 Adjustment at IPL & Automatically
• 3 Automatically
itechsol.com
![Page 39: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/39.jpg)
38
General Performance
• Queries
• Indexes
• Backups
• Balanced Disks – STRASPBAL
itechsol.com
![Page 40: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/40.jpg)
39
What We’ll Cover …
• Performance Terms and Problems
• Physical Files
• Logical Files
• Programs
• Other Objects
• Performance and Expert Cache
• Basic Cleanup and Why
• Save Files, Reclaim Storage, and Spool Files
• DISKTASKs
• What to do Tomorrow
• Wrap-up
itechsol.com
![Page 41: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/41.jpg)
40
Why We Should Be Cleaning
• Backups
• Performance
• Recovery
itechsol.com
![Page 42: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/42.jpg)
41
Automation
itechsol.com
![Page 43: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/43.jpg)
42
Automation (cont.)
itechsol.com
![Page 44: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/44.jpg)
43
Cleanup
• User MSGQs when not signed on
• QSYSOPR under System & WS
• Only QEZDEBUG & QEZJOBLOG
• System Journals (See next slide for names)
• History Log, Problem Logs, some temporary PTF objects, and Alert DB
itechsol.com
![Page 45: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/45.jpg)
44
System Journals Cleaned
• QAOSDIAJRN Journal for DIA files.
• QDSNX Journal for DSNX logs.
• QSNADS Journal for SNADS files.
• QSNMP Journal for SNMP.
• QSXJRN Journal for problem databases.
• QLYJRN Journal for Application Development Manager transactions.
• QPFRADJ Journal for performance adjustment data.
• QX400 Journal for OSI Message Services.
• QCQJMJRN Journal for Managed System Services.
• QO1JRN Journal for Application Enabler OFC files.
• ADJRNLO Journal for application program driver files.
• QLYPRJLOG Journal for project logs.
• QMAJRN Journal for order assistance requests.
• QZMF Journal for mail server framework log.
• QVPN Journal for Virtual Private Networking.
• QZCAJRN Journal for the SNMP database.
• QACGJRN Journal for job accounting data.
itechsol.com
![Page 46: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/46.jpg)
45
Verify Cleanup Is Cleaning
itechsol.com
![Page 47: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/47.jpg)
46
PTFs
itechsol.com
![Page 48: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/48.jpg)
47
Permanently Apply PTFs
When a PTF is applied, it completely replaces the affected objects in the product. PTFs can be applied temporarily or permanently. If they are applied temporarily, the replaced objects are saved by the system and can later be restored to the product by the Remove Program Temporary Fix (RMVPTF) command. If PTFs are applied permanently, the replaced objects are deleted from the system.
itechsol.com
![Page 49: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/49.jpg)
48
PTFs You Have Downloaded
• Have cover letters stored as members in QGPL/QAPZCOVER
• Save Files in QGPL• QMF*
• QSI*
• QSF*
• Use DLTPTF
itechsol.com
![Page 50: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/50.jpg)
49
DLTPTF
itechsol.com
![Page 51: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/51.jpg)
Licensed Programs You Are NOT Using
Careful
Never delete the library, always use DLTLICPGM
itechsol.com
![Page 52: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/52.jpg)
51
Remove Old Main Storage Dumps
• STRSST & signon
• Select option 1. Start a Service Tool
• Select option 6. Main Storage Dump Manager
• Select option 2. Work with copies of MSD
itechsol.com
![Page 53: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/53.jpg)
52
Old Performance Data
itechsol.com
![Page 54: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/54.jpg)
53
What We’ll Cover …
• Performance Terms and Problems
• Physical Files
• Logical Files
• Programs
• Other Objects
• Performance and Expert Cache
• Basic Cleanup and Why
• Save Files, Reclaim Storage, and Spool Files
• DISKTASKs
• What to do Tomorrow
• Wrap-up
itechsol.com
![Page 55: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/55.jpg)
54
Save Files
• Can be a big payoff, BUT …
• You need to decide which ones to keep and which ones to delete.
• Find out Date last used, Date when created, and by what UserID.
• Don’t delete any of them in Q libraries.
• DSPSAVF to help you decide.
• Backup to Special Tape before delete.
itechsol.com
![Page 56: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/56.jpg)
55
Generate List of Files on the System
itechsol.com
![Page 57: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/57.jpg)
56
Create Query
• Select input file as yourlib/DSPSAVFS
• Select these fields: ODLBNM, ODOBNM, ODOBSZ, ODOBOW, ODLDAT , ODUDAT
• Sort by ODOBSZ Descending
• Select records by: ODOBAT EQ 'SAVF'
itechsol.com
![Page 58: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/58.jpg)
57
List of Save Files
itechsol.com
![Page 59: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/59.jpg)
58
Libraries
• Programmers who have left
• Old Libraries
• Backup Libraries
• WRKLIB *ALL
itechsol.com
![Page 60: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/60.jpg)
59
Old Journal Receivers
• DSPOBJD OBJ(*ALL/*ALL) OBJTYPE(*JRNRCV)
• Ones people forgot about and they just grow.
• Sequence number jump.
itechsol.com
![Page 61: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/61.jpg)
Reclaim Storage
itechsol.com
![Page 62: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/62.jpg)
61
More on Reclaims
• After RCLSTG look in library QRCL and directory QReclaim
• Subcomponents of RCLSTG• RCLLNK OBJ(/)
• RCLDBXREF (*CHECK or *FIX)
• RCLOBJOWN USRPRF( )
• RCLDLO DLO(*ALL)
• RCLLIB LIB( )
• RCLSPLSTG DAYS(1)
• RCLTMPSTG LIB(*ALL) DAYS(1)
itechsol.com
![Page 63: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/63.jpg)
62
Delete Expired Spool Files
Since V5R4
itechsol.com
![Page 64: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/64.jpg)
63
Set Spool Files to Expire
itechsol.com
![Page 65: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/65.jpg)
64
What We’ll Cover …
• Performance Terms and Problems
• Physical Files
• Logical Files
• Programs
• Other Objects
• Performance and Expert Cache
• Basic Cleanup and Why
• Save Files, Reclaim Storage, and Spool Files
• DISKTASKs
• What to do Tomorrow
• Wrap-up
itechsol.com
![Page 66: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/66.jpg)
65
Collect Disk Information
• You can run RTVDSKINF to Collect Disk Information, or you can use the DISKTASKs Menu.
• You will want to run the RTVDSKINF command in Batch.
• Using the DISKTASKs menu, you can select option 1 to automate the collection of the RTVDSKINF information on a selected interval (Daily, Weekly, or monthly).
itechsol.com
![Page 67: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/67.jpg)
66
GO DISKTASKS
itechsol.com
![Page 68: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/68.jpg)
67
Collect Disk Information
itechsol.com
![Page 69: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/69.jpg)
68
Print Disk Information
itechsol.com
![Page 70: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/70.jpg)
69
System Level
itechsol.com
![Page 71: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/71.jpg)
Library Level
itechsol.com
![Page 72: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/72.jpg)
71
Objects in QSYS Larger Than 1 MB
itechsol.com
![Page 73: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/73.jpg)
72
Report on QSYS
itechsol.com
![Page 74: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/74.jpg)
73
All Files Over 100 MB
itechsol.com
![Page 75: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/75.jpg)
74
All Files Over 100 MB (cont.)
itechsol.com
![Page 76: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/76.jpg)
75
Folders Not the IFS
itechsol.com
![Page 77: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/77.jpg)
76
Get the Directory Information
• The Retrieve Directory Information (RTVDIRINF) command is used to collect attributes for directories and files in the Integrated File System. The collected information is stored in database files that are named using the information file prefix specified by the INFFILEPFX parameter. The files are created in the library specified by the INFLIB parameter, defaults to QUSRSYS.
• You will want to run this in batch.
• You can run the Print Directory Information (PRTDIRINF) command to print reports using the retrieved directory information.
itechsol.com
![Page 78: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/78.jpg)
77
Get the Directory Information (cont.)
itechsol.com
![Page 79: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/79.jpg)
78
Print Directory Information
itechsol.com
![Page 80: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/80.jpg)
79
Directory: Size, Number, Subdirectories
itechsol.com
![Page 81: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/81.jpg)
80
What We’ll Cover …
• Performance Terms and Problems
• Physical Files
• Logical Files
• Programs
• Other Objects
• Performance and Expert Cache
• Basic Cleanup and Why
• Save Files, Reclaim Storage, and Spool Files
• DISKTASKs
• What to do Tomorrow
• Wrap-up
itechsol.com
![Page 82: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/82.jpg)
81
Don’t Let Fear, Uncertainty, and Doubt (FUD) Stop You!
You can't do it safely?
What does IBM think?
What will my BP think?
Recovery implications?What are the alternatives?
It can't be true!
itechsol.com
![Page 83: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/83.jpg)
82
Programs
Physical Files
Logical Files
Optimization – CHGPGM
Symbol Tables - CPROBJCompression *ALL | *OBJ
Reorganize - RGZPFMResequence - keyfile(name)Purge, Purge, Purge
Access Path SharingAccess Path Maintenance -
CHGLF
Where to Start
itechsol.com
![Page 84: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/84.jpg)
83
Objects
Object
Types
Compress - CPROBJ
Delete
ClearARCHIVE!!!
LogsJournalsQueuesOversized Objects
Spool MembersReclaim StorageOnline Education
Where to Start (cont.)
itechsol.com
![Page 85: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/85.jpg)
84
What We’ll Cover …
• Performance Terms and Problems
• Physical Files
• Logical Files
• Programs
• Other Objects
• Performance and Expert Cache
• Basic Cleanup and Why
• Save Files, Reclaim Storage, and Spool Files
• DISKTASKs
• What to do Tomorrow
• Wrap-up
itechsol.com
![Page 86: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/86.jpg)
85
7 Key Points to Take Home
• Generate a list of files on your system using the DSPFD on slide 10, and then select the largest files with deleted records as the SQL/Query criteria on slide 11. You have your files with the most deleted records, now we know which files need to be reorganized.
• When reorganizing files, don’t forget that the ALWCANCEL(*YES) provides the reorganize while active function.
• Figure out which logical files can be shared by examining the keys of the logical files and creating the superset keys first and the subset keys last.
itechsol.com
![Page 87: Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions pmassiello@itechsol.com](https://reader030.vdocuments.site/reader030/viewer/2022021507/5b0486947f8b9a89208dced3/html5/thumbnails/87.jpg)
7 Key Points to Take Home (cont.)
• Use Expert Cache to have the next records in memory before you use them, by changing the paging option of the memory pool to *CALC.
• Save files are always big disk hogs; use the procedures on slides 55 and 56 to identify your culprits.
• Automate the collection of object information by setting up weekly disk collections.
• Run Reclaim Storage every 6 – 12 months to find damaged objects, identify offend objects, and reorganize the QADB* files in QSYS.
itechsol.com