Originariamente inviato da
marcoc1712
Cercando di capirci qualcosa, ho dato un'occhiata al egistro degli interrupt prodotti dai diversi dispositivi hw/driver:
codice:
cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 41 0 0 0 IO-APIC 2-edge timer
8: 1 0 0 0 IO-APIC 8-fasteoi rtc0
9: 0 0 0 0 IO-APIC 9-fasteoi acpi
17: 0 0 0 0 IO-APIC 17-fasteoi brcmsmac
18: 0 0 0 0 IO-APIC 18-fasteoi i801_smbus
23: 2 0 0 0 IO-APIC 23-fasteoi ehci_hcd:usb1
87: 24319 0 0 0 PCI-MSI 311296-edge ahci[0000:00:13.0]
88: 1354337780 0 0 0 PCI-MSI 327680-edge xhci_hcd
89: 38564663 0 0 0 PCI-MSI 524288-edge enp1s0
90: 12 0 0 0 PCI-MSI 32768-edge i915
91: 373 0 0 0 PCI-MSI 442368-edge snd_hda_intel:card1
NMI: 1844 686 1243 1221 Non-maskable interrupts
LOC: 8523402 5834911 8718085 8101988 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 1844 686 1243 1221 Performance monitoring interrupts
IWI: 4 0 0 0 IRQ work interrupts
RTR: 0 0 0 0 APIC ICR read retries
RES: 381969 662666 1327303 1345481 Rescheduling interrupts
CAL: 5956 6846 4123 4166 Function call interrupts
TLB: 1757 841 1469 1364 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 interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 577 577 577 577 Machine check polls
ERR: 1
MIS: 0
PIN: 0 0 0 0 Posted-interrupt notification event
PIW: 0 0 0 0 Posted-interrupt wakeup event
Posto che uso USB solo per collegare il DAC, gli interrupt prodoti da USB sono di gran lunga i più numerosi, probabilmente a causa del 'solito' problema con USB3 e USB AUDIO CLASS 2.
Non ho idea di quanto possa effettivamente 'turbare' l'esecuzuone, ma di certo sono tutte richieste di attenzione che la CPU (0) riceve e deve gestire. Bisognerebbe capirne di più.
Qualcuno che NON usa USB3 riesce a verificare quel parametro?
Grazie.
Su l´altro pc ho tutto un altro uso di cpu...a paritá di S.O e di kernel
codice:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
103 root -51 0 0 0 0 S 2,3 0,0 0:04.34 irq/18-ehci_hcd
2183 root -51 0 0 0 0 S 1,0 0,0 0:01.58 irq/18-i801_smb
76 root 20 0 0 0 0 D 0,7 0,0 0:02.87 kworker/2:1
3361 root 20 0 21868 3096 2512 R 0,7 0,1 0:00.17 top
31 root 20 0 0 0 0 S 0,3 0,0 0:00.38 ksoftirqd/2
61 root 20 0 0 0 0 D 0,3 0,0 0:01.98 kworker/0:1
1 root 20 0 4196 1396 1292 S 0,0 0,0 0:03.93 init
codice:
gentooplayer filippo # cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 23 0 0 0 IO-APIC 2-edge timer
1: 2 0 0 0 IO-APIC 1-edge i8042
8: 55 0 0 0 IO-APIC 8-edge rtc0
9: 3 0 0 0 IO-APIC 9-fasteoi acpi
18: 638025 0 0 0 IO-APIC 18-fasteoi ehci_hcd:usb1, i801_smbus
23: 76 0 0 0 IO-APIC 23-fasteoi ehci_hcd:usb2
24: 10295 0 0 0 PCI-MSI 512000-edge ahci[0000:00:1f.2]
25: 2 0 0 0 PCI-MSI 1048576-edge xhci_hcd
26: 0 0 0 0 PCI-MSI 1048577-edge xhci_hcd
27: 0 0 0 0 PCI-MSI 1048578-edge xhci_hcd
28: 0 0 0 0 PCI-MSI 1048579-edge xhci_hcd
29: 0 0 0 0 PCI-MSI 1048580-edge xhci_hcd
30: 0 0 0 0 PCI-MSI 2097152-edge xhci_hcd
31: 1805842 0 0 0 PCI-MSI 1572864-edge enp3s0
32: 41 0 0 0 PCI-MSI 32768-edge i915
NMI: 2 2 1 1 Non-maskable interrupts
LOC: 148919 39145 142044 32059 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 2 2 1 1 Performance monitoring interrupts
IWI: 0 0 0 0 IRQ work interrupts
RTR: 1 0 0 0 APIC ICR read retries
RES: 694 5216 3014 5634 Rescheduling interrupts
CAL: 1703 1370 1561 1660 Function call interrupts
TLB: 521 427 454 467 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 3 3 3 3 Machine check polls
ERR: 0
MIS: 0
PIN: 0 0 0 0 Posted-interrupt notification event
PIW: 0 0 0 0 Posted-interrupt wakeup event
Stessa cosa se collego alla usb3 che non é intel ma Renesas