From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f4b6e35879a20951,start X-Google-Attributes: gid1164f8,public From: Jayavel Shanmugasundaram Subject: Question Date: 1997/07/08 Message-ID: <0g67ulxn5e.fsf@ravenswood.cs.umass.edu> X-Deja-AN: 255585909 Organization: Department of Computer Science, University of Massachusetts Newsgroups: comp.sys.dec I have been trying to find an explanation for a phenomenon which, I think, has something to do with either the scheduling algorithms in Alphas or network transmission delays. I would be grateful if someone could verify any of the hypothesis or propose other reasons for the problem. I have a client-server system in which the client communicates with the server using remote procedure calls. The client and server both run on separate 166 MHz DEC Alphas running Digital UNIX V3.2C (Rev. 148). The remote procedure call layer uses TCP as the underlying communication layer (though the problem I am going to describe occurs even when UDP is used as the underlying communication layer). The two Alphas are part of a 10 Mbps LAN. The client performs 2000 remote procedure calls with complexity X. For each run of the experiment, each procedure call performs exactly the same sequence of operations and thus has the same complexity. When X = 1 (a very simple operation involving a maximum of 100s of machine instructions) a set of instructions is executed at the client for each procedure call. When X = 10 (say), the initial set of instructions is executed 10 times. In general, the initial set of instruction is executed X times when a procedure has operation complexity X. The return results are of the same size irrespective of the operation complexity. When the client performs 2000 RPCs with operation complexity 1, the timing information for the client and server are: Client Server ------ ------ Total Elapsed Time: 15.55 16.50 User Time: 6.46 4.84 System Time: 2.87 2.95 When the client performs 2000 RPCs with operation complexity 31, the timing information for the client and server are: Client Server ------ ------ Total Elapsed Time: 15.58 16.22 User Time: 6.55 7.45 System Time: 2.76 3.08 When the client performs 2000 RPCs with operation complexity 61, the timing information for the client and server are: Client Server ------ ------ Total Elapsed Time: 15.88 17.00 User Time: 6.68 10.05 System Time: 2.89 3.10 When the client performs 2000 RPCs with operation complexity 91, the timing information for the client and server are: Client Server ------ ------ Total Elapsed Time: 16.36 17.88 User Time: 6.47 12.48 System Time: 2.77 3.02 When the client performs 2000 RPCs with operation complexity 121, the timing information for the client and server are: Client Server ------ ------ Total Elapsed Time: 17.77 20.47 User Time: 6.69 15.56 System Time: 2.92 2.59 When the client performs 2000 RPCs with operation complexity 151, the timing information for the client and server are: Client Server ------ ------ Total Elapsed Time: 20.18 22.97 User Time: 6.48 18.18 System Time: 2.84 2.59 As expected, the user time at the client is constant (this is the time required to make the remote procedure calls) and the system time at the client is constant (this is the time required to send the request on the network within the OS). In the server, the system time is constant (this is the time required to send the reply on the network within the OS). The user time at the server increases linearly with operation complexity (as is to be expected). The problem is that the total elapsed time does not increase (in both the client and the server) till a particular operation complexity (91 in this case). This led me to conclude that there was something going on within the OS or the network which caused this lack of response to operation complexity. The two theories are: Scheduling within OS: --------------------- Since the process which makes socket calls and the process which actually sends data on the network are separate, a scheduling delay (dependent on the scheduling algorithm) causes small differences in time to be ignored. Network Delays: --------------- I ruled out the possibility of buffering in TCP. This is because the timer it uses is of the order of 200 ms, way too much for the experiment at hand where each operation takes, on the average, about 16/2000 = 8 ms. Besides this problem occured even when UDP was used as the underlying transport layer. So, the only other possibility could be some sort of delay at the physical layer which could be occuring. I would be grateful is someone could comment on these hypothesis and/or put forth other theories. Jai.