Transaction Processing Facility

Transaction Processing Facility

Infobox OS
name = z/TPF

caption =
developer = IBM
source_model = Closed source (Source code is available to licenced users with restrictions)
kernel_type = Real-time
supported_platforms = ?
ui = ?
family = z/TPF
released =
latest_release_version = V1R1
latest_release_date = December, 2005
latest_test_version =
latest_test_date =
marketing_target =
programmed_in = ?
prog_language =
language =
updatemodel =
package_manager =
working_state = Current
license = Proprietary monthly license charge (MLC)
website = [ IBM: z/TPF operating system]

TPF is an IBM real-time operating system for mainframes descended from the IBM System/360 family, including zSeries and System z9. The name is an initialism for Transaction Processing Facility.

TPF evolved from the Airlines Control Program (ACP), a free package developed in the mid-1960s by IBM in association with major North American and European airlines. In 1979, IBM introduced TPF as a replacement for ACP — and as a priced software product. The new name suggests its greater scope.

Current users include Sabre (reservations), Amadeus (reservations), VISA Inc (authorizations), Holiday Inn (central reservations), CBOE (order routing), Singapore Airlines, KLM, Qantas, Amtrak, Marriott International , worldspan and the NYPD (911 system).

TPF delivers fast, high-volume, high-throughput transaction processing, handling large, continuous loads of essentially simple transactions across large, geographically dispersed networks. The world's largest TPF-based systems are easily capable of processing tens of thousands of transactions per second. TPF is also designed for highly reliable, continuous (24x7) operation. It is not uncommon for TPF customers to have continuous online availability of a decade or more, even with system and software upgrades.

While there are other industrial-strength transaction processing systems, notably IBM's own CICS and IMS, TPF's "raison d'être" is extreme volume, large numbers of concurrent users and very fast response times, for example, VISA credit card processing during the holiday shopping season.

TPF implements an application known as PARS. Many airlines use this passenger reservation application or its international version IPARS. TPF was traditionally a 370 assembly language environment for performance reasons, and many TPF assembler applications persist. However, more recent versions of TPF encourage the use of C. Another programming language called SabreTalk was born and died on TPF. One of TPF's major components is a high performance, specialized database facility called TPFDF.

It is common for TPF sites to also use other IBM mainframe operating systems, such as z/OS and z/VM, for offline and complementary processing. It is also possible to run a close cousin of TPF, called ALCS, atop z/OS rather than as a separate operating system. All these operating systems usually coexist on the same physical hardware since IBM mainframes feature multiple ways of partitioning, to handle mixed workloads.

IBM announced the delivery of the next release of TPF, dubbed z/TPF V1.1, in September 2005. Most significantly, z/TPF adds 64-bit addressing and mandates use of the 64-bit GNU development tools. The GCC compiler will be the only supported compiler for z/TPF.

Operating Environment

Tightly Coupled

TPF is capable of running in a multiprocessor, that is, on mainframe systems in which there is more than one CPU. Within the community, the CPUs are referred to as Instruction Streams or simply I-streams. On a mainframe or in a logical partition (LPAR) of a mainframe with more than one I-stream, TPF is said to be running tightly-coupled.

Due to the reentrant nature of TPF programs and the control program, this is made possible as no active piece of work modifies any program. The default is to run on the "main I-stream" which is given as the lowest numbered I-stream found during IPL. However users and/or programs can initiate work on other I-streams via internal mechanisms in the API which let the caller dictate which I-stream to initiate the work on. In the new "z/TPF", the system itself will try to load balance by routing any application that does not request a preference or "affinity" to I-streams with less work than others.

In the TPF architecture, each I-stream shares common core, except for a 4Kb in size prefix area for each I-stream. In other instances where core data must or should be kept separate, the application designer typically carves up reserved storage areas into a number of sections equal to the number of I-streams. A good example of the TPF system doing this can be found with TPFs support of "I-stream unique globals". Proper access to these carved sections of core are made by taking the base address of the area, and adding to it the product of the I-stream relative number times the size of each area.

Loosely Coupled

TPF is capable of supporting multiple mainframes (of any size themselves - be it single I-stream to multiple I-stream) connecting to and operating on a common database. Currently, 32 IBM mainframes may share the TPF database; if such a system were in operation, it would be called 32-way loosely coupled. The simplest loosely coupled system would be two IBM mainframes sharing one DASD (Direct Access Storage Device). In this case the control program would be equally loaded into core and each program or record on DASD could be potentially accessed by either mainframe.

