The present invention relates to computers and, in particular, to a modified machine architecture which enables improved performance to be achieved.
Ever since the advent of computers, and computing, software for computers has been written to be operated upon a single machine. As indicated in
A fundamental limit to the performance of the machine 1 is that the data to be manipulated by the CPU 2, and the results of those manipulations, must be moved by the bus 4. The bus 4 suffers from a number of problems including so called bus “queues” formed by units wishing to gain an access to the bus, contention problems, and the like. These problems can, to some extent, be alleviated by various stratagems including cache memory, however, such stratagems invariably increase the administrative overhead of the machine 1.
Naturally, over the years various attempts have been made to increase machine performance. One approach is to use symmetric multiple processors. This prior art approach has been used in so called “super” computers and is schematically indicated in
Where there are a number of such machines interconnected via a network, this is achieved by taking the single application written for a single machine and partitioning the required memory resources into parts. These parts are then distributed across a number of computers to form the global memory 13 accessible by all CPU's 12. This procedure relies on masking, or hiding, the memory partition from the single running application program. The performance degrades when one CPU on one machine must access (via a network) a memory location physically located in a different machine.
Although super computers have been technically successful in achieving high computational rates, they are not commercially successful in that their inherent complexity makes them extremely expensive not only to manufacture but to administer. In particular, the single system image concept has never been able to scale over “commodity” (or mass produced) computers and networks. In particular, the Single System Image concept has only found practical application on very fast (and hence very expensive) computers interconnected by very fast (and similarly expensive) networks.
A further possibility of increased computer power through the use of a plural number of machines arises from the prior art concept of distributed computing which is schematically illustrated in
Distributed computing suffers from a number of disadvantages. Firstly, it is a difficult job to partition the application and this must be done manually. Secondly, communicating data, partial results, results and the like over the network 14 is an administrative overhead. Thirdly, the need for partitioning makes it extremely difficult to scale upwardly by utilising more machines since the application having been partitioned into, say three, does not run well upon four machines. Fourthly, in the event that one of the machines should become disabled, the overall performance of the entire system is substantially degraded.
A further prior art arrangement is known as network computing via “clusters” as is schematically illustrated in
The object of the present invention is to provide a modified machine architecture which goes some way towards overcoming, or at least ameliorating, some of the abovementioned disadvantages.
In accordance with a first aspect of the present invention there is disclosed a plurality of computers interconnected via a communications link and operating at least one application program simultaneously.
In accordance with a second aspect of the present invention there is disclosed a method of loading an application program onto each of a plurality of computers, the computers being interconnected via a communications link, the method comprising the step of modifying the application as it is being loaded.
In accordance with a third aspect of the present invention there is disclosed a method of operating at least one application program simultaneously on a plurality of computers all interconnected via a communications link and each having at least a minimum predetermined local memory capacity, said method comprising the steps of:
In accordance with a fourth aspect of the present invention there is disclosed a method of compiling or modifying an application program to run simultaneously on a plurality of computers interconnected via a communications link, said method comprising the steps of:
In accordance with a fifth aspect of the present invention there is disclosed in a multiple thread processing computer operation in which individual threads of a single application program are simultaneously being processed each on a corresponding one of a plurality of computers interconnected via a communications link, the improvement comprising communicating changes in the contents of local memory physically associated with the computer processing each thread to the local memory of each other said computer via said communications link.
Embodiments of the present invention will now be described with reference to the drawings in which:
In connection with
As a consequence of the above described arrangement, if each of the machines M1, M2 . . . Mn has, say, a shared memory capability of 10 MB, then the total shared memory available to the application is not, as one might expect 1 On MB but rather only 10 MB. However, this results in improved operation will become apparent hereafter. Naturally, each machine has an unshared memory capability. The unshared memory capability of the machines are normally approximately equal but need not be.
It is known from the prior art to operate a machine (produced by one of various manufacturers and having an operating system operating in one of various different languages) in a particular language of the application, by creating a virtual machine. Thus, where the intended language of the application is the language JAVA, a JAVA virtual machine is created which is able to operate code in JAVA irrespective of the machine manufacturer and internal details of the machine.
This well known prior art arrangement is modified in accordance with the preferred embodiment of the present invention by the provision of an additional facility which is conveniently termed “distributed run time” or DRT. In particular, the distributed run time comes into operation during the loading of the JAVA code so as to initially create the JAVA virtual machine. The sequence of operation during loading will be described hereafter in relation to
Turning now to
The next phase of the modification procedure is to search through the executable application code in order to locate every processing activity that manipulates field values or writes to field values. When such an operation (typically put static or put field) is detected which changes the field, then through the “instrument” instruction the byte code at that point in the program is changed to insert an alert to the DRT that the value of the field has changed. Thereafter, the loading program continues in a normal way.
Once this initial modification during the loading procedure has taken place, then either one of the multiple thread processing operations illustrated in
In the alternative arrangement illustrated in
In the prior art arrangement utilising distributed software, memory accesses from one machine's software to memory physically located on another machine are permitted by the network interconnecting the machines. However, such memory accesses can result in delays in processing of the order of 106-107 cycles of the central processing unit of the machine. This in large part accounts for the diminished performance of the multiple interconnected machines.
However, in the present arrangement as described above, it will be appreciated that all reading of data is satisfied locally because the current value of all fields is stored on the machine carrying out the processing which generates the demand to read memory. Such local processing can be satisfied within 102-103 cycles of the central processing unit. Thus, in practice, there is substantially no waiting for memory accesses which involves reads.
However, most application software reads memory frequently but writes to memory relatively infrequently. As a consequence, the rate at which memory is being written or re-written is relatively slow compared to the rate at which memory is being read. Because of this slow demand for writing or re-writing of memory, the fields can be continually updated at a relatively low speed via the inexpensive commodity network, yet this low speed is sufficient to meet the application program's demand for writing to memory.
In a further modification in relation to the above, the changes to fields can be grouped into batches so as to further reduce the demands on the communication speed of the network interconnecting the various machines.
It will also be apparent to those skilled in the art that in the table created by each DRT when initially recording the fields, for each field there is a name which is common throughout the network and which the network recognises. However, in the individual machines the memory location corresponding to a given name field will vary over time since each machine will progressively store changed field values at different locations according to its own internal processes. Thus the table in each of the DRTs will have, in general, different memory locations but each “field name” will have the same “field value” stored in the different memory locations.
It will also be apparent to those skilled in the art that the abovementioned modification of the application program during loading can be accomplished in up to four ways by re-compilation at loading, by a pre-compilation procedure prior to loading, by a “just-in-time” compilation, or by re-compilation after loading. Traditionally the term “compilation” implies a change in code or language, eg from source to object code or one language to another. Clearly the use of the term “compilation” (and its grammatical equivalents) in the present specification is not so restricted and can embrace modifications within the same code or language.
Turning now to
Two simple application programs are downloaded onto each of the machines 101, 102, the programs being modified as they are being loaded as described above. In this embodiment the first application is a simple calculator program and results in the image of a calculator 108 being displayed on the screen 105. The second program is a graphics program which displays four coloured blocks 109 which are of different colours and which move about at random within a rectangular box 110. Again, after loading, the box 110 is displayed on the screen 105. Each application operates independently so that the blocks 109 are in random motion on the screen 105 whilst numerals within the calculator 108 can be selected (with the mouse 107) together with a mathematical operator (such as additional multiplication) so that the calculator 108 displays the result.
The mouse 107 can be used to “grab” the box 110 and move same to the right across the screen 105 and onto the screen 115 so as to arrive at the situation illustrated in
However, as illustrated in
The foregoing describes only some embodiments of the present invention and modifications, obvious to those skilled in the art, can be made thereto without departing from the scope of the present invention.
The term “comprising” (and its grammatical variations) as used herein is used in the inclusive sense of “having” or “including” and not in the exclusive sense of “consisting only of”.
This patent specification contains material which is subject to copyright protection. The copyright owner (which is the applicant) has no objection to the reproduction of this patent specification or related materials from publicly available associated Patent Office files for the purposes of review, but otherwise reserves all copyright whatsoever. In particular, the various instructions are not to be entered into a computer without the specific written approval of the copyright owner.
The following are program listings in the JAVA language: