Allocated capacity calculation

AI Thread Summary
In a shared server environment, calculating the percentage of total capacity used by a user involves assessing CPU, memory, and disk space. A suggested formula is to normalize each variable and multiply them, yielding a percentage of total capacity utilized. For example, using the values provided, the formula would be (1/2.88 * 2/16 * 2/146) * 100. To enhance accuracy, additional factors can be incorporated to reflect the varying importance of each resource, particularly emphasizing disk space over memory and CPU. This approach helps in understanding resource allocation more effectively.
Nick Curtis
Messages
4
Reaction score
0
:shy: Can anyone help? I have an interesting issue. I've chosen to study maths and computer science and one of the problems I've been asked to solve, potentially using a 3D Modeling formula is:

In a Shared Server environment, where total capacity of a server is measured by total CPU capacity, total disk capacity and total memory capacity, I need a formula to help me understand how much each user is requesting of the total capacity.

By example:
On a single server total CPU is 2.88 Ghz, 16Gb Memory and 146Gb of Disk Space.
I have a user who only wants to use 1Ghz CPU, 2Gb Mem and 2Gb of Disk Space. What formula can I use that tells me what percentage of the total capacity of the machine this person is requiring?

thanks for any help
Nick
 
Mathematics news on Phys.org
A pretty naive formula i can think of is,
Normalise each variable and multiply them up and multiply by 100 ...

In your example, this would mean,
(1/2.88 * 2/16 * 2/146)*100

A much more precision in analysis may be obtained if we add some factors,
(1/2.88 * (x+2/16) * (y+2/146))*100

where x(<=1) and y(<=1) are factors that may be manually adjusted to suit the requirements. (The x and y factors are added because disk space requirements are harsher than physical memory requirements and much much harsher than CPU requirements)

-- AI
P.S -> You prolly should have posted this in software section where u could have got a few more answers.
 
thanks

thanks for the reply. At least I have some idea now but I'll post in the software section as well.


cheers
Nick
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Back
Top