In order to serialize accesses between data records on a loosely coupled system, a practice known as Record locking must be used. This means that when one mainframe processor obtains a hold on a record, the mechanism must prevent all other processors from obtaining the same hold and communicate to the requesting processors that they are waiting. Within any tightly coupled system this is easy to manage between I-streams via the use of the Record Hold Table. However when the lock is obtained offboard of the TPF processor in the DASD control unit, an external process must be used. Historically the record locking was accomplished in the DASD control unit via an RPQ known as LLF (Limited Locking Facility) and later ELLF (extended). Given that most if not all DASD on the market today do not have these RPQs, other methods such as IBMs Coupling Facility must be used to manage record locks.

Processor Shared Records

Records that absolutely must be managed by a record locking process are those which are processor shared. In TPF most record accesses are done by using record type and ordinal. So if you had defined a record type in the TPF system of 'FRED' and gave it 100 records or ordinals, then in a processor shared scheme record type 'FRED' ordinal '5' would resolve to the exact same file address on DASD - clearly necessitating the use of a record locking mechanism.

All processor shared records on a TPF system will be accessed via the exact same file address which will resolve to the exact same location.

Processor Unique Records

A processor unique record is one that is defined such that each processor expected to be in the loosely coupled complex has a record type of 'FRED' and perhaps 100 ordinals. However, if a user on any 2 or more processors examines the file address that record type 'FRED', ordinal '5' resolves to, they will note a different physical address is used.

TPF Attributes

What TPF is not

TPF has no graphical user interface (hereafter GUI). TPF's built-in user interface is line driven with simple text screens that scroll upwards. There are no mice, windows, or icons on a TPF Prime CRAS. All work is accomplished via the use of typed one or two line commands, similar to early versions of UNIX before X.

TPF also does not include a compiler/assembler, text editor, or the concept of a desktop. TPF application source code is typically kept in PDSs on a z/OS system. However, some previous installations of TPF kept source code in z/VM-based files and used the CMS update facility to handle versioning. Currently the z/OS compiler/assembler is used to build TPF code into object modules, producing load files that the TPF "online system" can accept. Starting with z/TPF 1.1, Linux will be the build platform.

Using TPF requires an intimate knowledge of the Operations Guide since there is no shipped support for any type of online command "directory" that you might find on other platforms. Commands created by IBM and shipped by IBM for the running and administration of TPF are referred to as "Z-messages" as they are all prefixed with the letter "Z." Other letters are reserved so that customers may write their own commands.

TPF has extremely limited capability to debug itself. Typically third party software packages such as IBM's TPF Tool Kit or Step by Step Trace from [ Bedford Associates] are employed to aid in the tracing and tracking of errant TPF code. Since TPF can run as a second level guest under IBM's z/VM, a user can employ the VM trace facility to closely follow the execution of code. TPF will allow certain types of function traces to operate and dump their data to a tape, typically through user exits that present parameters to a called function or perhaps the contents of a block of storage. There are some other types of trace information that TPF can collect in core while running, and this information gets "dumped" whenever the system encounters a severe error.

What TPF is

TPF is highly optimized to permit messages from the supported network to either be switched out to another location, routed to an application (specific set of programs) or to permit extremely efficient accesses to database records.

Data records

Historically all data on the TPF system had to fit in fixed record (and core block) sizes of 381, 1055 and 4K bytes. This was due in part to the physical record sizes of blocks located on DASD. Much overhead was saved by freeing up any part of the operating system from breaking large data entities into smaller ones during file operations, and reassembling same during read operations. Since IBM hardware does I/O via the use of channels and channel programs, TPF would generate very small and efficient channel programs to do its I/O - all in the name of speed. Since the early days also placed a premium on the size of storage media - be it memory or disk, TPF applications evolved into doing very powerful things while using very little resource.

Today, much of these limitations are removed. In fact, only because of legacy support are smaller than 4K DASD records still used. With the advances made in DASD technology, a read/write of a 4K record is just as efficient as a 1055 byte record. The same advances have increased the capacity of each device so that there is no longer a premium placed on the ability to pack data into the smallest model as possible.

Programs and Residency

TPF also had its programs allocated as 381, 1055 and 4K bytes in size and each program consisted of a single record (aka "segment"). Therefore a comprehensive application needed many segments. With the advent of C-support, application programs were no longer limited to 4K sizes, much larger C programs could be created, loaded to the TPF system as multiple 4K records and read into memory during a fetch operation and correctly reassembled. Since in the past core memory was at a premium, only highly used programs ran 100% of the time as core resident, most ran as file resident. Given the limitations of older hardware, and even today's relative limitations, a fetch of a program, be it a single 4K record or many, is expensive. Since core memory is monetarily cheap and physically much much larger, greater numbers of programs could be allocated to reside in core. With the advent of z/TPF, all programs will reside in core - eventually - the only question is when they get fetched the first time.

