68 lines
2.3 KiB
Diff
68 lines
2.3 KiB
Diff
commit cbc56e3b72f962d1ae91fa2a80b448a8b4b83a4d
|
|
Author: Srikar Dronamraju <srikar@linux.ibm.com>
|
|
Date: Thu Jul 17 20:10:16 2025 +0530
|
|
|
|
lparstat: print 'Maximum System Processors'
|
|
|
|
Maximum System Processors or Maximum Physical CPUs in System is not
|
|
getting reported in lparstat -i. Replace max_system_cpus with
|
|
system_potential_processors, since that's how Maximum Physical CPUs in
|
|
the system was being tracked in system_data
|
|
|
|
$ lparstat -i | grep "Maximum System Processors"
|
|
$ ./src/lparstat -i | grep "Maximum System Processors"
|
|
Maximum System Processors : 80
|
|
$
|
|
|
|
[Here ./src/lparstat refers to patched lparstat]
|
|
|
|
shared_cpus_in_system is same as
|
|
physical_procs_allocated_to_virtualization. shared_cpus_in_system was
|
|
not getting reported in lparstat -i. Commit 16e49f436470 ("lparstat:
|
|
print "Shared Physical CPUS in system" data") added
|
|
physical_procs_allocated_to_virtualization but didnt remove
|
|
shared_cpus_in_system. Hence clean it up.
|
|
|
|
Remove hypervisor_page_size, desired_virt_cpus, desired_memory,
|
|
desired_capacity, target_mem_factor, target_mem_size, since we are not
|
|
printing them anyway.
|
|
|
|
Signed-off-by: Srikar Dronamraju <srikar@linux.ibm.com>
|
|
Reviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com>
|
|
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
|
|
|
|
diff --git a/src/lparstat.h b/src/lparstat.h
|
|
index 4260e1e..2e49044 100644
|
|
--- a/src/lparstat.h
|
|
+++ b/src/lparstat.h
|
|
@@ -326,10 +326,9 @@ char *iflag_entries[] = {
|
|
"MinEntCap",
|
|
"partition_max_entitled_capacity",
|
|
"CapInc",
|
|
- "max_system_cpus",
|
|
+ "system_potential_processors",
|
|
"system_active_processors",
|
|
"active_cpus_in_pool",
|
|
- "shared_cpus_in_system",
|
|
"physical_procs_allocated_to_virtualization",
|
|
"pool_capacity",
|
|
"entitled_proc_capacity_available",
|
|
@@ -341,16 +340,10 @@ char *iflag_entries[] = {
|
|
"entitled_memory_weight",
|
|
"entitled_memory_pool_number",
|
|
"entitled_memory_pool_size",
|
|
- "hypervisor_page_size",
|
|
- "unallocated_entitled_memory_weight",
|
|
+ "unallocated_entitled_memory_weight",
|
|
"unallocated_io_mapping_entitlement",
|
|
"entitled_memory_group_number",
|
|
- "desired_virt_cpus",
|
|
- "desired_memory",
|
|
"DesVarCapWt",
|
|
- "desired_capacity",
|
|
- "target_mem_factor",
|
|
- "target_mem_size",
|
|
NULL
|
|
};
|
|
|