Lines Matching refs:resources

33  * decisions about how best to allocate resources to meet the
86 * This resource specific structure is used to determine allocation of resources
88 * some number of dealt resources based on the global allocation policy.
96 uint64_t ri_pinned; /* Count of pinned resources in set */
97 uint64_t ri_dealt; /* Count of resources dealt to set */
99 /* The signed quantity of resources */
102 /* + transfer: tranfer resources out */
103 /* - transfer: tranfer resources in */
238 * system. Since only pools and resources actually need to perform
433 * PEC_RES_COMP are the only type of resources
434 * currently. When PEC_RES_AGG resources are added they must
453 * Share the resources. It has to be called for both
654 * that pools is interested in: i.e. system, pool, resources and
711 * share_resources() sets up the allocation of resources by each
712 * provider. Firstly all resources are updated with the importance of
714 * list of it's own resources. Finally, the pool importance details
715 * are removed from the resources.
722 pool_resource_t **resources;
731 * This function is responsible for "sharing" resources to resource
744 if ((resources = pool_query_resources(conf, &nelem, props)) != NULL) {
747 * resources inherit the importance of the pool that
751 * associated pools. Use '_importance' on resources
754 if (resource_allocate("pset", resources, nelem) != PO_SUCCESS) {
755 free(resources);
760 free(resources);
858 * Firstly, for all resources that have size greater than min,
865 /* compute the real minimum number of resources */
883 * Now, transfer resources below min from the default.
887 * We don't want to interfere with resources which are reserved
932 uint64_t tot_resources = 0; /* total count of resources */
934 uint64_t num_to_deal = 0; /* total resources above mins to deal */
952 /* Order resources by importance, most important being first */
979 /* pre-deal pinned resources that exceed min */
987 /* Compute total number of resources to deal out */
1002 * resources are dealt or all sets are at their max.
1009 * pre-dealt a resource due to pinned resources.
1039 * Sort so that resource sets needing resources preced resource sets
1040 * that have extra resources. The sort function will also compute
1041 * The quantity of resources that need to be transfered into or out
1059 /* Tranfer resources so that each set's size becomes newsize */
1082 /* Transfer resources from the donor set to the receiver */
1105 * Used as a qsort parameter to help order resources in terms of their
1132 * Sort in increasing order so that resource sets with extra resources are at
1133 * the end and resource sets needing resources are at the beginning.