Bonjour à tous,
Je viens vers vous car ça fait quelques mois que je suis embêté sur mon serveur dédié.
Ma machine ( Serveur KS-7 - Intel i3 2130 - 8Go DDR3 1333 MHZ - 2To) est sous Debian 10 et me sert principalement comme Seedbox Rtorrent (on est deux utilisateurs dessus) et serveur mail. Pour gérer les espaces des utilisateurs j’ai partitionné avec LVM et le serveur est sécurisé avec fail2ban et Portsentry. Et depuis quelques mois, j’ai repéré un dysfonctionnement.
Si le serveur est allumé depuis un moment, il met du temps à répondre dès qu’il y a un téléchargement en cours sur rtorrent. Si je mets le dl en pause, il repart « à la normale ».
J’ai fait un petit top pendant un dl et je vois que ksoftirqd monte en charge et utilise 100% du CPU.
top - 20:34:50 up 20 days, 1:19, 1 user, load average: 0,99, 0,35, 0,18
Tasks: 163 total, 2 running, 161 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1,6 us, 0,8 sy, 0,0 ni, 69,4 id, 2,7 wa, 0,0 hi, 25,6 si, 0,0 st
MiB Mem : 7877,7 total, 134,7 free, 484,6 used, 7258,4 buff/cache
MiB Swap: 512,0 total, 170,1 free, 341,9 used. 7057,3 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
22 root 20 0 0 0 0 R 100,0 0,0 1952:19 ksoftirqd/2
30895 user1 20 0 2203836 96872 21308 S 1,7 1,2 7:48.83 rtorrent main
13840 root 20 0 2308 1608 1488 S 1,3 0,0 7:02.63 portsentry
1 root 20 0 171112 8460 6092 S 0,0 0,1 3:15.20 systemd
2 root 20 0 0 0 0 S 0,0 0,0 0:00.44 kthreadd
3 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rcu_par_gp
6 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kworker/0:0H-kblockd
8 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 mm_percpu_wq
9 root 20 0 0 0 0 S 0,0 0,0 0:47.36 ksoftirqd/0
10 root 20 0 0 0 0 I 0,0 0,0 16:06.95 rcu_sched
11 root 20 0 0 0 0 I 0,0 0,0 0:00.00 rcu_bh
12 root rt 0 0 0 0 S 0,0 0,0 0:03.63 migration/0
14 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/0
15 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/1
16 root rt 0 0 0 0 S 0,0 0,0 0:03.78 migration/1
17 root 20 0 0 0 0 S 0,0 0,0 0:50.25 ksoftirqd/1
19 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kworker/1:0H-kblockd
20 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/2
21 root rt 0 0 0 0 S 0,0 0,0 0:20.97 migration/2
24 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kworker/2:0H-kblockd
25 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/3
La commande cat /proc/interrupts me retourne ça :
CPU0 CPU1 CPU2 CPU3
0: 7 0 0 0 IO-APIC 2-edge timer
8: 1 0 0 0 IO-APIC 8-edge rtc0
9: 0 0 0 0 IO-APIC 9-fasteoi acpi
16: 0 0 0 25 IO-APIC 16-fasteoi ehci_hc d:usb1
18: 0 0 0 0 IO-APIC 18-fasteoi i801_sm bus
23: 0 31 0 0 IO-APIC 23-fasteoi ehci_hc d:usb3
24: 0 0 0 0 PCI-MSI 458752-edge PCIe PME
25: 0 0 0 0 PCI-MSI 460800-edge PCIe PME
26: 0 0 257728411 0 PCI-MSI 409600-edge eno1
27: 0 0 0 0 PCI-MSI 1048576-edge xhc i_hcd
28: 0 0 0 0 PCI-MSI 1048577-edge xhc i_hcd
29: 0 0 0 0 PCI-MSI 1048578-edge xhc i_hcd
30: 0 0 0 0 PCI-MSI 1048579-edge xhc i_hcd
31: 0 0 0 0 PCI-MSI 1048580-edge xhc i_hcd
32: 0 0 33348313 0 PCI-MSI 512000-edge ahci [0000:00:1f.2]
33: 0 0 0 15 PCI-MSI 360448-edge mei_ me
NMI: 1973 1865 35171 1778 Non-maskable interrupts
LOC: 98803794 90785598 145782339 96814341 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 1973 1865 35171 1778 Performance monitoring interr upts
IWI: 236 304 76830 316 IRQ work interrupts
RTR: 0 0 0 0 APIC ICR read retries
RES: 15136478 7306359 2071307 3842510 Rescheduling interrupts
CAL: 506700 690679 266747 360771 Function call interrupts
TLB: 401666 590516 167124 262344 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
DFR: 0 0 0 0 Deferred Error APIC interrupt s
MCE: 0 0 0 0 Machine check exceptions
MCP: 5558 5559 5559 5559 Machine check polls
ERR: 0
MIS: 0
PIN: 0 0 0 0 Posted-interrupt notification event
NPI: 0 0 0 0 Nested posted-interrupt event
PIW: 0 0 0 0 Posted-interrupt wakeup event
Et voici le retour de la commande free -m :
total used free shared buff/cache available
Mem: 7877 495 167 37 7214 7048
Swap: 511 363 148
Si je reboot le serveur, plus de problème…jusqu’à ce que ça revienne au bout de quelques temps, toujours en lien avec les téléchargements sur rtorrent.
Ca fait quelques mois que je cherche une solution mais je dois mal chercher car je ne trouve pas.
Est-ce qu’une âme charitable pourrait venir à mon secours s’il vous plaît ?
Merci