The present invention relates generally to data processing systems, and more particularly, relates to write combining and pre-fetching in computer memory systems.
Packet based network devices receive electronic messages or streams as sequences of packets. A packet is a formatted block of data carried by a computer network. Data from packets may be aligned arbitrarily when stored in memory causing fractions of cache memory lines to be written at packet boundaries. These fractions can cause expensive Read-Modify-Write (RMW) cycles to read the data, modify it, and then write the data back to memory. Further, write combining buffers may store these fractions and combine them with cache line fractions provided by subsequent packets from the same stream or message.
However, packets of a stream or message may be interleaved with packets from other streams or messages, separating accesses that could be write-combined, and thus reducing the probability of write-combining due to premature eviction of fractions from the write-combining buffer. Also, other store traffic, e.g., stores from a local processor, may use the write combining buffers, separating write-combinable accesses even further.
Therefore, a need exists for a method and/or apparatus to reduce interleaving packets of a stream or message and reduce separating write-combinable accesses. Moreover, it would be desirable for a method and/or apparatus to reduce the amount of Read-Modify-Write cycles caused by the alignment of packet boundaries when storing data in memory.
In an aspect of the present invention, a computing apparatus for reducing the amount of processing in a network computing system which includes a network system device of a receiving node for receiving electronic messages including data. The electronic messages are transmitted from a sending node, and the network system device determines when more data of a specific electronic message is being transmitted. A memory device stores the electronic message data and communicates with the network system device. A memory subsystem communicates with the memory device, and the memory subsystem stores a portion of the electronic message when more data of the specific message is being transmitted. The buffer combines the portion with later received data and moves the combined data to the memory device for accessible storage.
In a related aspect, the processor moves the data to the memory device using a Read-Modify-Write cycle.
In a related aspect, the memory subsystem includes a buffer.
In a related aspect, the memory subsystem includes a write combining buffer.
In a related aspect, the network system device includes a computer program for determining when more data is being transmitted of the specific electronic message.
In a related aspect, the network system device includes a hardware device for determining when more data is being transmitted of a specific electronic message.
In a related aspect, the electronic message includes an indicator communicating to the network system device that more data is being transmitted after the network system device receives the specific electronic message.
In a related aspect, the indicator is a write continuation flag indicating a write continuation.
In a related aspect, the flag tags a last portion of the electronic message to indicate to the memory subsystem to store the last portion longer than non-tagged portions.
In a related aspect, the apparatus further including a pre-fetch device executing a fetch of metadata upon initiation from the network system device for a next electronic message being stored in the memory device.
In a related aspect the memory device includes cache memory.
In a related aspect, the electronic messages include data packets.
In a related aspect, the network system device of the receiving node communicates with a communication link communicating with the sending node.
In a related aspect, the network system device is a computer having a processor.
In another aspect, a method for producing a computing apparatus for reducing the amount of processing in a network computing system comprises receiving electronic messages including data on a receiving node; transmitting the electronic messages from a sending node; determining when more data of a specific electronic message is being transmitted; storing the electronic message data; storing a portion of the electronic message when more data of the specific message is being transmitted; and combining the portion with later received data and moving the combined data to the memory device for accessible storage.
In a related aspect, the method further includes fetching metadata for a next electronic message being stored in a memory device.
These and other objects, features and advantages of the present invention will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings, in which:
An illustrative embodiment of a computing apparatus 20 according to the present invention and shown in
The processor 40 further communicates with a memory subsystem embodied as a write combining buffer 60. The write combining buffer is adapted to hold packet information including addresses, 64, a write continuation flag 70, and data 80. The buffer 60 holds a data packet while waiting for more packet data of the same message to be received. The buffer 60 communicates 62 with a memory device embodied as cache memory 100 for storing the data transmitted. The buffer 60 can execute a Read-Modify-Write command to the cache memory when it cannot combine a packet fraction with further write data.
An example of a data packet format is shown in
In operation, referring to
The write continuation information is also useful when retrieving metadata from the cache memory device 100 upon initiation from the processor 40 needed for the reception of the next packet. Metadata is data about a data packet which is descriptive information about a set of data, e.g., control information about whether to verify checksums of the packet, whether to discard a packet upon detection of an incorrect checksum or whether to notify a processor about the arrival of the packet. The memory subsystem buffer 60 uses the write continuation information to direct pre-fetch hardware 110 to fetch the metadata from main memory for the next packet and store it in the cache memory 100. This is beneficial as it reduces the time to retrieve the metadata when the next packet arrives, as it is then readily available in the cache memory 100, shortening overall packet processing time.
The illustrative embodiment of the apparatus 10 reduces the amount of Read-Modify-Write cycles to a memory device. Numerous Read-Modify-Write (RMW) cycles are caused by the alignment of packet boundaries when storing the packet to the cache memory 100. The RMW cycles are reduced by communicating message continuation information along with packet data, thus, extending the active time of the fragment in the write combining buffer, and increasing the probability of write combining. More specifically, the processor must initiate and execute a Read-Modify-Write command as new packets of data are received for the same message. The apparatus of the present invention reduces the amount of Read-Modify-Write cycles by explicitly signaling or flagging to the write combing buffer 60 that a write continuation is likely to occur in the near future and to wait for additional data packets 200 before writing the data associated with the flagged message to the cache memory 100, thereby changing the replacement policy decisions of the write combining buffer 60.
While the present invention has been particularly shown and described with respect to preferred embodiments thereof, it will be understood by those skilled in the art that changes in forms and details may be made without departing from the spirit and scope of the present application. It is therefore intended that the present invention not be limited to the exact forms and details described and illustrated herein, but falls within the scope of the appended claims.
The present invention is related to the following commonly-owned, co-pending U.S. patent applications filed on even date herewith, the entire contents and disclosure of each of which is expressly incorporated by reference herein as if fully set forth herein. U.S. patent application Ser. No. (YOR920070268US1 (21189)), for “A SHARED PERFORMANCE MONITOR IN A MULTIPROCESSOR SYSTEM”; U.S. patent application Ser. No. (YOR920070293US1 (21233)), for “OPTIMIZED COLLECTIVES USING A DMA ON A PARALLEL COMPUTER”; U.S. patent application Ser. No. (YOR920070295US1 (21232)), for “DMA SHARED BYTE COUNTERS IN A PARALLEL COMPUTER”; U.S. patent application Ser. No. (YOR920070297US1 (21208)), for “MULTIPLE NODE REMOTE MESSAGING”; U.S. patent application Ser. No. (YOR920070298US1(21209)), for “A METHOD AND APPARATUS OF PREFETCHING STREAMS OF VARYING PREFETCH DEPTH”; U.S. patent application Ser. No. (YOR920070299US1 (21212)), for “PROGRAMMABLE PARTITIONING FOR HIGH-PERFORMANCE COHERENCE DOMAINS IN A MULTIPROCESSOR SYSTEM”; U.S. patent application Ser. No. (YOR920070300US1 (21211)), for “METHOD AND APPARATUS FOR SINGLE-STEPPING COHERENCE EVENTS IN A MULTIPROCESSOR SYSTEM UNDER SOFTWARE CONTROL”; U.S. patent application Ser. No. (YOR920070301US1 (21210)), for “INSERTION OF COHERENCE EVENTS INTO A MULTIPROCESSOR COHERENCE PROTOCOL”; U.S. patent application Ser. No. (YOR920070302US1 (21216), for “METHOD AND APPARATUS TO DEBUG AN INTEGRATED CIRCUIT CHIP VIA SYNCHRONOUS CLOCK STOP AND SCAN”; U.S. patent application Ser. No. (YOR920070303US1 (21236)), for “DMA ENGINE FOR REPEATING COMMUNICATION PATTERNS”; U.S. patent application Ser. No. (YOR920070304US1 (21239)), for “METHOD AND APPARATUS FOR A CHOOSE-TWO MULTI-QUEUE ARBITER”; U.S. patent application Ser. No. (YOR920070305US1 (21238)), for “METHOD AND APPARATUS FOR EFFICIENTLY TRACKING QUEUE ENTRIES RELATIVE TO A TIMESTAMP”; U.S. patent application Ser. No. (YOR920070307US1 (21245)), for “BAD DATA PACKET CAPTURE DEVICE”; U.S. patent application Ser. No. (YOR920070322US1 (21255)), for “A SYSTEM AND METHOD FOR PROGRAMMABLE BANK SELECTION FOR BANKED MEMORY SUBSYSTEMS”; U.S. patent application Ser. No. (YOR920070323US1 (21246)), for “AN ULTRASCALABLE PETAFLOP PARALLEL SUPERCOMPUTER”; U.S. patent application Ser. No. (YOR920070324US1 (21264)), for “SDRAM DDR DATA EYE MONITOR METHOD AND APPARATUS”; U.S. patent application Ser. No. (OR920070337US1 (21281)), for “A CONFIGURABLE MEMORY SYSTEM AND METHOD FOR PROVIDING ATOMIC COUNTING OPERATIONS IN A MEMORY DEVICE”; U.S. patent application Ser. No. (YOR920070338US1 (21293)), for “ERROR CORRECTING CODE WITH CHIP KILL CAPABILITY AND POWER SAVING ENHANCEMENT”; U.S. patent application Ser. No. (YOR920070339US1 (21292)), for “STATIC POWER REDUCTION FOR MIDPOINT-TERMINATED BUSSES”; U.S. patent application Ser. No. (YOR920070340US1 (21295)), for “COMBINED GROUP ECC PROTECTION AND SUBGROUP PARITY PROTECTION”; U.S. patent application Ser. No. (YOR920070355US1 (21299)), for “A MECHANISM TO SUPPORT GENERIC COLLECTIVE COMMUNICATION ACROSS A VARIETY OF PROGRAMMING MODELS”; U.S. patent application Ser. No. (YOR920070356US1 (21263)), for “MESSAGE PASSING WITH A LIMITED NUMBER OF DMA BYTE COUNTERS”; U.S. patent application Ser. No. (YOR920070357US1 (21312)), for “ASYNCRONOUS BROADCAST FOR ORDERED DELIVERY BETWEEN COMPUTE NODES IN A PARALLEL COMPUTING SYSTEM WHERE PACKET HEADER SPACE IS LIMITED”; U.S. patent application Ser. No. (YOR920070361US1 (21215)), for “HARDWARE PACKET PACING USING A DMA IN A PARALLEL COMPUTER”; and U.S. patent application Ser. No. (YOR920070371US1 (21335)), for “POWER THROTTLING OF COLLECTIONS OF COMPUTING ELEMENTS”.
The U.S. Government has a paid-up license in this invention and the right in limited circumstances to require the patent owner to license others on reasonable terms as provided for by the terms of Contract. No. B554331 awarded by the Department of Energy.