DATA COLLECTION IN A MULTI-THREADED PROCESSOR
Data collection is facilitated by a multi-threaded processor. One thread of the processor obtains data placed in a buffer by another thread of the processor. The thread placing the data in the buffer is an execution thread executing a customer application and the one thread obtaining the data from the buffer is an assist thread. The assist thread stores the data obtained from the buffer in a selected location, such as a cache, main memory, a measurement control block, a persistent storage device or a network.
This application is a continuation of co-pending U.S. patent application Ser. No. 14/811,911, filed Jul. 29, 2015, entitled “Data Collection in a Multi-Threaded Processor,” which is hereby incorporated herein by reference in its entirety.
BACKGROUNDOne or more aspects relate, in general, to facilitating processing in multi-threaded processors, and in particular, to facilitating collection of data in such processors.
A processor may include multiple threads, such as multiple hardware threads, that have instructions executing simultaneously. This is referred to as simultaneous multi-threading (SMT).
Typically, a thread executes customer applications and may also perform data collection for hardware measurements/samples of the processor on which the thread is executing. The data collected is placed in a buffer on the processor. Today, this buffer is not read from or written to at the same time from different threads; it is only accessed by one thread at a time. In regular intervals, the thread pauses execution of the customer application it is executing to invoke a task to read out and store away the hardware samples into memory. This takes away execution cycles from the thread and impacts performance.
SUMMARYShortcomings of the prior art are overcome and additional advantages are provided through the provision of a computer-implemented method of facilitating data collection. The computer-implemented method includes, for instance, obtaining, by one thread of a processor, data placed in a buffer by another thread of the processor, the other thread being an execution thread executing a customer application and the one thread being an assist thread configured to execute in at least an assist mode; and storing, by the one thread, the data obtained from the buffer in a selected location, wherein based on the thread being in the assist mode, the obtaining and the storing are performed in lieu of executing customer applications by the one thread.
Computer systems and computer program products relating to one or more aspects are also described and may be claimed herein. Further, services relating to one or more aspects are also described and may be claimed herein.
Additional features and advantages are realized through the techniques described herein. Other embodiments and aspects are described in detail herein and are considered a part of the claimed aspects.
One or more aspects are particularly pointed out and distinctly claimed as examples in the claims at the conclusion of the specification. The foregoing and objects, features, and advantages of one or more aspects are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
In accordance with one or more aspects, a capability is provided for facilitating collection of data, such as measurement or sampling data, in a multi-threaded processor operating within a computing environment. The processor supports, for instance, multi-threading, such as simultaneous multi-threading (SMT), which means there can be effectively multiple logical central processing units (CPUs) operating simultaneously on the same physical processor hardware. Each of these logical CPUs is considered a thread.
One example of a computing environment to incorporate and use one or more aspects of facilitating collection of data is described with reference to
Z/ARCHITECTURE, IBM, ZNM, Z/OS, POWER, and POWERPC (referenced herein) are registered trademarks of International Business Machines Corporation, Armonk, N.Y. Other names used herein may be registered trademarks, trademarks or product names of International Business Machines Corporation or other companies.
As one example, computing environment 100 includes a central processor complex (CPC) 102 coupled to one or more input/output (I/O) devices 106 via one or more control units 108. Central processor complex 102 includes, for instance, a processor memory 104 (a.k.a., main memory, main storage, central storage) coupled to one or more processor cores 110 (also referred to herein as processors or cores), and an input/output subsystem 111, each of which is described below.
Processor memory 104 includes, for example, one or more partitions 112 (e.g., logical partitions), and processor firmware 113, which includes, e.g., a logical partition hypervisor 114 and other processor firmware 115. One example of logical partition hypervisor 114 is the Processor Resource/System Manager (PR/SM), offered by International Business Machines Corporation, Armonk, N.Y.
A logical partition functions as a separate system and has one or more applications 120, and optionally, a resident operating system 122 therein, which may differ for each logical partition. In one embodiment, the operating system is the z/OS operating system, the z/VM operating system, the z/Linux operating system, or the TPF operating system, offered by International Business Machines Corporation, Armonk, N.Y.
Logical partitions 112 are managed by logical partition hypervisor 114, which is implemented by firmware running on cores 110. As used herein, firmware includes, e.g., the microcode and/or millicode of the processor core. It includes, for instance, the hardware-level instructions and/or data structures used in implementation of higher level machine code. In one embodiment, it includes, for instance, proprietary code that is typically delivered as microcode that includes trusted software or microcode specific to the underlying hardware and controls operating system access to the system hardware.
Processor cores 110 are physical processor resources allocated to the logical partitions. In particular, each logical partition 112 has one or more logical processors, each of which represents all or a share of a core 110 allocated to the partition. The logical processors of a particular partition 112 may be either dedicated to the partition, so that the underlying core resource 110 is reserved for that partition; or shared with another partition, so that the underlying core resource is potentially available to another partition.
In one example, at least one of the cores is a multi-threaded processor, such as a simultaneous multi-threading processor, that includes multiple threads (i.e., multiple logical CPUs operating simultaneously). In one example, the core includes two threads, but in other embodiments, there may be more than two threads. Two threads, referred to herein as T0 (126) and T1 (128), are only one example. In support of simultaneous multi-threading, the processor core hardware contains the full architected state (e.g., z/Architecture and micro-architected state) for each thread.
Input/output subsystem 111 directs the flow of information between input/output devices 106 and main storage 104. It is coupled to the central processing complex, in that it can be a part of the central processing complex or separate therefrom. The I/O subsystem relieves the processor cores of the task of communicating directly with the input/output devices and permits data processing to proceed concurrently with input/output processing. To provide communications, the I/O subsystem employs I/O communications adapters. There are various types of communications adapters including, for instance, channels, I/O adapters, PCI cards, Ethernet cards, Small Computer Storage Interface (SCSI) cards, etc. In the particular example described herein, the I/O communications adapters are channels, and therefore, the I/O subsystem is referred to herein as a channel subsystem. However, this is only one example. Other types of I/O subsystems can be used.
The I/O subsystem uses one or more input/output paths as communication links in managing the flow of information to or from input/output devices 106. In this particular example, these paths are called channel paths, since the communication adapters are channels.
Another example of a computing environment to incorporate and use one or more aspects of facilitating collection of data is described with reference to
Core 202 is communicatively coupled to a memory 216 having one or more caches 218 and at least one control utility 220, such as an operating system; and to an input/output (I/O) subsystem 222. I/O subsystem 222 is communicatively coupled to external I/O devices 224 that may include, for example, data input devices, sensors and/or output devices, such as displays.
Another embodiment of a computing environment to incorporate and use one or more aspects of facilitating collection of data is described with reference to
Native core 302 includes one or more native registers 310, such as one or more general purpose registers and/or one or more special purpose registers, used during processing within the environment that include information that represents the state of the environment at any particular point in time. Further, native core 302 may include, for instance, at least two threads, T0 (311), T1 (313).
Moreover, native core 302 executes instructions and code that are stored in memory 304. In one particular example, the processor core executes emulator code 312 stored in memory 304. This code enables the computing environment configured in one architecture to emulate one or more other architectures. For instance, emulator code 312 allows machines based on architectures other than the z/Architecture, such as PowerPC processors, Power Systems servers, HP Superdome servers or others, to emulate the z/Architecture and to execute software and instructions developed based on the z/Architecture.
In a further embodiment, as shown in
Further details relating to emulator code 312 are described with reference to
Further, emulator code 312 includes an emulation control routine 360 to cause the native instructions to be executed. Emulation control routine 360 may cause native core 302 to execute a routine of native instructions that emulate one or more previously obtained guest instructions and, at the conclusion of such execution, return control to the instruction fetch routine to emulate the obtaining of the next guest instruction or a group of guest instructions. Execution of the native instructions 356 may include loading data into a register from memory 304; storing data back to memory from a register; or performing some type of arithmetic or logic operation, as determined by the translation routine.
Each routine is, for instance, implemented in software, which is stored in memory and executed by native core 302. In other examples, one or more of the routines or operations are implemented in firmware, hardware, software or some combination thereof. The registers of the emulated processor may be emulated using registers 310 of the native core or by using locations in memory 304. In embodiments, guest instructions 350, native instructions 356 and emulator code 312 may reside in the same memory or may be disbursed among different memory devices.
The computing environments described above are only examples of computing environments that may be used. Other environments, including, but not limited to, other non-partitioned environments, other partitioned environments, and/or other emulated environments, may be used; embodiments are not limited to any one environment.
In accordance with one or more aspects, a thread of a processor executes a customer's application and may start measurements to collect measurement data of the processor. This processing is further described with reference to
As shown in
Additionally, an instruction of the customer's application is executed, STEP 402, and based on executing the instruction and the issuance of the start measurement, the hardware of thread 1.1 starts to collect requested measurement data, STEP 404. The collected data is written to a buffer starting, e.g., at buffer row zero, STEP 406. This task of collecting the data and writing it to the buffer uses the same processing cycles as executing the instructions of the customer's application.
Thread 1.1 continues to execute the customer application and writes data to the buffer, row by row, STEPs 402, 404, 406. Shortly before the buffer is full, a millicode interrupt is raised by the hardware of thread 1.1 to indicate that the buffer is full or approaching full, STEP 408. The customer data application is interrupted based on the interrupt request, STEP 410, and millicode, as an example, starts reading the buffer, STEP 412, and writing the data contents of the buffer to a defined area in storage, e.g., a cache, main memory, etc., STEP 414.
A determination is made as to whether measurement has ended, INQUIRY 416. For instance, has the measurement been stopped by an instruction, command or other mechanism (e.g., a timeout, etc.). If not, then a further determination is made as to whether the buffer is available for further measurement data, INQUIRY 418. This may be determined based on checking an indicator, such as a valid bit. If the buffer is available, then processing continues with STEP 400. That is, after the buffer is read and written to memory, millicode resets the interrupt and the customer may continue collecting data until the buffer is full again and the millicode interrupt is set, or the end measurement is reached.
Returning to INQUIRY 416, if measurement has ended, then processing is complete.
The use of thread 1.1, the execution thread, to read the buffer and place the buffer contents in memory impacts performance by using execution cycles that could be used to perform customer processing. Thus, in accordance with an aspect of the present invention, a second thread, thread 1.2 in this example, is used to assist in reading the data buffer out to memory or another selected location.
In one example, the multi-threaded processor runs a single threaded workload on one thread, the execution thread, and another thread, an assist thread, is used for hardware measurement data collection to relieve the execution thread from this task. The hardware of the execution thread writes the measurement data into a data buffer that can be accessed (read and written) at the same time (e.g., concurrently) from different threads on the processor. The execution thread continuously runs customer workload and the hardware generates the measurement data. The assist thread is set up for monitoring the contents of the execution thread's data buffer and stores the contents of the data buffer into a selected location, such as in memory, a cache, a persistent storage device or a network, as examples.
The assist thread is, in one embodiment, configured in an assist mode in which it monitors the buffer, obtains (e.g., reads) the data from the buffer (optionally analyzes the data) and stores (e.g., writes) the read data to a selected location. In assist mode, the assist thread relieves the execution thread from these data collection tasks, and performs theses tasks for the execution thread in lieu of, for instance, executing customer applications. In assist mode, in one example, priority is given by the assist thread to obtaining the data from the buffer and storing the obtained data to a selected location. In one particular embodiment, the assist thread may only execute in assist mode, and thus, the assist thread is dedicated for hardware measurement data collection. However, in another embodiment, the assist thread may also execute in another mode, such as an execution mode or another non-assist mode, in which when in this mode, it may execute customer applications or perform other tasks. That is, when the thread is not assisting the execution thread, it may execute other workload, such as low-priority applications or other tasks. Other variations are possible.
As indicated, the execution thread writes to a data buffer, and the assist thread reads the data written by the execution thread from the buffer and writes it to a selected location. The use of this buffer is further described with reference to
As shown in
In one example, the data may be analyzed 510 prior to storing the data in the selected location. This analysis may take on many forms, but one form is data compression. Data compression (e.g., using an architected compression instruction or a gzip algorithm, as examples) minimizes the amount of required memory to store the data. As one particular example, the measured data includes the amount of cache misses or memory accesses for an executed instruction, and compression may be used to add each value for n instructions, instead of saving the value for each instruction. Many other compression examples are possible. Further, other types of analyses may take place. For instance, the analysis may include a preprocessing function that performs sorting or some other task. Many possibilities exist. By having the assist thread perform the analysis, instead of the execution thread, the analysis may be performed in parallel to execution of the customer's application. This improves performance.
The use of the two threads is further described with reference to
Referring to
As indicated above, in response to thread 1.1 writing the first row of data in the buffer, thread 1.2 receives the millicode interrupt request, STEP 620, and begins to read the buffer starting, e.g., at row zero, STEP 622. That is, thread 1.2 (the assist thread) obtains the data placed in the buffer by thread 1.1 (the execution thread) and stores the data obtained from the buffer in a selected location. For instance, thread 1.2 writes the data read from the buffer to a selected location, such as a defined area in memory or a cache (e.g., a measurement control block), a persistent storage device, a network, etc., STEP 624. This is the same location that thread 1.1 would have written the measurement data if the assist thread was not being used. Further, in one embodiment, the read data is analyzed, if desired, and then written to the selected location. As thread 1.2 reads a row from the buffer and writes it to the selected location, it resets the valid bit of that row (e.g., sets it to zero), STEP 626, and indicates the same to thread 1.1, or otherwise, makes this information available to thread 1.1, STEP 612. If measurement has not ended, INQUIRY 628, then processing continues at STEP 620. Otherwise, processing is complete.
Further details regarding writing the data to and reading the data from the buffer are described with reference to
One example of a buffer is depicted in
As described above, in one aspect, on a multi-threaded processor which runs a single threaded workload, a secondary thread is used for hardware measurement data collection to relieve the execution thread from this task. The hardware writes the measurement data into a data buffer (e.g., a private data buffer for collecting data for that thread) that can be accessed (read and written) at the same time from different threads on the processor. The execution thread continuously runs customer workload and hardware generates the measurement data. The assist thread on this processor is set up for monitoring the contents of the execution thread's data buffer and storing the contents of the data buffer into memory, a cache or other selected location. On the execution thread, a buffer full indication/pacing is used to ensure the buffer does not overflow. On the assist thread, the firmware is optimized to minimize impact to the execution thread's performance. That is, it does not, for instance, compete for the same hardware resources, such as, for instance, processor registers, cache, I/O, etc. For example, the assist thread is configured to minimize interference with the execution thread's resources (e.g., registers) or use of hardware resources that are shared between the execution thread and the assist thread (e.g., cache lines or execution units). As examples, it has a smaller footprint and does not consume many cache lines, and minimizes use of certain hardware facilities, for example, floating point execution units. It may also use separate cache and memory areas, except for accessing the buffer. Other possibilities exist.
It is expected that this workload pattern works well with multithreading. Some analysis of the data before storing it into the selected location, such as compression or sorting, may optionally be performed. In one example, the execution thread and the assist thread are in the same zone or have the same set-up, which may include, for instance, the same address translation set-ups, address spaces, etc. By offloading the measurement data collection and analysis to another thread, performance improvement of the execution thread can be realized by minimizing the penalty for hardware measurements.
As used herein, storage, central storage, main storage, memory and main memory are used interchangeably, unless otherwise noted, implicitly by usage or explicitly.
One or more aspects may relate to cloud computing.
It is understood in advance that although this disclosure includes a detailed description on cloud computing, implementation of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention are capable of being implemented in conjunction with any other type of computing environment now known or later developed.
Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g. networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal management effort or interaction with a provider of the service. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
Characteristics are as follows:
On-demand self-service: a cloud consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with the service's provider.
Broad network access: capabilities are available over a network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).
Resource pooling: the provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to demand. There is a sense of location independence in that the consumer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state, or datacenter).
Rapid elasticity: capabilities can be rapidly and elastically provisioned, in some cases automatically, to quickly scale out and rapidly released to quickly scale in. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be purchased in any quantity at any time.
Measured service: cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported providing transparency for both the provider and consumer of the utilized service.
Service Models are as follows:
Software as a Service (SaaS): the capability provided to the consumer is to use the provider's applications running on a cloud infrastructure. The applications are accessible from various client devices through a thin client interface such as a web browser (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure including network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.
Platform as a Service (PaaS): the capability provided to the consumer is to deploy onto the cloud infrastructure consumer-created or acquired applications created using programming languages and tools supported by the provider. The consumer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, or storage, but has control over the deployed applications and possibly application hosting environment configurations.
Infrastructure as a Service (IaaS): the capability provided to the consumer is to provision processing, storage, networks, and other fundamental computing resources where the consumer is able to deploy and run arbitrary software, which can include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over operating systems, storage, deployed applications, and possibly limited control of select networking components (e.g., host firewalls).
Deployment Models are as follows:
Private cloud: the cloud infrastructure is operated solely for an organization. It may be managed by the organization or a third party and may exist on-premises or off-premises.
Community cloud: the cloud infrastructure is shared by several organizations and supports a specific community that has shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It may be managed by the organizations or a third party and may exist on-premises or off-premises.
Public cloud: the cloud infrastructure is made available to the general public or a large industry group and is owned by an organization selling cloud services.
Hybrid cloud: the cloud infrastructure is a composition of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technology that enables data and application portability (e.g., cloud bursting for loadbalancing between clouds).
A cloud computing environment is service oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure comprising a network of interconnected nodes.
Referring now to
In cloud computing node 10 there is a computer system/server 12, which is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use with computer system/server 12 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems or devices, and the like.
Computer system/server 12 may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types. Computer system/server 12 may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
As shown in
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer system/server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 12, and it includes both volatile and non-volatile media, removable and non-removable media.
System memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32. Computer system/server 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 34 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to bus 18 by one or more data media interfaces. As will be further depicted and described below, memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program/utility 40, having a set (at least one) of program modules 42, may be stored in memory 28 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data or some combination thereof, may include an implementation of a networking environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
Computer system/server 12 may also communicate with one or more external devices 14 such as a keyboard, a pointing device, a display 24, etc.; one or more devices that enable a user to interact with computer system/server 12; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 12 to communicate with one or more other computing devices. Such communication can occur via Input/Output (I/O) interfaces 22. Still yet, computer system/server 12 can communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) via network adapter 20. As depicted, network adapter 20 communicates with the other components of computer system/server 12 via bus 18. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 12. Examples, include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
Referring now to
Referring now to
Hardware and software layer 60 includes hardware and software components. Examples of hardware components include mainframes 61; RISC (Reduced Instruction Set Computer) architecture based servers 62; servers 63; blade servers 64; storage devices 65; and networks and networking components 66. In some embodiments, software components include network application server software 67 and database software 68.
Virtualization layer 70 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers 71; virtual storage 72; virtual networks 73, including virtual private networks; virtual applications and operating systems 74; and virtual clients 75.
In one example, management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computing resources and other resources that are utilized to perform tasks within the cloud computing environment. Metering and Pricing 82 provide cost tracking as resources are utilized within the cloud computing environment, and billing or invoicing for consumption of these resources. In one example, these resources may comprise application software licenses. Security provides identity verification for cloud consumers and tasks, as well as protection for data and other resources. User portal 83 provides access to the cloud computing environment for consumers and system administrators. Service level management 84 provides cloud computing resource allocation and management such that required service levels are met. Service Level Agreement (SLA) planning and fulfillment 85 provide pre-arrangement for, and procurement of, cloud computing resources for which a future requirement is anticipated in accordance with an SLA.
Workloads layer 90 provides examples of functionality for which the cloud computing environment may be utilized. Examples of workloads and functions which may be provided from this layer include: mapping and navigation 91; software development and lifecycle management 92; virtual classroom education delivery 93; data analytics processing 94; transaction processing 95; and collection processing of one or more aspects of the present invention 96.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
In addition to the above, one or more aspects may be provided, offered, deployed, managed, serviced, etc. by a service provider who offers management of customer environments. For instance, the service provider can create, maintain, support, etc. computer code and/or a computer infrastructure that performs one or more aspects for one or more customers. In return, the service provider may receive payment from the customer under a subscription and/or fee agreement, as examples. Additionally or alternatively, the service provider may receive payment from the sale of advertising content to one or more third parties.
In one aspect, an application may be deployed for performing one or more embodiments. As one example, the deploying of an application comprises providing computer infrastructure operable to perform one or more embodiments.
As a further aspect, a computing infrastructure may be deployed comprising integrating computer readable code into a computing system, in which the code in combination with the computing system is capable of performing one or more embodiments.
As yet a further aspect, a process for integrating computing infrastructure comprising integrating computer readable code into a computer system may be provided. The computer system comprises a computer readable medium, in which the computer medium comprises one or more embodiments. The code in combination with the computer system is capable of performing one or more embodiments.
Although various embodiments are described above, these are only examples. For example, computing environments of other architectures can be used to incorporate and use one or more embodiments. Further, other types of analysis may be provided and/or other mechanisms may be used to indicate when the buffer is full. Many variations are possible.
Further, other types of computing environments can benefit and be used. As an example, a data processing system suitable for storing and/or executing program code is usable that includes at least two processors coupled directly or indirectly to memory elements through a system bus. The memory elements include, for instance, local memory employed during actual execution of the program code, bulk storage, and cache memory which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution.
Input/Output or I/O devices (including, but not limited to, keyboards, displays, pointing devices, DASD, tape, CDs, DVDs, thumb drives and other memory media, etc.) can be coupled to the system either directly or through intervening I/O controllers. Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modems, and Ethernet cards are just a few of the available types of network adapters.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising”, when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below, if any, are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of one or more embodiments has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain various aspects and the practical application, and to enable others of ordinary skill in the art to understand various embodiments with various modifications as are suited to the particular use contemplated.
Claims
1. A computer-implemented method of facilitating data collection, the computer-implemented method comprising:
- obtaining, by one thread of the processor, data placed in a buffer by another thread of the processor, the other thread being an execution thread executing a customer application and the one thread being an assist thread configured to execute in at least an assist mode; and
- storing, by the one thread, the data obtained from the buffer in a selected location, wherein based on the thread being in the assist mode, the obtaining and the storing are performed in lieu of executing customer applications by the one thread.
2. The computer-implemented method of claim 1, wherein the data comprises measurement data of the processor.
3. The computer-implemented method of claim 1, wherein the buffer is concurrently accessible by the one thread and the other thread.
4. The computer-implemented method of claim 1, wherein the one thread is defined to have one or more characteristics and the other thread is defined to have the one or more characteristics.
5. The computer-implemented method of claim 1, further comprising:
- obtaining, by the one thread, an indication the buffer has data to be read;
- reading, by the one thread, the buffer, based on obtaining the indication the buffer has data to be read; and
- storing, by the one thread, the data read from the buffer in the selected location.
6. The computer-implemented method of claim 5, wherein the obtaining the indication comprises receiving an interrupt request, the interrupt request issued based on data being written to the buffer.
7. The computer-implemented method of claim 5, further comprising analyzing the data read from the buffer prior to storing the data.
8. The computer-implemented method of claim 1, further comprising placing the data in the buffer, the placing the data in the buffer including:
- determining whether the buffer has capacity for the data; and
- placing the data in the buffer, based on the determining indicating the buffer has capacity.
9. The computer-implemented method of claim 8, wherein the determining whether the buffer has capacity comprises checking a valid bit.
10. The computer-implemented method of claim 1, wherein the selected location comprises one of a cache, main memory, a measurement control block, a persistent storage device, or a network.
Type: Application
Filed: Nov 14, 2015
Publication Date: Feb 2, 2017
Inventors: Christine Axnix (Dettenhausen), Ute Gaertner (Schoenaich), Jakob C. Lang (Altdorf), Angel Nunez Mencias (Stuttgart)
Application Number: 14/941,578