Home > AS/400 Tips > iSeries administrator tips > How to use WRKSYSSTS to monitor your system -- Part I
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

How to use WRKSYSSTS to monitor your system -- Part I


Ron Turull
12.10.2003
Rating: -4.45- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Over the past few months, we've discussed how to use the Work with Active Jobs (WRKACTJOB) and the Work with Disk Status (WRKDSKSTS) commands to do basic performance monitoring and performance tuning of/for your system. In this and the next installment, we'll take this process one step further as we discuss how to use the Work with System Status (WRKSYSSTS) command to monitor your system's performance. This, in turn, will be followed-up with an in-depth look at how to use WRKSYSSTS command to do more specialized tuning.

Understanding pools and activity levels (the resources that affect performance)

Like any computer, your AS/400-iSeries has a limited amount of main storage (i.e., RAM) with which to work. As with all multi-user, multi-tasking computers, the RAM must be shared by all users and tasks. On the iSeries, the RAM is actually divided up into pools, which are then dedicated to certain types or categories of work.

The most important type of work on the iSeries is machine-related work (i.e., the programs that run the computer). This type of work is done in a specialized pool appropriately called the machine pool. The machine pool is always the first pool listed on the WRKSYSSTS display (i.e., pool 1). Tuning this pool properly is of the utmost importance.


Ron Turull

Pools can be shared -- like the machine pool -- which means jobs from multiple subsystems can share the pool (the machine pool is shared by all jobs without needing to specify it in the subsystem description). Pools can also be private to a particular subsystem, meaning only jobs running in that subsystem can use that pool.

Within each pool is a limited number of activity levels. Activity levels are job slots, or the maximum number of jobs that can be actively running at any given moment in that particular storage pool. (Actively running refers to a job that is actually executing, not -- for example -- an active job that is sitting idle waiting for user input.) You can think of activity levels as the car bays at an automotive repair shop; only one car can be in each bay at any given time being serviced. Cars waiting to be serviced must wait for an available bay.

Don't confuse active in an activity level with active in a subsystem. Using the automotive repair shop analogy again, when a job enters a subsystem, it does so through a job queue. This job queue is like the line (or queue) of cars outside the repair shop waiting to get "written-up" and dropped off. Once a car gets written-up and admitted into the repair shop it becomes active like a job becomes active when it gets off the job queue and into the subsystem. But like that car, even though the job is active in the subsystem (in this analogy, the subsystem is the repair shop premises), it may not be getting actively worked upon (i.e., the car may not be in a repair bay).

Three job states define job execution

There are three states that an active job (i.e., admitted to the repair shop premises, but not necessarily an actively running job) can be in:

  1. Active state. This is the state a job is in when it is actively running (i.e., in a repair bay being work upon). A job in the active state occupies an activity level. There is a sub-state of the active state called the short wait state that is used when a job is waiting for some resource, such as data from auxiliary storage, that usually becomes available in a short amount of time (i.e., 2 seconds or less). If, after 2 seconds, the resource is still not available, the job is put into the wait state. This is analogous to a car that is in a repair bay and waiting for a part; the mechanic is not working on the car -- instead, he is checking if they have the part needed in inventory.
  2. Wait state. A job is in the wait state because of one of three reasons. 1) It was put there after a short wait because the resource was not available within 2 seconds (called a short wait extended). This is analogous to the mechanic having to order the part, so he pulls the car out of the bay and pulls another in. 2) The job was put there immediately from the active state because it is waiting on a resource that usually takes longer that 2 second to become available (called a long wait). 3) The job is waiting for user input (called a key/think wait). Jobs in a wait state do not occupy an activity level.
  3. Ineligible state. This state actually consists of an ineligible queue. Jobs get put on this queue in one of two ways: if a job is ready to begin executing after a wait state, but there are no activity levels available, or an active job exceeds its time slice, and there are other jobs on the ineligible queue waiting for an activity level.

In the next installment, we'll discuss how to read, understand and interpret all the numbers on the Work with System Status screen and what implications they have in improving your system's performance.

-----------------------------------
About the author: Ron Turull is editor of Inside Version 5. He has more than 20 years' experience programming for and managing AS/400-iSeries systems.

==================================
MORE INFORMATION
==================================

  • Three basic system tools to help you tune your iSeries
    The best time to use the performance management tools offered on the iSeries is before crisis erupts. More often than not, however, performance management is used only in crisis situations, when the system grinds to a halt and you need to determine the cause and remedy. That means these tools are often left idle during the "normal" times when they could instead be used to create a more efficient system.
  • How to track response times with the WRKACTJOB tool
    To obtain maximum productivity from computer users, it is essential to limit the computer's interactive response time to 1 second or less. Using the Work with Active Jobs screen you can see detailed performance data for each job listed.
  • Old recommendations for WRKACTJOB no longer true
    In the Oct. 1 Administrator Tip there was an article on the proper way to end WRKACTJOB. Vernon Hamberg says it is in error, as WRKACTJOB has been changed since this information was correct. What's the correct way? Click over and find out.


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Implementation
Getting modules to adopt authorities from the main program
iSeries i5/OS: Top 10 Q&As
iSeries i5/OS: Top 10 Q&As
Using the SPLF0200 format in QUSLSPL API
New option within the WRKSYSACT command
Identify files used in all queries
Security Tools can help manage your system security
Client Access Express password cache
Check constraint allows database admins to sleep a bit better at night
See the users with *change or *all authority
Implementation Research

Integrated File System (IFS)
How to view source files in the library
User being locked out by Windows share on iSeries
Incorrect CCSID on FTP connection from AS/400 to Windows
Trouble accessing IFS path from Win2k3 server
How to use an API for adding users to EIM SSO implemenation
Transfer files from one environment to another without closing all other AS/400 sessions
Securing the integrated file system on IBM System i
Generically send a text file from the IFS via FTP
Setting ILE and C+++ compilers to runtime
Use a virtual directory to move a .bmp file from the IFS to a remote server to run a software package

Systems Management
Can you trust all those trigger programs?
Are your backups complete?
Controlling remote command processing
Watch your profiles
Avoid locking issues
Send message to users at a remote site
Security journal receiver management
Top 10 backup commands
Tracking critical file access in real time
Create an iSeries Access image and update it with the latest Service Pack

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
AS/400  (Search400.com)
i5/OS  (Search400.com)
iSeries  (Search400.com)
OS/400  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts