Lines Matching refs:faults
1401 unsigned long faults[]; member
1568 return ng->faults[task_faults_idx(NUMA_MEM, nid, 0)] + in group_faults()
1569 ng->faults[task_faults_idx(NUMA_MEM, nid, 1)]; in group_faults()
1574 return group->faults[task_faults_idx(NUMA_CPU, nid, 0)] + in group_faults_cpu()
1575 group->faults[task_faults_idx(NUMA_CPU, nid, 1)]; in group_faults_cpu()
1580 unsigned long faults = 0; in group_faults_priv() local
1584 faults += ng->faults[task_faults_idx(NUMA_MEM, node, 1)]; in group_faults_priv()
1587 return faults; in group_faults_priv()
1592 unsigned long faults = 0; in group_faults_shared() local
1596 faults += ng->faults[task_faults_idx(NUMA_MEM, node, 0)]; in group_faults_shared()
1599 return faults; in group_faults_shared()
1635 unsigned long faults; in score_nearby_nodes() local
1657 faults = task_faults(p, node); in score_nearby_nodes()
1659 faults = group_faults(p, node); in score_nearby_nodes()
1670 faults *= (max_dist - dist); in score_nearby_nodes()
1671 faults /= (max_dist - LOCAL_DISTANCE); in score_nearby_nodes()
1674 score += faults; in score_nearby_nodes()
1689 unsigned long faults, total_faults; in task_weight() local
1699 faults = task_faults(p, nid); in task_weight()
1700 faults += score_nearby_nodes(p, nid, dist, true); in task_weight()
1702 return 1000 * faults / total_faults; in task_weight()
1709 unsigned long faults, total_faults; in group_weight() local
1719 faults = group_faults(p, nid); in group_weight()
1720 faults += score_nearby_nodes(p, nid, dist, false); in group_weight()
1722 return 1000 * faults / total_faults; in group_weight()
2580 unsigned long faults, max_faults = 0; in numa_group_count_active_nodes() local
2584 faults = group_faults_cpu(numa_group, nid); in numa_group_count_active_nodes()
2585 if (faults > max_faults) in numa_group_count_active_nodes()
2586 max_faults = faults; in numa_group_count_active_nodes()
2590 faults = group_faults_cpu(numa_group, nid); in numa_group_count_active_nodes()
2591 if (faults * ACTIVE_NODE_FRACTION > max_faults) in numa_group_count_active_nodes()
2773 unsigned long faults = 0; in preferred_group_nid() local
2780 faults += group_faults(p, b); in preferred_group_nid()
2787 if (faults > max_faults) { in preferred_group_nid()
2788 max_faults = faults; in preferred_group_nid()
2842 unsigned long faults = 0, group_faults = 0; in task_numa_placement() local
2873 faults += p->numa_faults[mem_idx]; in task_numa_placement()
2883 ng->faults[mem_idx] += diff; in task_numa_placement()
2884 ng->faults[cpu_idx] += f_diff; in task_numa_placement()
2886 group_faults += ng->faults[mem_idx]; in task_numa_placement()
2891 if (faults > max_faults) { in task_numa_placement()
2892 max_faults = faults; in task_numa_placement()
2967 grp->faults[i] = p->numa_faults[i]; in task_numa_group()
3025 my_grp->faults[i] -= p->numa_faults[i]; in task_numa_group()
3026 grp->faults[i] += p->numa_faults[i]; in task_numa_group()
3068 grp->faults[i] -= p->numa_faults[i]; in task_numa_free()
13074 gsf = ng->faults[task_faults_idx(NUMA_MEM, node, 0)], in show_numa_stats()
13075 gpf = ng->faults[task_faults_idx(NUMA_MEM, node, 1)]; in show_numa_stats()