Lines Matching refs:faults
1118 unsigned long faults[]; member
1285 return ng->faults[task_faults_idx(NUMA_MEM, nid, 0)] + in group_faults()
1286 ng->faults[task_faults_idx(NUMA_MEM, nid, 1)]; in group_faults()
1291 return group->faults[task_faults_idx(NUMA_CPU, nid, 0)] + in group_faults_cpu()
1292 group->faults[task_faults_idx(NUMA_CPU, nid, 1)]; in group_faults_cpu()
1297 unsigned long faults = 0; in group_faults_priv() local
1301 faults += ng->faults[task_faults_idx(NUMA_MEM, node, 1)]; in group_faults_priv()
1304 return faults; in group_faults_priv()
1309 unsigned long faults = 0; in group_faults_shared() local
1313 faults += ng->faults[task_faults_idx(NUMA_MEM, node, 0)]; in group_faults_shared()
1316 return faults; in group_faults_shared()
1352 unsigned long faults; in score_nearby_nodes() local
1374 faults = task_faults(p, node); in score_nearby_nodes()
1376 faults = group_faults(p, node); in score_nearby_nodes()
1387 faults *= (max_dist - dist); in score_nearby_nodes()
1388 faults /= (max_dist - LOCAL_DISTANCE); in score_nearby_nodes()
1391 score += faults; in score_nearby_nodes()
1406 unsigned long faults, total_faults; in task_weight() local
1416 faults = task_faults(p, nid); in task_weight()
1417 faults += score_nearby_nodes(p, nid, dist, true); in task_weight()
1419 return 1000 * faults / total_faults; in task_weight()
1426 unsigned long faults, total_faults; in group_weight() local
1436 faults = group_faults(p, nid); in group_weight()
1437 faults += score_nearby_nodes(p, nid, dist, false); in group_weight()
1439 return 1000 * faults / total_faults; in group_weight()
2314 unsigned long faults, max_faults = 0; in numa_group_count_active_nodes() local
2318 faults = group_faults_cpu(numa_group, nid); in numa_group_count_active_nodes()
2319 if (faults > max_faults) in numa_group_count_active_nodes()
2320 max_faults = faults; in numa_group_count_active_nodes()
2324 faults = group_faults_cpu(numa_group, nid); in numa_group_count_active_nodes()
2325 if (faults * ACTIVE_NODE_FRACTION > max_faults) in numa_group_count_active_nodes()
2507 unsigned long faults = 0; in preferred_group_nid() local
2514 faults += group_faults(p, b); in preferred_group_nid()
2521 if (faults > max_faults) { in preferred_group_nid()
2522 max_faults = faults; in preferred_group_nid()
2576 unsigned long faults = 0, group_faults = 0; in task_numa_placement() local
2607 faults += p->numa_faults[mem_idx]; in task_numa_placement()
2617 ng->faults[mem_idx] += diff; in task_numa_placement()
2618 ng->faults[cpu_idx] += f_diff; in task_numa_placement()
2620 group_faults += ng->faults[mem_idx]; in task_numa_placement()
2625 if (faults > max_faults) { in task_numa_placement()
2626 max_faults = faults; in task_numa_placement()
2701 grp->faults[i] = p->numa_faults[i]; in task_numa_group()
2759 my_grp->faults[i] -= p->numa_faults[i]; in task_numa_group()
2760 grp->faults[i] += p->numa_faults[i]; in task_numa_group()
2802 grp->faults[i] -= p->numa_faults[i]; in task_numa_free()
12383 gsf = ng->faults[task_faults_idx(NUMA_MEM, node, 0)], in show_numa_stats()
12384 gpf = ng->faults[task_faults_idx(NUMA_MEM, node, 1)]; in show_numa_stats()