Formula for allocation of server capacity

AI Thread Summary
In a shared server environment, calculating user resource allocation involves determining the percentage of total CPU, memory, and disk space each user requests. For example, with a server having 2.88 GHz CPU, 16 GB memory, and 146 GB disk space, a user requesting 1 GHz CPU, 2 GB memory, and 2 GB disk would occupy a specific percentage of these resources. To allocate costs effectively, users can be charged based on their requested resources, with pricing reflecting the value of each resource type. The discussion highlights the importance of understanding resource allocation in terms of percentages rather than absolute usage in GHz. Overall, accurate resource allocation is crucial for cost management in shared server environments.
Nick Curtis
Messages
4
Reaction score
0
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
 
Computer science news on Phys.org
Now I don't know what operating system your using, but you can do what you want VERY easily in Linux and Unix. All you have to do is edit /etc/security/limits.conf

In this file you tell it exactly how much resources a user can have and what priority they get it at.

I would suggest doing research on this file and see how you want to set it up.
 
Last edited:
Thanks

The point is I'm trying to allocate a cost to each user, of the overall server cost, before they go live. Therefore there isn't any data to collect usage figures against. Even if there was I need to charge them before they use the box. Therefore I have to understand what allocation they are requesting.

cheers
 
Why is it so difficult to allocate a cost to each user? Just put a price per Mhz or per GB that the user would be willing to pay and just add up the totals. The pricing should also be according to which resource is more valuable. For example hard drives space is very cheap compared to CPU speed.
 
Well the way the question is phrased seems pretty odd. What exactly is a "shared server enviroment". Do they mean just a multitasking OS? Also, what exactly is meant by cost. Do they just want a percentage? So if you use 2 Gb of memory and their are 8 Gb total, you are using 25%?

Division of CPU time is certainly not measured in Ghz usage. You don't "use up" clock frequency. If the processor is running at 2.2 Ghz, it doesn't matter if its doing nothing, its always going to running at 2.2 Ghz. Processes are allocated small time slices. On certain operating systems such as Linux, you can tell a process to be "nice" and not request all the time available. Look up the Linux command nice if you have it installed. I'm not familiar of a way to do this in Windows.
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top