11email: [email protected]
A New Fairness Model based on User’s Objective for Multi-user Multi-processor Online Scheduling
Abstract
Resources of a multi-user system in multi-processor online scheduling are shared by competing users in which fairness is a major performance criterion for resource allocation. Fairness ensures equality in resource sharing among the users. According to our knowledge, fairness based on the user’s objective has neither been comprehensively studied nor a formal fairness model has been well defined in the literature. This motivates us to explore and define a new model to ensure algorithmic fairness with quantitative performance measures based on optimization of the user’s objective. In this paper, we propose a new model for fairness in Multi-user Multi-processor Online Scheduling Problem(MUMPOSP). We introduce and formally define quantitative fairness measures based on user’s objective by optimizing makespan for individual user in our proposed fairness model. We also define the unfairness of deprived users and absolute fairness of an algorithm. We obtain lower bound results for the absolute fairness for -identical machines with equal length jobs. We show that our proposed fairness model can serve as a framework for measuring algorithmic fairness by considering various optimality criteria such as flow time and sum of completion times.
Keywords:
Multi-user System Scheduling Makespan Performance Measure Fairness.1 Introduction
Supercomputers, grids and clusters in High Performance Computing(HPC) and web servers in client-server networking have gained immense practical significance as Service Oriented System(SOS) in modern day computation [1]. Unlike the traditional computing system such as personal computer, the SOS supports multiple users. The users compete for system’s resources for execution of their jobs. The most popular cluster scheduler MAUI [2] and the well-known BOINC platform [3] deal with a number of competing users, where each user submits a set of jobs simultaneously and seeks for a minimum time of completion(makespan) for their respective submissions. A non-trivial challenge for the SOS is to ensure fair scheduling of jobs for multiple users while optimizing their respective makespans.
In this paper, we define and quantify fairness as a performance measure based on user’s objective for any resource allocation algorithm in multi users HPC systems. Particularly, we consider processors as the resources to be shared and makespan as the user’s objective in the Multi-user Multi-processor Online Scheduling Problem(MUMPOSP). We formally define the MUMPOSP as follows.
Multi-user Multi-processor Online Scheduling Problem(MUMPOSP)
-
•
Inputs: We are given a set of identical processors, i.e. = and a set of jobs, where and . Let represents a user, where and is the sequence of jobs requested by user , where = such that =, = and =, where and . The processing time of job is , where .
-
•
Output: Generation of a Schedule() in which makespan for each user () is denoted by =, where is the completion time of job
-
•
Objective: Minimize , .
-
•
Constraint: The scheduler can receive a batch of at most jobs at any time step and the jobs must be irrevocably scheduled before the arrival of next batch of jobs, where .
-
•
Assumption. The jobs are independent and are requested from parallel users, where
Illustration of MUMPOSP.
For simplicity and basic understanding of the readers, we illustrate an instance of MUMPOSP for scheduling of jobs that are submitted by users() as shown in Figure 1. Here, , ,…, represent identical machines and , ,…,, denote job sequences for users. Here, each user has jobs. Jobs are submitted in batches online, where a batch is constructed after receiving exactly one job from each user(as long as an user has an unscheduled job). A batch consists of at least one job. Therefore, we have at least batch, where = and at most batches, where any one of the users has = and remaining users have exactly one job each. Each user() seeks to obtain a minimum value for its makespan() as the output, rather than the overall makespan() of the system. Hence, it is indispensable for the scheduler to be fair while optimizing the for each user.

