IBM s/390 manual Importance of Linux swapping, Cpu

Page 51

bo: blocks send to a block device (blocks/s)

￿System

in: the number of interrupts per second (including clock interrupts)

cs: number of context switches per second

￿CPU

us: user time (percent of CPU time)

sy: system time (percent of CPU time)

id: idle time (percent of CPU time)

We are particularly interested in swap (paging) rates. Notice that the unit of measurement is kilobytes per second.

The Linux swapping rate is meaningful (for our discussion) only in a steady-state condition with a typical S/390 workload. Linux swapping while booting, or while starting FLEX-ES, is not relevant. Unusual S/390 work, such as CLPA processing or very unusual disk access patterns (affecting disk caches) might temporarily drive Linux into swapping. This is not good, but can probably be tolerated for short periods.

5.4.2 Importance of Linux swapping

Why is the Linux swapping rate so important? A reasonable analogy is CICS paging in an OS/390 system. A system with many TSO users might have sustained paging rates of hundreds of pages per second (on a larger S/390) with no ill effects, but CICS on the same system would require a paging rate close to zero. The problem is that the whole address space (CICS, for example) is placed in wait when a page fault occurs. Placing CICS4 in wait causes all the CICS users serviced by that address space to wait while the page fault is resolved. A page fault in a TSO user address space causes only that one user to wait.

FLEX-ES operation is close to the CICS analogy. A Linux page fault in a key FLEX-ES process may cause the whole emulated S/390 instance to wait until the Linux page fault is resolved.

Remember that a page fault in a FLEX-ES S/390 instance has a very different effect than a page fault in Linux. For one thing, the S/390 page fault is seen only by the FLEX-ES emulation program--it is an emulated page fault. It is handled, by OS/390, as a S/390 page fault. If it occurs in a TSO user address space or a batch address space, it affects only that address space. If it occurs in a CICS address space, it affects all the users of that CICS. This is business as usual for OS/390.

The key message is that you should adjust your FLEX-ES system parameters (emulated S/390 memory, disk caches, instruction cache) to avoid Linux swapping. Defining a smaller emulated S/390 memory size may increase OS/390 paging. Of course, it would be nice to avoid any paging, but OS/390 paging is much less damaging than Linux swapping and your tradeoffs should always be in this direction. You can juggle disk cache versus instruction cache versus S/390 memory allocations for your best performance. Simply be careful not to push Linux into swapping.5

4Modern CICS systems ameliorate this situation in various ways; the description here should be regarded as conceptual.

5Again, we stress that “Linux paging” refers to steady-state operation after S/390 emulation is started. Linux booting or FLEX-ES startup may cause Linux paging and we are not concerned with this temporary effect.

Chapter 5. Additional Topics

41

Image 51
Contents Bill Ogden ThinkPad Enabled for S/390Page International Technical Support Organization First Edition October Contents Shutting down Index Vi S/390 PID ThinkPad Enabled for S/390 Author Special noticeComments welcome IBM trademarksIntroduction ThinkPad/EFS systems Purpose of this redbookFLEX-ES Positioning with other small S/390s LinuxThinkPad/EFS hardware used Terminology Disk planning System and Linux installationDifferences Mount Point Device Requested Actual Type Purpose Linux installationThinkPad Partition Manually Partition12.17.150 Device Partition Type Default Boot12.17.210 255.255.255.0Gnome # df -h Installation notesMonitor Setup IBM 9513 T55A TFT No clock chip 24 bit Select Start X automaticallyEtc/xinetd.d # vi telnet # ps -ef grep xinetd# kill -s USR1 pidnumber PID number for xinetd 14 S/390 PID ThinkPad Enabled for S/390 FLEX-ES and OS/390 installation Brief introduction FLEX-ESPC Processor in ThinkPad Page Installation Installing the FLEX-ES license key # mkdir /s391 OS/390 AD systemsNext steps AD systemsBasic CD-ROM formats 2 OS/390 on CD-ROMFLEX-ES formats 3 OS/390 device configurationMount /dev/cdrom /mnt/cdrom Installation tasksUnzipping and installing Awsckd CD-ROM files An unzip programFile ownership Minor problemsFiles unzip in wrong order Volume in two separate zip filesFLEX-ES Operation Comments FLEX-ES system and resource definitions$ resadm -r Building a shell script$ cd /usr/flexes/rundir # resadm -s R10A.rescf$ sh shos Flexes ipl a80 0a82cs IPL OS/390 Terminal Solicitor=stor A80,8 Operation and useUser terminal connection 11.42.47Rmf Linux TN3270Iodf requirements System performance monitors5 TCP/IP for OS/390 # exit Shutting down# resadm -T # resadm -k36 S/390 PID ThinkPad Enabled for S/390 Additional Topics Basic debugging Operating Systems Messages console SecurityServer memory Vmstat command CPU Importance of Linux swappingUsing a second Linux hard disk Ultrabay# cat /proc/partitions Second disk planning Disk layout AD system Partition Mount Size UseDevice Volser Addr Use Alternative method FLEX-ES FakeTape on OS/390222222 560Multi-system setup Function Keys Used X3270 client$ x3270 -model 3 -keymap pc -port tn3270 localhost $ x3270 -model 3 -keymap pc -port tn3270 localhostt91f# cd /usr/lib/X11/app-defaults # cp X3270 X3270old Remote resources# vi System B Disk cachesWrites Cache Hits FSI Channel Adapters Tuning cachesizeBackup and restore considerations Scsi adapter for the ThinkPadDisk fragmentation $ tar -cvzf /holding/OS39RA.tarz /s390/OS39RA Using tar to back up S/390 volumes$ cd /usr/flexes/rundir $ sh buOS39RAc Using tar and ftpCD-RW drive 16 S/390 identificationRAS discussion Display PSW and registersLinux windows Verify ckd diskThinkPad power control Installing FLEX-ES upgradesCommon commands Useful Linux commandsText editors Multiple consoles, sessions, screens62 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 64 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 66 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 68 S/390 PID ThinkPad Enabled for S/390 Basic definitions for a single HDD Appendix A. FLEX-ES definition listingsShell script for a single HDD Definitions for two HDDs Shell script for two HDDs System definitions Appendix B. FLEX-ES parametersCpu0 Cpu1 Cpu2 Emulated control unit types Resource definitionsTypical resource definitions Emulated device typesCKD disk resources Terminal resources LAN resources Tape resourcesCloned devices Common rules Resadm commandCLI commands Flexes mount A90 S390/WORK01 710 Altcons560 Home/tape3 84 S/390 PID ThinkPad Enabled for S/390 Special notices 86 S/390 PID ThinkPad Enabled for S/390 Other resources How to get IBM RedbooksIBM Redbooks Referenced Web sitesIBM Redbooks collections Index Pipe Port Power control Terminal logo Terminal Solicitor 16, 18, 31, 39, 65 92 S/390 PID ThinkPad Enabled for S/390 Partners in Development ThinkPad Enabled for S/390 Page Page System setup AD CD-ROM use System operation ThinkPad Enabled for S/390