+ All Categories
Home > Documents > Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system...

Tips and Tricks to improve system performance and save ... · Tips and Tricks to improve system...

Date post: 23-May-2018
Category:
Upload: hoangkiet
View: 229 times
Download: 1 times
Share this document with a friend
88
Tips and Tricks to improve system performance and save disk space. Pete Massiello iTech Solutions [email protected] 203-744-7854 iTech Solutions because IBM i (AS/400s) don’t come with System Administrators 0 itechsol.com
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

Tips and Tricks to improve system performance and save disk space.

Pete Massiello

iTech Solutions

[email protected]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Page 88: 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

Your Turn!

How to contact me:

Pete Massiello

Email: [email protected]

Twitter: PeteM59

itechsol.com


Recommended