Representation of MUMPOSP. By following general framework of Graham et al.[16], we represent MUMPOSP as , where denotes -identical machines and is the number of users.
Perspectives of Fairness.
Fairness has been considered as a major performance criterion for the scheduling algorithms in multi-user systems [4, 5]. Fairness has been studied from two perspectives such as allocation of resources to the users and user’s objective. Fairness of an algorithm with respect to resource allocation, guarantees uniform allocation of resources to the competing users [6]. The resources to be shared are application dependent. For example, in client-server networking, the shared resources may be throughput or network delay or specific time quantum [7, 8], whereas in distributed systems, the resources may be processors or memory or time slice [9, 10].
Algorithmic fairness based on user’s objective is evaluated by the objective values achieved for respective users. An equality in the obtained objective values for a user ensures fairness of a scheduling algorithm. It is important for a fairness measure to define the equality for quantifying how far an achieved objective value is far from the defined equality.
Related Work. Fairness as a quantitative performance measure based on resource allocation was comprehensively studied by Jain et al. [6]. A set of properties for an ideal fairness measure was defined and a fairness index was proposed for resource allocation schemes. If any scheduling algorithm assigns resources to competing users such that user gets an allocation of . then is defined as follows.
=, where .
The value of is bounded between and to meaningfully show percentage of fairness and discrimination of a resource allocation scheme for each user. Fairness based on sharing of resources such as processors, memory, system clock and system bus in multi-programmed multi-user system was well studied in [9-11]. Some recent works with contributions on algorithmic fairness of online scheduling can be found in [17-18]. According to our knowledge, study of fairness based on user’s objective has not been exhaustively studied in the literature.
In [12-15], stretch matrix has been considered as a user’s objective based fairness measure for resource scheduling algorithms in multi-user system. Stretch() is defined as a degradation factor in the objective value obtained by any algorithm A for each user . Let us consider is the objective value achieved by algorithm A and is the optimum objective value for respective . Now, stretch can be defined as
=
The objective of any scheduling algorithm is to incur an equal stretch for each to ensure fairness. Stretch matrix guarantees fairness based on equality in achieved objective values. However, it fails to bound the fairness and unable to show the exact value of fairness per user as well as overall fairness of a scheduling algorithm. Further, the discrimination of any scheduling algorithm for the deprived users can not be captured by the stretch matrix. Therefore, it is quintessential to define a formal fairness measure based on user’s objective.
Our Contribution. In our work, we propose a new model for fairness in Multi-user Multi-processor Online Scheduling Problem(MUMPOSP). We introduce and formally define quantitative fairness measures based on user’s objective by optimizing makespan for individual user in our proposed fairness model. We also define the unfairness of deprived users and absolute fairness of an algorithm. We obtain lower bound results for the absolute fairness for -identical machines with equal length jobs. We show that our proposed fairness model can serve as a framework for measuring algorithmic fairness by considering various optimality criteria such as flow time and sum of completion times.
2 Our Proposed Fairness Model
We develop a new fairness model in which, we define five quantitative measures to ensure algorithmic fairness. Instead of considering the resource allocation at the input level, the model considers the achieved value of user’s makespan at the output level to determine the fairness of a scheduling algorithm. The model captures the issues of relative and global parameters for fairness by a Fairness Index(FI). The issues of unfairness is captured by a Discrimination Index(DI). The FI includes fairness measures such as Relative Fairness(RF) and Global Fairness(GF). Higher value of any fairness measure indicates more fair algorithm. The DI includes unfairness measures such as User Discrimination Index(UDI), Global Discrimination Index(GDI) and Relative Discrimination Index(RDI). Lower value of any unfairness measure indicates more fair algorithm. Before defining the fairness measures, we illustrate our proposed fairness model and discuss the characteristics of a good fairness model as follows.
Illustration of our Proposed Fairness Model. We illustrate our proposed fairness model as shown in Figure 2. The model considers the MUMPOSP and captures the fairness of online scheduling algorithm by considering the makespan() of individual user at the output.

