Научная статья на тему 'The amendment to Amdahl ` s the law'

The amendment to Amdahl ` s the law Текст научной статьи по специальности «Компьютерные и информационные науки»

CC BY
46
17
i Надоели баннеры? Вы всегда можете отключить рекламу.

Аннотация научной статьи по компьютерным и информационным наукам, автор научной работы — V. A. Smagin

Law Amdahl, sometimes also law Аmdahl-Uer, shows restriction of growth of productivity of the computing system with increase of quantity of calculators. It also is applicable to collective of people solving a problem, admitting parallels decisions between its members. John Amdahl has formulated the law in 1967, having found out idle time in essence, but insuperable restriction under the maintenance on growth of productivity at parallels calculations: «In a case when the problem is divided on some parts, total time of its performance for parallel system can not be less time of performance of the longest fragment ». According to this law, acceleration of performance of the program for the account parallels its instructions on set of calculators is limited to time necessary for performance of its consecutive instructions

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Текст научной работы на тему «The amendment to Amdahl ` s the law»

THE AMENDMENT TO AMDAHL ' S THE LAW

V.A. Smagin

INTRODUCTION

Law Amdahl, sometimes also law Аmdahl-Uer, shows restriction of growth of productivity of the computing system with increase of quantity of calculators. It also is applicable to collective of people solving a problem, admitting parallels decisions between its members. John Amdahl has formulated the law in 1967, having found out idle time in essence, but insuperable restriction under the maintenance on growth of productivity at parallels calculations: «In a case when the problem is divided on some parts, total time of its performance for parallel system can not be less time of performance of the longest fragment ». According to this law, acceleration of performance of the program for the account parallels its instructions on set of calculators is limited to time necessary for performance of its consecutive instructions.

If to assume, that it is necessary to solve some computing problem with computing algorithm which a share from total amount of calculations can be received only by consecutive calculations, and the share 1 - a can parallels be ideal (that is time of calculation will be in inverse proportion to number of the involved calculators p) then acceleration on the computing system from p processors, in comparison with the uniprocessor decision will not exceed size

a +

1 - a

(1)

1

Law Amdahl shows, that the gain of efficiency of calculations depends on algorithm of a problem and is limited from above for any problem with a ^ 0. Not for any problem escalating number of processors in the computing system is meaningful. Moreover, if to take into account time necessary for data transmission between processors of the computing system dependence of time of calculations on number of processors will have a maximum. It imposes restriction on we scaleing the computing system that means, that from the certain moment addition of new processors in system will increase time of the decision of a problem.

As analogue of law Amdahl law Gustavson-Barsis serves. It agrees to it an estimation of maximum achievable acceleration of performance of the parallel program depending on quantity of simultaneously carried out streams of calculations (processors) and shares of consecutive calculations of the program it is defined by the formula:

Sp = a + (1 - a)p = p + (1 - p)a . (2)

The given estimation of acceleration name acceleration of scaling (scaled speedup) as this characteristic shows as far as parallel calculations can be effectively organized at increase of complexity of decided(solved) problems.

T

The proof (2) uses the attitude Sp = —, in which TX,T - time of the decision of a problem for

Tp

-c(n)

one and p processors. The size of a share of consecutive calculations a =-, where

r(n) + n(n)/ p

r(n) time of a consecutive part of the program, and 7(n)time of a part of the program which can

, г™ о T (T(n) + 7t(n)/p)(a + (1 - a)p , , ^

be распараллелена is entered. Then Sp =— =-, the formula (2)

Tp z(n) + 7t(n)/ p

whence follows.

It is necessary to notice, that formulas (1) and (2) are not equivalent. The values calculated on them coincide only at a = 0 and a = 1. In a range of values 0 < a < 1 formula (1) in comparison with the formula (2) gives higher result of acceleration.

The purpose of present article is corrective action in law Amdahl represented by the formula (1).

THE AMENDMENT TO LAW AMDAHL

We shall take into account the remark that « if to take into account time necessary for data transmission between processors of the computing system dependence of time of calculations on number of processors will have a maximum. It imposes restriction on we scaleing the computing system that means, that from the certain moment addition of new processors in system will increase time of the decision of a problem ».

Let's make the following assumption: the share of time of the parallel decision of a problem on p processors will develop of two components. The first component corresponds to valid or real time of the parallel decision of a problem to each of p processors. She is less, than the specified

1 — a 1 — a

size in law Amdahl - on size A(a, p)-. This, second component, defines total expected

p p

expenses of time for definition of an opportunity paralleling algorithm of a problem and the organization paralleling with transfer of the necessary information to each processor of system for the subsequent performance by all processors of their independent parts of full algorithm of a problem. It is obvious, that with increase of quantity of processors in system the share of an expense of time for performance of parallel work of processors should be increased. It is finally possible to write down the following expression for acceleration of the computing system:

sp =-Ц- • (3)

a + (1 — a)(— + kpn)

In the formula (3) k,n uncertain constants, which sizes depend on a kind of the program which is necessary for realizing in the computing system. Definition of values of these factors in given article is not considered it is considered. It represents a separate independent problem. The decision of this problem, in our opinion, should to be based on experimental data or analytical researches with subsequent use of necessary model numerical estimating.

The optimum number of processors at the found values of sizes k, n is defined under the

formula p0 = 1 + trunc(n+l\—), where trunc(x) the greatest whole part of number x.

V kn

EXAMPLE OF CALCULATION OF ACCELERATION

Let at research of some program it is established, that a = 0,2; k = 0,01; n = 3 . The result of calculation of size of acceleration is shown in figure 1.

S(p)

10

15

P

Fig. 1.

From him follows, that the maximal value Sp = 1,465. It is achieved at the number of

1 n

processors equal p0 = 3. Thus — = 0,333; kp0 = 0,272 and shares of expenses of time for

Po

actually parallel calculations and their organization will make accordingly (1 - a)/p0 = 0,267; (1 - a)kp0n = 0,216.

CONCLUSION

Law Amdahl is known, allowing to establish the maximal size of acceleration of calculations of the system consisting of given quantity of processors, at the certain parity of a consecutive and parallel part of calculations of the program.

The given law does not allow to take into account system expenses of time for decision making and manufacture of parallel calculations in system.

The amendment to law Amdahl is offered, allowing in a quantitative kind to take into account the specified expenses of time. At presence of the given amendment acceleration of calculations of system reaches the maximal value at some optimum number of processors. The further increase of their quantity does not result in increase of acceleration of calculations.

Use of law Amdahl with the entered amendment allows to define optimum number of processors of the computing system for the organization in it of parallel calculations. Results of article can be used and in other systems with the parallel organization of work of their parts.

REFERENCES

1. Boyd J.R. A Discourse on Winning and Losing. Unpublished Briefing Slides. -1992.

2. Smagin V.A. Bas of the theory of reliability of the software. - Saint Petersburg. - 2009. - 355 p.

0

5

i Надоели баннеры? Вы всегда можете отключить рекламу.