One or more aspects relate, in general, to facilitating processing within systems that sort records, and in particular, to facilitating sorting of records having variable lengths and/or variable length keys.
Unsorted lists of records may be sorted using a variety of techniques. One such technique used for sorting large amounts of data is a sort/merge technique, in which small subsets of the data are sorted into pre-sorted lists, and then the pre-sorted lists are merged into a sorted list.
The sort/merge technique may be implemented in software and/or hardware. Each record to be sorted has a key and optionally data. In hardware, the merging is performed by comparing the keys of the records in streaming mode. These keys are a fixed length up to a maximum key length which can be processed and compared in a single cycle. To change the key size between jobs, the hardware is reconfigured.
Shortcomings of the prior art are overcome and additional advantages are provided through the provision of a compare unit. The compare unit includes an array including a plurality of buffer pairs to receive records on one level of a plurality of levels of a hierarchical structure. A comparator is coupled to the array, and the comparator includes one input to receive one beat of one record from one buffer of a selected buffer pair of the plurality of buffer pairs coupled to the comparator. The comparator further includes another input to receive another beat of another record from another buffer of the selected buffer pair, and logic coupled to the one input and the other input to compare the one beat and the other beat to obtain a winner beat of the compare.
Methods, systems, circuits and/or program products 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 an aspect of the present invention, multi-cycle key compare units are provided in hardware. A compare unit includes, for instance, a comparator, additional compare logic and at least one pair of buffers which provide input to the comparator. The compare unit sorts variable length records in streaming mode without the need for complex state machines to maintain state relating to the comparing. A record may have a variable length key and optional variable length data. The record and/or key is split into fixed, pre-defined lengths, which are unknown to the comparator of the compare unit. The total key length can change between sort/merge runs without reconfiguring the compare unit.
In one embodiment, a record is split into multiple beats, and each beat may include at least a portion of a key, at least a portion of data or both, in which a portion includes one or more bits. A beat also includes, in accordance with one or more aspects of the present invention, one or more control indicators that provide control information used in comparing beats of one record with beats of another record.
In one aspect, the compare unit is used in a hierarchical sort/merge structure in which there are one or more compare units on each level of the hierarchy of the hierarchical sort/merge structure. In a further aspect, the hierarchical sort/merge structure is transformed into a folded sort/merge structure in which each level of the folded sort/merge structure has, in one example, only one compare unit. The compare unit of a particular level includes all (or a selected subset) of the buffer pairs for that level. Each buffer pair of the buffer pairs is sized to include at least one record.
In yet a further aspect, many of the buffers of the buffer pairs of the folded sort/merge structure are reduced in size to include at least a maximum key size, but less than a full record. The reduced size buffers can keep multiple records, if space permits. Therefore, they are used as circular or ring buffers and a pair of arrays is provided on each level to track the local ring buffer offsets within each buffer to use during a particular cycle. The pair of arrays include, for instance, a read address array and a write address array.
In still another aspect, the write address array is replaced with a request pipe that further facilitates the hardware logic and processing. The request pipe has a plurality of entries, and each entry tracks the write address of both buffers for a buffer pair being compared. The address in the request pipe is the address for the data being compared, and as the winner compare data will have to be replaced, it is the write address for the refill data coming from one level above.
As an example, the compare units are implemented in a field-programmable gate array (FPGA). Referring to
In one example, system 102 is a computer system. An example computer system is shown in
Bus 210 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 the Industry Standard Architecture (ISA), the Micro Channel Architecture (MCA), the Enhanced ISA (EISA), the Video Electronics Standards Association (VESA) local bus, the Peripheral Component Interconnect (PCI), and the Coherent Accelerator Processor Interface (CAPI).
Memory 206 may include, for instance, a cache 220, such as a shared cache, which may be coupled to local caches 222 of processors 204. Further, memory 206 may include one or more programs or applications 230, an operating system 232, and one or more computer readable program instructions 234.
Computer system 202 may also communicate via, e.g., I/O interfaces 208 with one or more external devices 240, one or more network interfaces 242, and/or one or more data storage devices 244. Example external devices include a user terminal, a tape drive, a pointing device, a display, an accelerator, etc. Network interface 242 enables computer system 202 to 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), providing communication with other computing devices or systems.
Data storage device 244 may store one or more programs 246, one or more computer readable program instructions 248, and/or data, etc.
Computer system 202 may include and/or be coupled to removable/non-removable, volatile/non-volatile computer system storage media. For example, it may include and/or be coupled to a non-removable, non-volatile magnetic media (typically called a “hard drive”), a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), and/or 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. It should be understood that other hardware and/or software components could be used in conjunction with computer system 202. 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.
Computer system 202 may be 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 202 include, but are not limited to, personal computer (PC) 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.
Further details regarding sort/merge structure 110 are described with reference to
Although in this example, the sort/merge structure includes seven compare units used to provide an output 310, in other examples, there may be more or fewer than seven compare units. Typically, there would be many more compare units to sort unsorted lists in such a structure. For instance, a 1024 list input to the sort/merge structure uses 1023 compare units. Many examples are possible. The number of compare units in the hierarchical sort/merge structure depends on the number of input lists desired to be sorted.
Further details regarding a compare unit are described with reference to
Since the internal bus of the FPGA is of a defined size (e.g., 16B), any record over the defined size is divided into multiple beats 410. For instance, each record in this example is divided into five beats. A beat 410 may include at least a portion of key 402, at least a portion of data 404, at least a blank portion 406 (also referred to as an empty portion), and/or any combination of key, data and empty portions.
A beat 410a from left buffer 308a and a beat 410b from right buffer 308b are input to comparator 304, which compares the beats using a defined function and provides an output. This output may be referred to herein as the winner beat. In one example, comparator 304 includes first control logic 450, a defined function 452, and second control logic 454 to perform a Calcwin function that produces the winner beat. First control logic 450 and second control logic 454 are described further below. In one example, defined function 452 is a minimum function, but this is only one example. Many different functions may be used, including a maximum function, as well as various other functions. The comparator compares the beats, e.g., bit by bit, without knowledge of the type of beat (e.g., key beat, data beat, etc.) or any controls associated with the beat, as described further below.
As indicated, a record may include a key, and the key may be of variable size. As shown in
Returning to
Further, in accordance with an aspect of the present invention, each beat also includes one or more control indicators, which are input to comparator 304 and compared. These control indicators are set by the top level logic that provides data to the top level buffers based on its analysis of the incoming data records (e.g., record length, key length, run—each stream of records corresponds to a particular run). Again, these control indicators are compared without knowledge of the meaning of the indicators. The comparator simply compares the bits representing the indicators and determines a compare result, based on the specified function of the comparator.
In one example, the control indicators include a prefix indicator (PFX) 460, a run indicator (RUN) 470, and a key end beat indicator (KEBT) 480, each of which is described herein.
In one example, prefix indicator 460 is input to defined function 452 and includes two bits that have the following meaning, in one embodiment:
Run indicator 470 (also known as wrap bits or color value) is input to first control logic 450 and used to indicate which run the records are with. Records of the same run are to be compared to one another. If the comparator receives a record of a different run, such that the comparator is comparing bits of one run with bits of another run, the bits of the current run being compared will win in the compare. As an example, run indicator 470 includes two bits, in which there is a wrap-around: 00<01<10<11<00. Other examples are possible.
Key end beat indicator (KEBT) 480 is input to second control logic 454 and includes, for instance, one bit that indicates the end of the key beat. At that point, the compare will have a defined winner, even if the two keys being compared are equal. When comparing a new key, there is no previous winner.
The use of the control indicators enables the comparator to compare on each cycle without knowing what is being compared and without needing complex state machines to track what is being compared or to track the previous winner beat. The comparator compares bit by bit, beat (or entry) by beat (or entry) without complex state machines and allows the data to be routed with its associated key—i.e., no separation of keys and data for comparison; therefore, no tracking of key and data is used, in one example, to determine association.
Further details regarding using the control indicators are described with reference to
Referring to
In one embodiment, initially, the bits of the run indicator (referred to herein as run bits) from the left buffer (RUN-L) and the run bits from the right buffer (RUN-R) are compared. A determination is made as to whether RUN-L is older than RUN-R (710). If RUN-L is older than RUN-R (i.e., RUN-L is the current run being compared), then a signal NewWin is set equal to L (for left buffer) indicating that the left buffer is the winner of the compare (referred to herein for convenience as winner). Processing continues to 712, at which the pointer to the left buffer is incremented, since the left buffer is the winner, and therefore, a next beat is to be requested for the left buffer from a buffer pair at a next higher level. The pointer of the other buffer (the right buffer in this example) is reset to the first beat, in one example. Processing then continues to 702, in which the next beat is requested for the left buffer and the first beat remains in the right buffer.
Returning to 710, if RUN-L is not older than RUN-R, then a further determination is made as to whether RUN-L is newer than RUN-R (714). If RUN-L is newer than RUN-R, then NewWin is set equal to R (for right buffer), and processing continues to 712. At 712, since NewWin is set equal to R, the pointer to the right buffer is incremented, such that the next beat is received for the right buffer, and the pointer of the other buffer (the left buffer in this example) is reset to the first beat of the record. Processing then continues to 702, in which the next beat is requested for the right buffer and the first beat remains in the left buffer.
Returning to 714, if RUN-L is not older than or newer than RUN-R, then a further determination is made as to whether PrevWin is set equal to left or right (716). If PrevWin is set equal to left or right, then the value of NewWin is set equal to PrevWin, and processing continues 712.
Returning to 716, if PrevWin is not equal to left or right, then set PrevWin to undefined or equal, and the prefix indicator and the key/data of the beats (PfxDat) are compared. In one example, a determination is made as to whether PfxDat-L (i.e., the prefix bits plus the key and/or data bits of the beat of the left buffer) is less than (<) PfxDat-R (i.e., the prefix bits plus the key and/or data bits of the beat of the right buffer) 718. If PFX for one of the buffers indicates a data beat (e.g., PFX=00), then the data beat wins. If PfxDat-L is less than PfxDat-R, then NewWin is set equal to L, and processing continues with 712; otherwise, processing continues with 720, in which a determination is made as to whether PfxDat-L is greater than (>) PfxDat-R. If PfxDat-L is greater than PfxDat-R, then NewWin is set equal to R, and processing continues to 712.
Returning to 720, if PfxDat-L is not less than or greater than PfxDat-R (i.e., they are equal), then a further determination is made as to whether they are equal and whether one of the beats being compared indicates the end of the key for its record (indicated by KEBT indicator 480) 722. If so, then NewWin is set to left, in this example (in another example, it may be set to right); otherwise NewWin is set to equal, and in both cases, processing continues to 712. If NewWin is set to equal, then the pointer for both the left and right buffers are incremented.
As described above, in accordance with an aspect of the present invention, one or more control indicators are added to the beats being compared to provide efficiencies in the comparison such that state machines are not needed. For instance the prefix indicator, which includes an indication of a key beat, a data beat, end of buffer or end of list, allows a hardware binary comparator to immediately select the appropriate buffer absent state machines. As a particular example, data wins in a compare between a key and data. As a further example, the end of buffer indicates a stall to allow more beats to be loaded in the buffer. The use of the control indicators allows the compare to be performed in continuous streaming mode in hardware without the use of state machines to track which buffers to be used and/or which buffer is the winner, and without separating the data from the key.
In one embodiment, keys of a large key size are divided into multiple key beats to be processed in consecutive clock cycles, in which the key comparison is performed beat by beat. By using one or more of the control indicators, the key size need not be known by the comparator and no reconfiguration of the FPGA is necessary when the key size changes. Additionally, the data does not need to be separated from the key, but instead, the key and data are streamed together. The comparator is able to perform a binary compare that immediately selects a winner buffer.
In the embodiment described above, there are one or more compare units on each level of the sort/merge structure. In particular, for each level, other than the lowest level (referred to as Level 0 herein), there are a plurality of compare units, as depicted in
Referring to
Further, assuming right buffer 816b is the winner of the compare between the beats in buffers 816a and 816b, compare unit 812 of Level 1 requests a beat from compare unit 822 of Level 2, and so forth.
In one example, the buffers at the top level are filled with records from an input list. A top level control unit (TLC) 832 determines based on information in a top level vector (TLV) 830, which top level buffer gets filled with the next available input record.
Since only one compare unit is active at each level at a time, the compare units of each level are reduced to one compare unit per level. (In another embodiment, a selected number of compare units may be used, which for each level except Level 0, is less than the number typically provided at that level). Again, assuming a sort/merge structure of 1024 inputs at the top level, the sort/merge structure includes nine (9) levels, and therefore, in accordance with an aspect of the present invention, nine compare units are provided instead of 1023 compare units. However, since the number of compare units is reduced, each comparator of the compare unit has one or more buffer pairs associated therewith, referred to herein as a buffer pair array. For instance, each comparator may receive input from all buffer pairs (or a selected number) on its corresponding level. One example of this configuration is depicted in
Referring to
Another illustration of this aspect of the present invention is depicted in
In
That is, from the top-down, in one example, the winner of the compare between stream 0 and stream 1 is transferred to left buffer 1012a, and the winner of the compare between stream 2 and stream 3 is transferred to right buffer 1012b. Then, the compare between left buffer 1012a and right buffer 1012b is transferred to left buffer 1002a. Similar processing is performed for the other compare units.
The above structure is streamlined as shown in
Thus, in this embodiment, one comparator has one or more buffer pairs associated therewith and logic is provided to determine which buffer pair, and in particular, which buffer of the buffer pair, is to provide a beat for a winner buffer on a lower level.
One example of logic used to select the correct buffer pair and the correct buffer of that buffer pair in an implementation that uses one comparator and one or more buffer pairs per level is described with reference to
In one example, starting at Level n−1, the winner beat of the compare unit on that level is determined 1100. This includes, for instance, determining the buffer pair number (BP#) of the buffer pair on Level n−1 that includes the winner beat. As an example, BP# and WIN of Level n−2 are used to determine the selected buffer pair number (BP#) of Level n−1. The buffer pair to be selected on Level n−1 is addressed by BP#n−2*2+WINn−2. For instance, if BP#n−2 is buffer pair number 0 of Level n−2, and WIN is set to 0 indicating the left buffer of buffer pair 0 was the winner of Level n−2, then BP#n−1=0*2+0=0. Thus, buffer pair 0 of Level n−1 is the selected buffer pair. Then, the winner beat is determined using the Calcwin function of the comparator. For instance, the comparator logic compares two beats from the buffers of BP#n−1 (e.g., buffer pair 0) and determines the winner buffer, and thus winner beat, on Level n−1. The winner beat at Level n−1 is passed down to Level n−2 (1102). Further, the compare unit at Level n−1 requests from Level n a beat to fill its winner buffer that transferred the winner beat down to Level n−2 (1104). The request includes, for instance, the buffer pair number (BP#) of the buffer pair on Level n−1 that includes the winner buffer and an indication (WIN) of the particular buffer of the buffer pair that is the winner. As an example, if WIN=0, then the left buffer of the buffer pair is the winner buffer, and if WIN=1, then the right buffer of the buffer pair is the winner buffer.
At Level n, the winner beat of a selected buffer pair is determined 1105. As an example, BP# and WIN of Level n−1 are used to determine the selected buffer pair number (BP#) of Level n. The buffer pair to be selected on Level n is addressed by BP#n−1*2+WINn−1. Then, the winner beat is determined using the Calcwin function of the comparator. For instance, the comparator logic compares two beats from the buffers of BP#, and determines the winner buffer, and thus winner beat, on Level n. The determined winner beat is transferred down to Level n−1 to fill the winner buffer of that level 1106. Further, the compare unit of Level n requests the next beat of a selected buffer pair from the next higher level 1108.
At Level n+1, the appropriate buffer pair is selected and the winner of the beats of the selected buffer pair is calculated: BP#n+1=BPn*2+WINn−1; Calcwin(BP#n+1) 1110.
As described above, having a single compare unit with a buffer array, instead of multiple compare units on a particular level, allows efficiencies to be provided including, but not limited to, a reduction and improvement in signal wiring, logic complexity, logic timing and/or use of multiplexors.
In a further aspect, each buffer of the top level buffer pair array is filled with first run records (e.g., RUN0) at the beginning until the buffers are used at least once with RUN0. In this case, the buffers of the left and right buffer pair array that are part of the top level compare unit are filled in the same way. For merging, it is guaranteed that the next input record is higher or equal. In that case, a buffer can be re-filled using the same RUN0 value. Otherwise, the RUN value is increased to RUN1 and subsequent records have RUN1.
One example of continuous streaming with a number of buffers in a top level buffer pair array is described with reference to
Further, a determination is made by the top level control unit based on the top level vector as to whether all the entries of the top level buffer have been filled with the current RUN, INQUIRY 1220. If so, RUN is incremented, e.g., by 1, STEP 1222. Thereafter, or if not all the entries are filled with the current RUN, then processing continues to 1204.
In yet a further aspect, an optimization is provided which reduces the size of the buffers on one or more levels of the sort/merge structure. In one embodiment, the buffers at the top level are of at least a record size (e.g., 64 KB), but the buffers on each level, except for the top level, are of a size less than a full record size, such as the size of a maximum key size (e.g., 100 bytes). In another embodiment, other selected sizes may be used (e.g., twice the maximum key size, or other sizes) that are less than a full record size. Each of these buffers may be implemented as a ring buffer (also referred to as a circular buffer), and may include one or more key beats, one or more data beats, one or more empty beats, and/or any combination thereof. Further, depending on the size of the buffer, the buffer may include one or more data beats of one record and a key of another record, or multiple full records and a partial record at the beginning and/or end of the buffer. Many examples exist. In one example, the key is to be in one buffer, and not across buffers, but the data may be distributed across a plurality of buffers on a number of levels. The data may even be in the buffer at the top level. The data may be distributed across the buffers, since based on a key winner being determined, the data flows through the levels using the prefix indicators, in accordance with an aspect of the present invention.
To implement a sort/merge structure that includes compare units with different size buffers, a set of arrays is provided for each level of the sort/merge structure, as described with reference to
In one example, read address array 1300 includes one entry 1301 for each buffer pair in the buffer pair array of the compare unit for that particular level. Each entry 1301 includes a left read incremental address (LRIA) 1304, which is the address offset in the left buffer; and a right read incremental address (RRIA) 1306, which is the address offset in the right buffer of the buffer pair associated with that entry. Similarly, write address array 1302 includes one entry 1303 for each buffer pair in the buffer pair array of the compare unit for that particular level. Each entry 1303 includes a left write incremental address (LWIA) 1312, which is the address offset within the left buffer; and a right write incremental address (RWIA) 1314, which is the address offset within the right buffer for the buffer pair associated with that entry. The read addresses are used for fetching data from the specified buffer at the current next higher level (e.g., Level 3, in the example shown in
Compare unit 302 requests a next beat to be written to the winner buffer of compare unit 302 that has a vacancy. Compare unit 302 provides an indication of the winner buffer to the read address array, and that indication is used to select a read incremental address (either LRIA or RRIA) from the array. The selected incremental address is used to access the beat to be transferred from Level 3 to Level 2, in this example. The winner beat being transferred is written to the buffer address offset indicated by the appropriate write incremental address (e.g., the address offset within the winner buffer).
One embodiment of logic using the read address array and the write address array to fill a winner buffer is described with reference to
At Level n−1 (e.g., Level 2 in the example of
At Level n, the request is received by the compare unit of that level and the entry of read address array 1300 corresponding to the winner buffer is read (1402). For instance, LRIA/RRIA of the entry corresponding to the winner buffer (e.g., BP#n−1*2+WINn−1) are obtained from RAA. The current beats of the selected buffer pair are compared to determine the winner beat (1404) (e.g., BP#n=BP#n−1*2+WINn−1; Calcwin(BP#n). A determination is made as to whether the winner beat is the first beat of a key (1406). If the winner beat is a first beat of a key, then a further determination is made as to whether there are enough free entries in the buffer in the lower level (e.g., Level 2 in this example) for an entire key (1408). If there are enough free entries in the lower level buffer for the entire key, then the winner beat is sent down to Level n−1 (e.g., Level 2 in this example) 1410. Further, or if it is not the first beat of a key, a request (REQ) is sent to Level n+1 to fill the buffer just emptied on Level n (1412).
Additionally, the offsets LRIA and RRIA in read address array 1300 are incremented 1414, and used to read the array based on receiving a request 1402. Processing waits for a next REQ 1416.
Returning to INQUIRY 1408, if there are not enough entries in the buffer of the lower level for an entire key, then processing continues to wait for a next request (REQ) and the offset in read address array 1300 is not incremented 1420.
As described above, in one aspect, the sizes of buffers used in a folded sort/merge structure may be reduced in one or more levels of the structure to a size less than a full record size. This provides efficiencies in the logic and requires less space.
In yet a further aspect, further efficiencies may be obtained by replacing the write address array with a hardware request pipe, which shifts every cycle. In one example, as depicted in
As further depicted in
In a further aspect, a send_key_allowed signal 1530 is used to indicate whether there is enough room in the buffer for a full key, which may be one or more beats in length. If there are not enough entries to receive a full key, send_key_allowed signal 1530 stalls the retrieval of the beat. A hold state occurs if the winner is a key beat and send_allowed_key signal is equal to zero. Thus, the valid indicator, val, 1504 is set to 0 in the request pipe on the level to provide the beat and an increment of the address in this level in the RAA is suppressed.
One embodiment of using the request pipe is described with reference to
At 1610, if the new entry to be stored in request pipe n has a key end beat indication (KEBT=1), then the previous entries in this request pipe with the same buffer pair number (BP#) are updated with this winner (e.g., WIN is set equal to 0 or 1 for all entries with same BP#). The send_key_allowed indication is calculated for the top entry of the request pipe which builds the output of this request pipe. Send_key_allowed is set to one, e.g., if the number of all request pipe entries with this BP# are equal or greater than key beats (indicating no stall; the key beat may be passed down to fill the buffer). The send_key_allowed signal 1620 from the request pipe is sent to Level n+1. Further, a request 1622 for a next beat for the appropriate buffer is also sent to Level n+1.
Returning to 1602, if the winner beat is not a key beat or if send_key_allowed does not equal a stall, then the read addresses in the read address array of Level n are incremented (1640). For instance, LRIA and RRIA are incremented by one. A new request is stored into the request pipe with val=1 (1642).
At Level n+1, beats of the selected buffer pair are compared to provide a winner (1630). Further, a determination is made as to whether the prefix of the winner indicates a key and whether send_key_allowed signal 1620 indicates a stall (send_key_allowed signal=0) (1632). Processing continues as described herein.
As described above, at least one request pipe is used to hold requests from one level to the next level, in which a request includes a winner indication (left or right), a write address for the left buffer, a write address for the right buffer, and a buffer indication to specify which buffers from the next stage level are to be compared for the requested result. The respective winner indications of the key beats for a record in the request pipe are updated with the last key beat, for instance, at once.
Many variations are possible without departing from a spirit of aspects of the present invention. It should be noted that various aspects and features are described herein, and unless otherwise inconsistent, each aspect or feature may be combinable with any other aspect or feature.
One or more aspects of the present invention are inextricably tied to computer technology and facilitate processing within a computer, improving performance thereof.
Aspects of the present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, configuration data for integrated circuitry, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++, or the like, and procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), circuits, and/or 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, may 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.
Although various embodiments are described above, these are only examples. Other implementations of one or more aspects are possible. 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.
Number | Name | Date | Kind |
---|---|---|---|
4131947 | Armstrong | Dec 1978 | A |
4210961 | Whitlow | Jul 1980 | A |
4799152 | Chuang | Jan 1989 | A |
5121493 | Ferguson | Jun 1992 | A |
5185888 | Tanaka | Feb 1993 | A |
5204967 | Armstrong | Apr 1993 | A |
5210870 | Baum | May 1993 | A |
5274805 | Ferguson | Dec 1993 | A |
5287494 | Garcia | Feb 1994 | A |
5386583 | Hendricks | Jan 1995 | A |
5487164 | Kirchhofer | Jan 1996 | A |
5535384 | Kasahara | Jul 1996 | A |
5619693 | Troisi | Apr 1997 | A |
5765159 | Srinivasan | Jun 1998 | A |
5777755 | Aoki | Jul 1998 | A |
5903780 | Fushimi | May 1999 | A |
6005603 | Flavin | Dec 1999 | A |
6181678 | Ha-Duong | Jan 2001 | B1 |
6330559 | Azuma | Dec 2001 | B1 |
6453405 | Hoyle | Sep 2002 | B1 |
6519593 | Matias | Feb 2003 | B1 |
7496572 | Blaicher | Feb 2009 | B2 |
8352470 | Chen et al. | Jan 2013 | B2 |
8352540 | Anglin | Jan 2013 | B2 |
8447901 | Stanfill et al. | May 2013 | B2 |
8725734 | Boh et al. | May 2014 | B2 |
8880551 | Hinshaw | Nov 2014 | B2 |
9026485 | Pawlowski | May 2015 | B2 |
9129004 | Yaroslayskiy et al. | Sep 2015 | B2 |
9268863 | Buyuktosunoglu et al. | Feb 2016 | B2 |
9501359 | Pundir et al. | Nov 2016 | B2 |
9612799 | Hayashizaki et al. | Apr 2017 | B2 |
9619499 | Asaad et al. | Apr 2017 | B2 |
9632787 | Bodine | Apr 2017 | B2 |
9971633 | Barsness | May 2018 | B1 |
20020032683 | Namba | Mar 2002 | A1 |
20050010590 | Blaicher | Jan 2005 | A1 |
20060294312 | Walmsley | Dec 2006 | A1 |
20070162425 | Betwadkar-Norwood | Jul 2007 | A1 |
20070294319 | Mankad | Dec 2007 | A1 |
20080114805 | Nord | May 2008 | A1 |
20090063485 | Schneider | Mar 2009 | A1 |
20090182714 | Sezer | Jul 2009 | A1 |
20100042624 | Min | Feb 2010 | A1 |
20100092065 | Jones et al. | Apr 2010 | A1 |
20110055232 | Graefe | Mar 2011 | A1 |
20110167148 | Bodziony | Jul 2011 | A1 |
20110258205 | Shinjo | Oct 2011 | A1 |
20120106309 | Oishi | May 2012 | A1 |
20130173872 | Terek | Jul 2013 | A1 |
20140279985 | Fontenot et al. | Sep 2014 | A1 |
20140351366 | Maeda | Nov 2014 | A1 |
20140365527 | Fuchs et al. | Dec 2014 | A1 |
20150127649 | Felch | May 2015 | A1 |
20150178338 | Hayashizaki et al. | Jun 2015 | A1 |
20150331619 | Zheng | Nov 2015 | A1 |
20150347592 | Buyuktosunoglu | Dec 2015 | A1 |
20160117215 | Gadelrab | Apr 2016 | A1 |
20160188644 | Sukhwani | Jun 2016 | A1 |
20160316045 | Treves | Oct 2016 | A1 |
20170083515 | Brodt | Mar 2017 | A1 |
20170083570 | Asaad et al. | Mar 2017 | A1 |
20170235814 | Branscome | Aug 2017 | A1 |
20180349406 | Shortlidge | Dec 2018 | A1 |
20190004768 | Li | Jan 2019 | A1 |
20190163441 | Hagspiel et al. | May 2019 | A1 |
20190163442 | Hagspiel et al. | May 2019 | A1 |
20190163443 | Hagspiel et al. | May 2019 | A1 |
Number | Date | Country |
---|---|---|
106326421 | Jan 2017 | CN |
WO2014090097 | Jun 2014 | WO |
Entry |
---|
Petrut, Patricia et al., “Configurable FPGA Architecture for Hardware-Software Merge Sorting,” 2016 MIXDES—23rd International Conference for Mixed Design of Integrated Circuits and Systems, Jun. 2016, pp. 1-3. |
Sears, Russell et al., “bLSM: A General Purpose Log Structured Merge Tree,” SIGMOD '12, May 2012, pp. 217-228. |
Srivastava Ajitesh, et al., “A Hybrid Design for High Performance Large-scale Sorting on FPGA,” 2015 International Conference on Reconfigurable Computing and FPGAs, Dec. 2015, pp. 1-6. |
Koch, Dirk et al., “FPGASort: A High Performance Sorting Architecture Exploiting Run-time Reconfiguration on FPGAs for Large Problem Sorting,” FPGA '11, Feb. 2011, pp. 45-54. |
Casper, Jared et al., “Hardware Acceleration of Database Operations,” FPGA '14, Feb. 2014, pp. 151-160. |
Hagspiel, Norbert et al., “Multi-Cycle Key Compares for Keys and Records of Variable Length,” U.S. Appl. No. 15/827,644, filed Nov. 30, 2018, pp. 1-49. |
Hagspiel, Norbert et al., “Buffer Size Optimization in a Hierarchical Structure,” U.S. Appl. No. 15/827,697, filed Nov. 30, 2017, pp. 1-50. |
Hagspiel, Norbert et al., “Hierarchical Sort/Merge Structure Using a Request Pipe,” U.S. Appl. No. 15/827,784, filed Nov. 30, 2017, pp. 1-49. |
List of IBM Patents or Patent Treated As Related, May 30, 2018, 2 pages. |
Number | Date | Country | |
---|---|---|---|
20190163444 A1 | May 2019 | US |