2.1 Characteristics of a Good Fairness Model
Motivated by the seminal work of Jain et al. [6] for characterization of a good fairness model, we capture the following essential properties in our model to develop our fairness measures.
-
•
Independent of Input Size. A model must be applicable to any number of users irrespective of the number of jobs offered by the users and availability of any number of machines.
-
•
Independent of Scale. The model should be independent of unit or scale of measurement. The model should be able to measure fairness irrespective of the fact that processing time of the jobs are given in seconds or micro-seconds or nano-seconds. The measuring unit must be uniform or inter convertible.
-
•
Finitely Bounded. The model must bound the value of fairness measure within a finite range, preferably between and such that percentage of fairness for respective users can easily be determined.
-
•
Consistent. If any change in the scheduling policy results in different makespan for at least one user, then the change in the fairness measure must be reflected to the concerned users as well as to the overall fairness of the policy.
In addition to the above mentioned properties from the literature, we also consider relative and overall fairness as en essential feature to develop our fairness measures. The model must represent relative equality among achieved objective values for the users to show user’s fairness of an algorithm. For example, the users may not seek equal makespan as a gesture of fairness, however, they require to obtain an equal ratio between the desired makespan(optimum value) to the achieved makespan for all users. The value obtained by an algorithm for relative equality leads to relative fairness with respect to each user. Also, the model should show overall fairness of the algorithm with respect to all users.
2.2 Our Proposed Fairness Measures
By considering the above mentioned desirable properties, we now define formal measures of fairness and unfairness for MUMPOSP as follows.
If any algorithm A, schedules jobs of competing users on parallel machines such that user obtains a makespan of , then we define the following measures.
Definition 1
The Relative Fairness(RF) obtained by algorithm A for any user is defined by
=, where, = (1)
Corollary 1
The Relative Fairness Percentage(RFP) for any user obtained by algorithm A is defined by
= (2)
Definition 2
The Global Fairness(GF) of algorithm A for users is defined by
= (3)
Corollary 2
The Global Fairness Percentage(GFP) of any algorithm A for users is defined by
= (4)
Again, if any algorithm A, schedules jobs of competing users such that user obtains a makespan of , then we define Fairness Index for algorithm A represented by -tuple with two parameters such as and as follows
= (5)
Example 1: Let us consider users , and with jobs =, = and = respectively. Suppose any algorithm A schedules the jobs of , and such that =, = and =, then we have, == and =, == and =, == and =. Therefore, we have = and =.
Definition 3
The Unfairness of any algorithm A for MUMPOSP with respect to each user is defined by User Discrimination Index as
= (6)
Definition 4
The Overall Unfairness of algorithm A for users is defined by Global Discrimination Index as
= (7)
Definition 5
The Realtive Discrimination Index(RDI) of any algorithm A for MUMPOSP with respect to each user is defined as
=, if
=, otherwise (8)
Again, if any algorithm A, schedules jobs of competing users such that user obtains a makespan of , then we define Discrimination Index for algorithm A as -tuple with three parameters such as , and as follows.
= (9)
Example 2: Let us consider any algorithm A results relative fairness for , , and as , , and respectively. We now have =. Therefore,==, ==, ==, ==, == and ==.
3 Absolute Fairness and Lower Bound Results
We define absolute fairness as a quantitative measure and provide lower bound results for characterization of the same as follows.
Definition 6
Any algorithm A achieves Absolute Fairness if is the same .
Lemma 1. If any algorithm A incurs =, , then it achieves absolute fairness.
Proof. If =, , then by Eq. (8), we have
(10)
By Eqs. (3) and (10), we can infer that =,
Therefore Lemma 1 holds true.
Definition 7
Any Algorithm A is -fair, if it achieves = for all , where .
Theorem 1. Any algorithm that achieves absolute fairness for must be at least -fair, where and .
Proof. Let us consider an instance of , where =. We analyze two cases based on as follows.
Case : .
Case .(a): If the first job pair() are scheduled on different machines. Let us consider the following instance , , where each job is specified by its processing time. Assigning and to machines and respectively followed by the assignment of to either of the machines such that = and =, where and . Therefore, we have and
Case .(b): If the first job pair() are scheduled on the same machine. Let us consider the following instance , . If the first job pair() are scheduled either on machine or on , then by assigning the next pair of jobs () to the same or different machines, followed by the assignment of job such that = and =, where and . Therefore, we have and .
Case 2: =.
Case 2.(a): If the first job pair() are scheduled on different machines. Let us consider the following instance , . Assigning jobs and to machines and respectively, followed by the assignment of the subsequent jobs as shown in Figure 3.(a), such that = and =, where and . Therefore, we have and .
Case 2.(b): If the first job pair() are assigned to the same machine. We consider the same instance of Case 2.(a). Assigning and on either machine or on , followed by the assignment of the subsequent jobs as shown in Figure3.(b) such that = and =. Therefore, we have and .

