System and method for providing scatter/gather data processing in a middleware environment
09864759 ยท 2018-01-09
Assignee
Inventors
- Ballav Bihani (Fremont, CA)
- Patrik Torstensson (Stockholm, SE)
- Adam Messinger (San Francisco, CA)
- Naresh Revanuru (Fremont, CA)
Cpc classification
Y10T409/308904
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
H04L67/146
ELECTRICITY
H04L41/042
ELECTRICITY
H04L67/02
ELECTRICITY
Y10T409/309128
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
Y10T409/309352
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
G06F16/278
PHYSICS
H04L67/1095
ELECTRICITY
H04L41/0686
ELECTRICITY
Y10T409/309408
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
G06F15/17318
PHYSICS
G06F16/252
PHYSICS
H04L67/142
ELECTRICITY
G06F9/45504
PHYSICS
H04L67/10
ELECTRICITY
Y10T409/309072
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
H04L67/1001
ELECTRICITY
International classification
G06F12/00
PHYSICS
G06F15/173
PHYSICS
Abstract
Systems and methods are provided for providing scatter/gather data processing. In accordance with an embodiment, a such a system can include a cluster of one or more high performance computing systems, each including one or more processors and a high performance memory. The cluster communicates over an InfiniBand network. The system can also include a middleware environment, executing on the cluster, that includes one or more application server instances. The system can further include a plurality of muxers. Each application server instance includes at least one muxer, and each muxer is operable to collect data from a plurality of locations in the high performance memory, and transfer the data in bulk.
Claims
1. A system for providing scatter/gather data processing, comprising: a plurality of microprocessors including a first microprocessor and a second microprocessor; a cluster of a plurality of application server instances executing on the plurality of microprocessors, wherein a first application server instance of the plurality of application server instances executes on the first microprocessor, and a second application server instance of the plurality of application server instances executes on the second microprocessor; wherein the first application server instance and the second application server instance communicate through a switch fabric network; wherein each application server instance includes a software muxer; a plurality of parallel logical channels between the first application server instance and the second application server instance, wherein each parallel logical channel is created based on a replication channel template configured on a cluster management bean, and wherein the number of the plurality of parallel logical channels is specified by an attribute in a server management bean; wherein the first microprocessor executes the software muxer on the first application server instance to obtain a plurality of pointers, wherein each pointer points to one or more of a plurality of pieces of data, wherein the plurality of pieces of data are stored in different locations in a memory allocated to the first application server instance, configure a plurality of threads to execute the plurality of parallel logical channels, collect the plurality of pieces of data from the different locations in the memory using the plurality of pointers, and transfer, in a single bulk write and using a single context switch of the first microprocessor, the plurality of pieces of data collected using the plurality of pointers concurrently over the plurality of parallel logical channels from the first application server instance to the second application server instance.
2. The system of claim 1 wherein each muxer is a New I/O (NIO) muxer.
3. The system of claim 1, further comprising a utility function configured to determine whether the plurality of parallel logical channels have been configured, and cache a result of the determination for subsequent use.
4. The system of claim 1, wherein the first application server instance, at a kernel level, operates to recognize an increased bandwidth and transfers the data without imposing a flow control.
5. The system of claim 1, wherein the first muxer is a parallel muxer.
6. The system of claim 1, wherein the plurality of pieces of data are related to one another.
7. The system of claim 1, wherein the memory allocated to the first application server instance is a high performance memory.
8. A method for providing scatter/gather data processing, comprising: configuring a cluster of a plurality of application server instances executing on a plurality of microprocessors including a first microprocessor and a second microprocessor, wherein each application server instance includes a software muxer, wherein a first application server instance of the plurality of application server instances executes on the first microprocessor, and a second application server instance of the plurality of application server instances executes on the second microprocessor; wherein the first application server instance and the second application server instance communicate through a switch fabric network; configuring a plurality of parallel logical channels between the first application server instance and the second application server instance, wherein each parallel logical channel is created based on a replication channel template configured on a cluster management bean, and wherein the number of the plurality of parallel logical channels is specified by an attribute in a server management bean; executing, by the first microprocessor the software muxer on the first application server instance to perform the steps comprising obtaining a plurality of pointers, wherein each pointer points to one or more of a plurality of pieces of data, wherein the plurality of pieces of data are stored in different locations in a memory allocated to the first application server instance, configuring a plurality of threads to execute the plurality of parallel logical channels, collecting the plurality of pieces of data from the different locations in the memory using the plurality of pointers, transferring, in a single bulk write and using a single context switch of the first microprocessor, the plurality of pieces of data collected using the plurality of pointers concurrently over the plurality of parallel logical channels from the first application server instance to the second application server instance.
9. The system of claim 8 wherein each muxer is a New I/O (NIO) muxer.
10. The method of claim 8, further comprising determining, via a utility function, whether the plurality of parallel logical channels have been configured, wherein a result of the determination is cached for subsequent use.
11. The method of claim 8, wherein the first application server instance, at a kernel level, operates to recognize an increased bandwidth and transfers the data without imposing a flow control.
12. The method of claim 8, wherein the first muxer is a parallel muxer.
13. The method of claim 8, wherein the plurality of pieces of data are related to one another.
14. The method of claim 8, wherein the memory allocated to the first application server instance is a high performance memory.
15. A non-transitory computer readable storage medium including instructions stored thereon which, when executed by a computer, cause the computer to perform the steps comprising: configuring a cluster of a plurality of application server instances executing on a plurality of microprocessors including a first microprocessor and a second microprocessor, wherein each application server instance includes a software muxer, wherein a first application server instance of the plurality of application server instances executes on the first microprocessor, and a second application server instance of the plurality of application server instances executes on the second microprocessor; wherein the first application server instance and the second application server instance communicate through a switch fabric network; configuring a plurality of parallel logical channels between the first application server instance and the second application server instance, wherein each parallel logical channel is created based on a replication channel template configured on a cluster management bean, and wherein the number of the plurality of parallel logical channels is specified by an attribute in a server management bean; executing, by the first microprocessor the software muxer on the first application server instance to perform the steps comprising obtaining a plurality of pointers, wherein each pointer points to one or more of a plurality of pieces of data, wherein the plurality of pieces of data are stored in different locations in a memory allocated to the first application server instance, configuring a plurality of threads to execute the plurality of parallel logical channels, collecting the plurality of pieces of data from the different locations in the memory using the plurality of pointers, transferring, in a single bulk write and using a single context switch of the first microprocessor, the plurality of pieces of data collected using the plurality of pointers concurrently over the plurality of parallel logical channels from the first application server instance to the second application server instance.
16. The non-transitory computer readable storage medium of claim 15 wherein each muxer is a New I/O (NIO) muxer.
17. The non-transitory computer readable storage medium of claim 15, further comprising determining, via a utility function, whether the plurality of parallel logical channels have been configured, wherein a result of the determination is cached for subsequent use.
18. The non-transitory computer readable storage medium of claim 15, wherein the first application server instance, at a kernel level, operates to recognize an increased bandwidth and transfers the data without imposing a flow control.
19. The non-transitory computer readable storage medium of claim 15, wherein the first muxer is a parallel muxer.
20. The non-transitory computer readable storage medium of claim 15, wherein the plurality of pieces of data are related to one another.
21. The non-transitory computer readable storage medium of claim 15, wherein the memory allocated to the first application server instance is a high performance memory.
Description
BRIEF DESCRIPTION OF THE FIGURES
(1)
(2)
(3)
(4)
(5)
DETAILED DESCRIPTION
(6) In the following description, the invention will be illustrated by way of example and not by way of limitation in the figures of the accompanying drawings. References to various embodiments in this disclosure are not necessarily to the same embodiment, and such references mean at least one. While specific implementations are discussed, it is understood that this is done for illustrative purposes only. A person skilled in the relevant art will recognize that other components and configurations may be used without departing from the scope and spirit of the invention.
(7) Furthermore, in certain instances, numerous specific details will be set forth to provide a thorough description of the invention. However, it will be apparent to those skilled in the art that the invention may be practiced without these specific details. In other instances, well-known features have not been described in as much detail so as not to obscure the invention.
(8) As described above, in recent years, organizations have turned their attention to technologies such as virtualization and centralized storage, and even more recently cloud computing, which can provide the basis for a shared infrastructure. However, there are few all-in-one platforms that are particularly suited for use in such environments. Described herein is a system and method for providing a middleware machine or similar platform (referred to herein in some implementations as Exalogic), which comprises a combination of high performance hardware, together with an application server or middleware environment, and additional features, to provide a complete Java EE application server complex which includes a massively parallel in-memory grid, can be provisioned quickly, and can scale on demand.
(9) In particular, as described herein, systems and methods are provided for providing scatter/gather data processing in a middleware environment. In accordance with an embodiment, a such a system can include a cluster of one or more high performance computing systems, each including one or more processors and a high performance memory. The cluster communicates over an InfiniBand network. The system can also include a middleware environment, executing on the cluster, that includes one or more application server instances. The system can further include a plurality of muxers. Each application server instance includes at least one muxer, and each muxer is operable to collect data from a plurality of locations in the high performance memory, and transfer the data in bulk.
(10) Typically, the memory space in a computer system is fragmented. That is, related pieces of data are generally not stored in a single contiguous area, but rather are spread throughout the memory space. The process of writing the data to the various locations in memory where it is stored is referred to as scattering. Similarly, the processing of reading the data from the various locations in memory where it is stored is referred to as gathering. In a typical system, limited by a relatively low maximum transfer unit (MTU), each piece of data may be scattered and gathered individually, or in small groups. However, in accordance with an embodiment, the system can obtain pointers to all of the pieces of data and perform a single bulk write. Because writing each piece of data separately can require many context switches for the CPU, by writing in bulk context switching is greatly reduced and system performance, particularly latency, is improved. Additionally, writing in bulk better utilizes the available bandwidth, making the system more efficient. In accordance with an embodiment, the increase in bandwidth, and the concomitant increase in MTU, provides significant system improvements, in particular it minimizes context switching which is CPU intensive. Instead of data transfers that require multiple round trips, and therefore multiple context switches, over many iterations, the same data transfer can be accomplished in only a few, or even a single, iteration.
(11)
(12)
(13) Scatter/Gather I/O
(14) In accordance with an embodiment, the system can use Scatter/Gather I/O, which minimizes fragmentation of network packets, allowing the OS to perform fragmentation based on the use of Java New I/O (NIO). Additionally, in accordance with an embodiment, the system uses Internet Protocol over InfiniBand (IPoIB) protocol, which has a maximum transfer unit (MTU) of 64 KB. By comparison, Ethernet has an MTU of 1.5 KB. Using IPoIB allows the application server, e.g. WebLogic Server, to write more data at a time. Additionally, typical Ethernet connections provide speeds on the order of 1 Gb/s, however, by using an InfiniBand network, speeds of upwards of 40 Gb/s are available. This provides greater flexibility and allows much more data to be passed through the connection. Ideally, the system that utilizes such a connection can adapt to push more data through the network to saturate, and efficiently use, the available bandwidth.
(15)
(16)
(17) In accordance with an embodiment, within a cluster, multiple parallel logical connections, i.e., channels, can be used between servers. This allows for more data to be passed between servers concurrently, enabling multiple threads to execute in parallel. As shown in
(18)
(19) In accordance with an embodiment, the method shown in
(20) The present invention can be conveniently implemented using one or more conventional general purpose or specialized digital computer, computing device, machine, or microprocessor, including one or more processors, memory and/or non-transitory computer readable storage media programmed according to the teachings of the present disclosure. Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art.
(21) In some embodiments, the present invention includes a computer program product which is a computer readable storage medium (media) having instructions stored thereon/in which can be used to program a computer to perform any of the processes of the present invention. The computer readable storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
(22) The foregoing description of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations will be apparent to the practitioner skilled in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalence.