Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PCI-bus load measurement in Linux

Tags:

linux

pci-bus

I have a linux (3.12) system (x86-64) with multiple devices connected to the PCI bus (PCI-e). I would like to measure the PCI bus load in the current situation and again when I connect another device to the bus to see the difference, but I have no idea how. Is there a way to do this?

like image 323
Frank Avatar asked Sep 29 '14 10:09

Frank


People also ask

What is PCI buses in Linux?

Peripheral Component Interconnect (PCI) is a local computer bus for attaching hardware devices in a computer and is part of the PCI Local Bus standard. The PCI bus supports the functions found on a processor bus but in a standardized format that is independent of any given processor's native bus.

What is PCI bus number?

PCI Bus number in hexadecimal, often padded using a leading zeros to two or four digits. A colon (:) PCI Device number in hexadecimal, often padded using a leading zero to two digits . Sometimes this is also referred to as the slot number.

What is PCI bus device function?

PCI bus overview In particular PCI provides a mechanism where each card or device specifies both its identity and the resources needed (memory-mapped or I/O space, interrupts) and the BIOS and/or OS can discover all devices in the system and allocate interrupts, physical memory space, and I/O space to each device.

What is Pci_map_single?

pci_map_single() is prototyped as follows: dma_addr_t pci_map_single(struct pci_dev *pdev, void *ptr, size_t size, int direction); The first three arguments respectively hold the PCI device structure, the kernel virtual address of a preallocated DMA buffer, and the size of the supplied buffer.


1 Answers

I've been able to do this using Intel Performance Counter Monitor V2.7. I was lucky that since v2.5 an PCI-e bus monitor was added for x86 processors.

like image 133
Frank Avatar answered Oct 11 '22 18:10

Frank