3.1 Results on Absolute Fairness in MUMPOSP with Identical Machines for Equal Length Jobs
For ease of understanding, we analyze the lower bound of absolute fairness for any algorithm in a generic MUMPOSP setting, where each user has equal number of jobs and all jobs have equal processing time of unit, where . The objective of each user is to obtain a minimum . We formally denote the problem as MUMPOSP(=).
Lemma 2. In MUMPOSP(=) with =, any algorithm A obtains , for each respectively, where , and .
Proof. We proof Lemma 2 by method of induction on number of jobs per user () as follows.
Induction Basis: Let us consider ==, == and ==.
Clearly, =, where = and .
Induction Hypothesis: Let us consider =, ==, where , and =
We assume that (11)
Inductive Step: For = with =, . We have to show that .
By Eq. (11), we have = with =. When we add extra one job to each user, we have by Induction Basis ==. Therefore, Lemma 2 holds true.
Lemma 3. Any algorithm A is -fair for MUMPOSP(=) with =, where and .
Proof. By Lemma 2, we have , (12)
We have the fair optimum bound as , (13)
By Eqs. (12) and (13), we have , .
Therefore, Lemma 3 holds true.
Lemma 4. In MUMPOSP(=) with , any algorithm A obtains , for each respectively, where for .
Proof. The correctness of Lemma 4 is shown by method of induction on as follows.
Induction Basis: Let us consider =, =, = and =. Now, we have ==.
Clearly, =
Induction Hypothesis: Let us consider ==, = and with for .
We assume that , .
Inductive Step: We show that for =, .
By our Induction Basis, for one extra job of each user , where , algorithm A incurs an additional time of for each .
Therefore,
Thus, Lemma 4 holds true.
Theorem 2. Any Algorithm A is -fair for MUMPOSP(=), where and .
Proof. Theorem 2 holds true by Lemma 3 for =, where .
By Lemma 4, we have (14)
By Eq. (13), we have
Implies (15)
By Eqs. (14) and (15), we have
4 Fairness Measure using Flow Time and Completion Time as User’s Objective
We show that our proposed Fairness Index can be served as a framework for measuring fairness of any algorithm based on well-known user’s objectives such as sum of completion times() or weighted sum of completion times() or sum of flow times(). Selection of an user’s objective is application dependent. For instance, users of interactive systems require optimized value for respective flow time , where of any is the difference between its completion time and arrival time(). We now define relative fairness measures based on the above mentioned user’s objectives respectively by our proposed FI.
-
•
Sum of Completion Times(): Here, the objective for each is to obtain a minimum =. The relative fairness for any , obtained by any algorithm A based on is defined as
=, where is the optimum value for . -
•
Weighted Sum of Completion Times(): Here, the is associated with certain positive weight . The objective for each is to obtain a minimum =. The relative fairness for any obtained by algorithm A based on is defined as
= where, is the optimum value for . -
•
Sum of Flow Times(): Here, each wants a minimum value for respective =, where is the desired value of and =. The relative fairness for any obtained by algorithm A based on is defined as
=.
5 Concluding Remarks and Scope of Future Work
In our work, we addressed the non-trivial research challenge of defining a new fairness model with quantitative measures of algorithmic fairness for Multi-users Multi-processor Online Scheduling Problem(MUMPOSP) based on user’s objective. We formally presented the MUMPOSP with an illustration followed by perspectives on fairness. We proposed a new fairness model and defined five quantitative measures to ensure algorithmic fairness by considering minimization of makespan as the user objective. By considering the properties of a good fairness model, our fairness measures were formally defined. We defined absolute fairness and obtained lower bound results for MUMPOSP with identical machines for equal length jobs. We show that our proposed fairness measure can serve as a framework for measuring algorithmic fairness based on other well-known user’s objective such as flow time and completion time.
Scope of Future Work. We assumed a theoretical bound for the value of for each . It is still open to find a realistic bound for the value of . It is a non-trivial research challenge to compare the fairness of any two algorithms and , when global fairness of algorithm and algorithm are same and the relative fairness of is more than the relative fairness of for some users or vice versa. In this scenario, it is interesting to make a trade-off by considering the number of users and individual relative fairness of each user for comparison of fairness of two different algorithms.
References
- [1] Emmott, S. and Rison, S.: Towards 2020 science. Working Group Reserach. Microsoft Research Cambridge, Tech. Rep., (2006).
- [2] Jackson, D., Snell, Q. and Clement, M.: Core Algorithms of the maui scheduler. In: Feitelson, D. G., Rudolph, I. (eds.) International Workshop JSSPP, (2001), LNCS, vol. 2221, Springer, Heidelberg (2001).
- [3] Anderson, D. P.: “Boinc: A system for public-resource computing and storage. In IEEE/ACM International Workshop on Grid Computing, (2004), pp. 4–-10.
- [4] Jaffe, J. M.: A Decentralized optimal multiple user flow control algorithm. In Proc. International Conference Computer Communications (1980), Atlanta, GA.
- [5] Jaffe, J. M.: Bottleneck Flow control. IEEE Transactions on Communications, COM-29, (1981), 7, 954–962.
- [6] Jain, R. K., Chiu, D. M. W., and Hawe, W. R.: A Quantitative Measure of Fairness and Discrimination for Resource Allocation in Shared Computer Systems. Eastern Research Laboratory, Digital Equipment Corporation, Hudson, MA, TR-301, (1984).
- [7] Bharath-Kumar, K., and Jaffe, J. M.: A New Approach to Performance -oriented Flow control. IEEE Transactions on Communications, COM-29, (1981), 4, 427–435.
- [8] Sauve, J. P., Wong, J. W., and Field, J. A.: On Fairness in packet switching networks. In Proc. IEEE Computer Society International Conference, COMPCon 80 (1980), Washington, D. C, pp. 466–470.
- [9] Kay, J., and Lauder, P.: A Fair Share Scheduler. Communications of the ACM, (1988), 31(1): 44–55.
- [10] Feitelson, D. G. Job scheduling in Multi-programmed Parallel systems(Extended Version). IBM Research Report, RC19790(87657), Second Revision, (1997).
- [11] Vandierendonck, H., Seznec, A.: Fairness Metrics for Multi-Threaded Processors. IEEE Computer Architecture Letters, (2011), 10(1):4–7.
- [12] Bender, M. A., Muthukrishnan, S., and Rajaraman, R.: Improved algorithms for stretch scheduling. In Proc. Annual ACM-SIAM Symposium on Discrete Algorithms(SoDA), (2002), pp. 762–771.
- [13] Legrand, A., Su, A., and Vivien, F.: Minimizing the stretch when scheduling flows of biological requests. In Symposium on Parallelism in Algorithms and Architectures(SPAA), (2006).
- [14] Saule, E., and Trystram D.: Multi users scheduling in parallel systems. In Proc. of IEEE International Parallel and Distributed Processing Symposium, (2009), Washington, DC, USA, pp. 1–9.
- [15] Pinheiro, V. G.: The management of multiple submissions in parallel systems: the fair scheduling approach. PhD Thesis, Institute of Mathematics and Statistics, University of Sao Paulo, Brazil, (2014).
- [16] Graham, R. L., Lawer, E. L., Lenstra, J. K., and Rinnooy kan A. H. : Optimization and approximation in deterministic sequencing and scheduling: A Survey. Annals of Discrete Mathematics, (1979), 5:287–326.
- [17] Sun, H., Hsu, W. J., and Cao, Y.: Competitive online adaptive scheduling for sets of parallel jobs with fairness and efficiency. Journal of Parallel and Distributed Computing, (2014), 74(3):2180–2192.
- [18] Bian, S., Huang, X., and Shao, Z.: Online task scheduling for fog computing with multi-resource fairness. In Proc. of the IEEE Vehicular Technology Conference, (2019), Honolulu, HI, USA, pp. 1–5.