Re: [Linuxptp-users] Loss of sync with 25% of CPU load
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Diego G. P. <gpr...@un...> - 2021-04-07 16:31:43
|
> IOW, give it higher sched_fifo priority than stress-ng. Done but it keeps similar. ptp4l at 99 and stress-ng at 50 and even at 1 priority > > Also, depending on your network load, watch out for stress-ng starving > the networking stack (by keeping ksoftirqd from running). > > Also, watch out for stress-ng starving kworker threads (if your MAC > driver uses kwork to deliver Tx time stamps). I run it again with ptp4l at priority 99 and stress-ng at 50 and this is the load of ksoftirqd and kworkers. Tasks: 221 total, 3 running, 218 sleeping, 0 stopped, 0 zombie %Cpu(s): 31,7 us, 0,6 sy, 0,0 ni, 67,0 id, 0,7 wa, 0,0 hi, 0,0 si, 0,0 st KiB Mem : 3915948 total, 2980824 free, 372584 used, 562540 buff/cache KiB Swap: 1047548 total, 1047548 free, 0 used. 3333472 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2754 root rt 0 32880 5372 3356 S 30,1 0,1 0:17.03 stress-ng-cpu 2755 root rt 0 32880 5372 3356 S 30,1 0,1 0:17.18 stress-ng-cpu 2756 root rt 0 32880 5372 3356 S 30,1 0,1 0:17.03 stress-ng-cpu 2757 root rt 0 32880 5372 3356 S 30,1 0,1 0:17.18 stress-ng-cpu 2177 nodo1 20 0 577400 33168 26052 S 1,7 0,8 0:02.24 gnome-panel 898 root 20 0 391732 69436 48052 S 1,3 1,8 0:18.87 Xorg 2483 nodo1 20 0 512104 37008 27552 S 1,0 0,9 0:11.07 gnome-terminal- 2173 nodo1 20 0 517256 37332 23772 S 0,7 1,0 0:08.11 compiz 2751 nodo1 20 0 43152 3964 3316 R 0,7 0,1 0:00.50 top 3 root 20 0 0 0 0 S 0,3 0,0 0:00.78 ksoftirqd/0 21 root 20 0 0 0 0 S 0,3 0,0 0:00.67 ksoftirqd/1 1901 nodo1 20 0 43428 3876 2780 S 0,3 0,1 0:00.64 dbus-daemon 1 root 20 0 119924 6024 3996 S 0,0 0,2 0:04.38 systemd 2 root 20 0 0 0 0 S 0,0 0,0 0:00.01 kthreadd 4 root -2 0 0 0 0 S 0,0 0,0 0:00.35 ktimersoftd/0 6 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:0H 8 root 20 0 0 0 0 S 0,0 0,0 0:00.96 rcu_preempt 9 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_sched 10 root 20 0 0 0 0 S 0,0 0,0 0:00.25 rcuc/0 11 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kswork 12 root rt 0 0 0 0 S 0,0 0,0 0:00.00 posixcputmr/0 13 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/0 14 root rt 0 0 0 0 S 0,0 0,0 0:00.03 watchdog/0 15 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/0 16 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/1 17 root rt 0 0 0 0 S 0,0 0,0 0:00.03 watchdog/1 18 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/1 19 root 20 0 0 0 0 S 0,0 0,0 0:00.25 rcuc/1 20 root -2 0 0 0 0 S 0,0 0,0 0:00.42 ktimersoftd/1 23 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/1:0H 24 root rt 0 0 0 0 S 0,0 0,0 0:00.00 posixcputmr/1 25 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/2 26 root rt 0 0 0 0 S 0,0 0,0 0:00.04 watchdog/2 27 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/2 28 root 20 0 0 0 0 R 0,0 0,0 0:00.51 rcuc/2 29 root -2 0 0 0 0 S 0,0 0,0 0:00.43 ktimersoftd/2 30 root 20 0 0 0 0 R 0,0 0,0 0:01.50 ksoftirqd/2 32 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/2:0H 33 root rt 0 0 0 0 S 0,0 0,0 0:00.00 posixcputmr/2 34 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/3 35 root rt 0 0 0 0 S 0,0 0,0 0:00.04 watchdog/3 36 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/3 37 root 20 0 0 0 0 S 0,0 0,0 0:00.53 rcuc/3 38 root -2 0 0 0 0 S 0,0 0,0 0:01.13 ktimersoftd/3 39 root 20 0 0 0 0 S 0,0 0,0 0:01.31 ksoftirqd/3 41 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/3:0H 42 root rt 0 0 0 0 S 0,0 0,0 0:00.00 posixcputmr/3 Thank you, Diego |