upgraded to latest bsdrp
look at my sysctl dev.cpu output (it's on every cpu)
dev.cpu.1.cx_usage: 100.00% 0.00% last 49455us
dev.cpu.1.cx_lowest: C1
dev.cpu.1.cx_supported: C1/1/1 C2/2/41
i run pmcstat and see this
41.4 kernel acpi_cpu_idle_mwait acpi_cpu_idle
ok. I have added in /etc/rc.conf -> performance_cx_lowest="LOW"
rebooted the system
now this is how the sysctl dev.cpu looks like
dev.cpu.0.cx_usage: 2.25% 97.74% last 4711us
dev.cpu.0.cx_lowest: C8
dev.cpu.0.cx_supported: C1/1/1 C2/2/41
in pmcstat there is a new string with high %
%SAMP IMAGE FUNCTION CALLERS
54.4 kernel lock_delay _mtx_lock_spin_cookie
18.0 kernel acpi_cpu_idle_mwait acpi_cpu_idle
by the way the acpi_cpu_idle is lower now but the mtx_lock_spin is high..
ok i run lockstat -x aggsize=4m sleep 10 > lock-type.txt
Adaptive mutex spin: 2 events in 10.058 seconds (0 events/sec)
Count indv cuml rcnt nsec Lock Caller
-------------------------------------------------------------------------------
2 100% 100% 0.00 2649 Giant
uhub_explore_handle_re_enumerate+0x1d
-------------------------------------------------------------------------------
Spin lock spin: 1912 events in 10.058 seconds (190 events/sec)
Count indv cuml rcnt nsec Lock Caller
-------------------------------------------------------------------------------
1909 100% 100% 0.00 558053 ACPI lock (0xfffff80003954580)
AcpiWriteBitRegister+0x2b
1 0% 100% 0.00 756 icu ithread_loop+0x33c
1 0% 100% 0.00 622 icu intr_event_handle+0x12f
1 0% 100% 0.00 769 callout _callout_stop_safe+0xda
-------------------------------------------------------------------------------
Thread lock spin: 2 events in 10.058 seconds (0 events/sec)
Count indv cuml rcnt nsec Lock Caller
-------------------------------------------------------------------------------
1 50% 50% 0.00 2449 sleepq chain softclock_call_cc+0x13d
1 50% 100% 0.00 885 sched lock 6 fork_exit+0x7e
-------------------------------------------------------------------------------
now the lock-stack output
Spin lock spin: 1917 events in 10.051 seconds (191 events/sec)
-------------------------------------------------------------------------------
Count indv cuml rcnt nsec Lock Caller
1417 74% 74% 0.00 673953 ACPI lock (0xfffff80003954580)
AcpiWriteBitRegister+0x2b
nsec ------ Time Distribution ------ count Stack
512 | 1
AcpiWriteBitRegister+0x2b
1024 | 2 acpi_cpu_idle+0x2ab
2048 | 15 cpu_idle_acpi+0x3e
4096 | 15 cpu_idle+0x9f
8192 | 33 sched_idletd+0x2e4
16384 |@ 84 fork_exit+0x7e
32768 |@ 84 0xffffffff80dd494e
65536 | 43
131072 |@ 78
262144 |@ 94
524288 |@@@ 174
1048576 |@@@@@@@@ 423
2097152 |@@@@@@@ 333
4194304 | 38
-------------------------------------------------------------------------------
Count indv cuml rcnt nsec Lock Caller
473 25% 99% 0.00 276647 ACPI lock (0xfffff80003954580)
AcpiWriteBitRegister+0x2b
nsec ------ Time Distribution ------ count Stack
512 | 1
AcpiWriteBitRegister+0x2b
1024 | 14 acpi_cpu_idle+0x1a7
2048 | 5 cpu_idle_acpi+0x3e
4096 | 10 cpu_idle+0x9f
8192 |@@ 38 sched_idletd+0x2e4
16384 |@@@@@@@ 112 fork_exit+0x7e
32768 |@ 31 0xffffffff80dd494e
65536 |@@@ 52
131072 |@@@@ 78
262144 |@ 22
524288 |@ 20
1048576 |@@ 45
2097152 |@@ 39
4194304 | 6
-------------------------------------------------------------------------------
Count indv cuml rcnt nsec Lock Caller
21 1% 100% 0.00 794069 ACPI lock (0xfffff80003954580)
AcpiWriteBitRegister+0x2b
nsec ------ Time Distribution ------ count Stack
8192 |@ 1
AcpiWriteBitRegister+0x2b
16384 |@ 1 acpi_cpu_idle+0x2b7
32768 |@@@@ 3 cpu_idle_acpi+0x3e
65536 |@@ 2 cpu_idle+0x9f
131072 | 0 sched_idletd+0x2e4
262144 |@ 1 fork_exit+0x7e
524288 |@@ 2 0xffffffff80dd494e
1048576 |@@@@@ 4
2097152 |@@@@@@@@ 6
4194304 |@ 1
-------------------------------------------------------------------------------
Count indv cuml rcnt nsec Lock Caller
5 0% 100% 0.00 79080 ACPI lock (0xfffff80003954580)
AcpiWriteBitRegister+0x2b
nsec ------ Time Distribution ------ count Stack
8192 |@@@@@@ 1
AcpiWriteBitRegister+0x2b
16384 |@@@@@@@@@@@@ 2 acpi_cpu_idle+0x1b6
32768 |@@@@@@ 1 cpu_idle_acpi+0x3e
65536 | 0 cpu_idle+0x9f
131072 | 0 sched_idletd+0x2e4
262144 | 0 fork_exit+0x7e
524288 |@@@@@@ 1 0xffffffff80dd494e
-------------------------------------------------------------------------------
Count indv cuml rcnt nsec Lock Caller
1 0% 100% 0.00 465 icu intr_event_handle+0x12f
nsec ------ Time Distribution ------ count Stack
512 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1 intr_event_handle+0x12f
intr_execute_handlers+0x4b
0xffffffff80dd4afc
cpu_idle_acpi+0x3e
cpu_idle+0x9f
sched_idletd+0x2e4
fork_exit+0x7e
0xffffffff80dd494e
-------------------------------------------------------------------------------
i have absolutely no idea what's this is about - so i request help from you
%)
On Wed, Feb 24, 2021 at 1:26 AM Olivier Cochard-Labbé <[email protected]>
wrote:
> And I forgot about your lockstat bug, here the nightly release that should
> fix it:
>
>
> https://sourceforge.net/projects/bsdrp/files/BSD_Router_Project/nightly/2021-02-23/amd64/
>
> Regards,
> Olivier
>
>> _______________________________________________
> Bsdrp-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bsdrp-users
>
--
"Cучасні Системи Безпеки"
http://www.itlogix.com.ua
+38 (050) 523-66-17
+38 (067) 523-66-17
_______________________________________________
Bsdrp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bsdrp-users