Before z/TPF, all assembler language programs were limited to 4K in size. Assembler is a more space-efficient language to program in so a lot of function can be packed into relatively few 4K segments of assembler code compared to C in 4K segments. However, C language programming is much easier to obtain skilled people in, so most if not all new development is done in C. Since z/TPF allows assembler programs to be repackaged into 1 logical file, critical legacy applications can be maintained and actually improve efficiency - the cost of entering one of these programs will now come at the initial enter when the entire program is fetched into core and logical flow through the program is accomplished via simple branch instructions, instead of a dozen or so IBM instructions previously needed to perform what is known as 'core resident enter/back'.

Core Usage

Historically and in step with the previous, core blocks - memory - were also 381, 1055 and 4K bytes in size. Since ALL memory blocks had to be of this size, most of the overhead for obtaining memory found in other systems was discarded. The programmer merely needed to decide what size block would fit the need and ask for it. TPF would maintain a list of blocks in use and simply hand the first block on the available list.

Physical memory was carved into sections reserved for each size so a 1055 byte block always came from a section and returned there, the only overhead needed was to add its address to the physical block table's proper list. No compaction or data collection was required.

As applications got more advanced demands for more core increased and once C became available, memory chunks of indeterminate or large size were required. This gave rise to the use of heap storage and of course some memory management routines. To ease the overhead, TPF memory was broken into frames - 4K in size (and now 1Mb in size with z/TPF). If an application needed a certain number of bytes, the number of contiguous frames required to fill that need were granted.

External links

* [ TPF Information Center] (IBM)
* [ z/TPF] (IBM)
* [ TPF User Group] (TPF User Group)
* [ Blackbeard] (Alternative TPF Homepage)
* [ Bedford Associates] (Suppliers of step by step trace and TPF Consultancy Services)
* [ TPFfers] (Single largest online community of TPF programmers)
* [ PCS Training] (Independent training company specialising in TPF)
* [] (Job board specialising in TPF and ALCS)
* [ TPFSOFTWARE] (Provides products & Services in TPF & Allied technologies for Airline, Banking & Hospitality)

Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • Transaction Processing Facility — (TPF) ist ein Echtzeitbetriebssystem für die IBM Großrechner der System/360 und der System z Familien. TPF wurde aus dem Airline Control Program (ACP) von IBM und mehreren nordamerikanischen und europäischen Fluggesellschaften entwickelt. 1979… …   Deutsch Wikipedia

  • Transaction processing facility — Pour les articles homonymes, voir TPF. Transaction processing facility (TPF Dispositif de traitement de transactions) est un système d exploitation développé par IBM pour sa famille de serveurs mainframes S/360 et S/390. TPF est une évolution d… …   Wikipédia en Français

  • Transaction processing — For other uses, see Transaction (disambiguation). In computer science, transaction processing is information processing that is divided into individual, indivisible operations, called transactions. Each transaction must succeed or fail as a… …   Wikipedia

  • Transaction Processing over XML — (TPoX) is a computing benchmark for XML database systems. As a benchmark, TPoX is used for the performance testing of database management systems that are capable of storing, searching and retrieving XML data. The goal of TPoX is to allow… …   Wikipedia

  • Transaction processing fee amount —   An ISO term. A fee charged (e.g. by the acquirer, card issuer or intermediate network facility) for the handling and routing of messages, in the currency of transaction amount. 1a8n …   International financial encyclopaedia

  • processing — pro‧ces‧sing [ˈprəʊsesɪŋ ǁ ˈprɑː ] noun [uncountable] 1. MANUFACTURING when a substance is changed as part of the manufacture of a product: • Fire broke out at a food processing plant in Hamlet, N.C. 2. COMPUTING the use of information, figures… …   Financial and business terms

  • Information Engineering Facility — The IEF (Information Engineering Facility) was the first name of a full lifecycle computer aided software engineering (CASE) tool, which has now gone through three different owners (Texas Instruments, Sterling Software and CA) and several… …   Wikipedia

  • TPF —    Transaction Processing Facility …   IT glossary of terms, acronyms and abbreviations

  • TPF — Transaction Processing Facility (Computing » General) ** Tiny Personal Firewall (Computing » Security) * Team Play First (Community » Sports) * The Peregrine Fund (Community » Non Profit Organizations) * Total Package Fielding (Governmental »… …   Abbreviations dictionary

  • History of IBM mainframe operating systems — The history of operating systems running on IBM mainframes is a notable chapter of history of mainframe operating systems, because of IBM s long standing position as the world s largest hardware supplier of mainframe computers.Arguably the… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”