LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Detect What Processes are Using the GPU on Linux (https://www.linuxquestions.org/questions/linux-general-1/detect-what-processes-are-using-the-gpu-on-linux-913542/)

youarefunny 11-14-2011 05:37 PM

Detect What Processes are Using the GPU on Linux
 
I have been bitcoin mining on my laptop just for fun and I have been using a miner called cgminer. When I start up cgminer it tells me that my GPU couldn't be enabled and it is likely because some other process is using the GPU. The exact message is below.

Code:

[2011-11-14 17:01:53] Failed to init GPU thread 1, disabling device 0
[2011-11-14 17:01:53] Restarting the GPU from the menu is unlikely to fix this.
[2011-11-14 17:01:53] Try stopping other applications using the GPU like afterburner.
[2011-11-14 17:01:53] Then restart cgminer.
Press enter to continue:

I looked through my running processes and I don't think any of them are using the GPU but I would like to be sure. I can't figure out how to figure out what processes are accessing the GPU.

I asked this on the bitcointalk.org form but no one replied so I figured since it really has noting to do with bitcoin specifically I could get some good answers here.

corp769 11-15-2011 01:37 AM

Before going too far with this, how many graphic cards do you have installed on your system? Are you using the graphic card for your primary display, that you want to use for mining bitcoins? If so, that may be your issue - Try using your motherboards integrated graphics card, if it has one. Also, what GPU make and model do you have?

Cheers,

Josh

youarefunny 11-16-2011 08:25 AM

I have only one GPU but I am not running a desktop. I am running it from the command line.

lspci -v give me this (and more)
Code:

01:00.0 VGA compatible controller: nVidia Corporation G98 [GeForce 9200M GS] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at d2000000 (32-bit, non-prefetchable) [size=16M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at d0000000 (64-bit, non-prefetchable) [size=32M]
        I/O ports at 9000 [size=128]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia, nouveau, nvidiafb

I hope that is enough information.
Thanks for your help.

corp769 11-16-2011 10:49 AM

Could you post the full contents of your lspci for me?

youarefunny 11-17-2011 08:17 PM

Code:

#lspci -v
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0a <?>
        Kernel modules: intel-agp

00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00009000-00009fff
        Memory behind bridge: d0000000-d2ffffff
        Prefetchable memory behind bridge: 00000000c0000000-00000000cfffffff
        Capabilities: [88] Subsystem: Hewlett-Packard Company Device 3603
        Capabilities: [80] Power Management version 3
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [a0] Express Root Port (Slot+), MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [140] Root Complex Link
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03) (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, medium devsel, latency 0, IRQ 16
        I/O ports at a0e0 [size=32]
        Capabilities: [50] PCI Advanced Features
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03) (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, medium devsel, latency 0, IRQ 21
        I/O ports at a0c0 [size=32]
        Capabilities: [50] PCI Advanced Features
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03) (prog-if 20 [EHCI])
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, medium devsel, latency 0, IRQ 19
        Memory at df305c00 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCI Advanced Features
        Kernel driver in use: ehci_hcd
        Kernel modules: ehci-hcd

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, fast devsel, latency 0, IRQ 48
        Memory at df300000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [130] Root Complex Link
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd-hda-intel

00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        I/O behind bridge: 00008000-00008fff
        Memory behind bridge: de200000-df2fffff
        Prefetchable memory behind bridge: 00000000d3000000-00000000d3ffffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Hewlett-Packard Company Device 3603
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel
        Capabilities: [180] Root Complex Link
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
        I/O behind bridge: 00006000-00007fff
        Memory behind bridge: dd200000-de1fffff
        Prefetchable memory behind bridge: 00000000d4000000-00000000d50fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Hewlett-Packard Company Device 3603
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel
        Capabilities: [180] Root Complex Link
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
        I/O behind bridge: 00005000-00005fff
        Memory behind bridge: dc200000-dd1fffff
        Prefetchable memory behind bridge: 00000000d5100000-00000000d60fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Hewlett-Packard Company Device 3603
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel
        Capabilities: [180] Root Complex Link
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
        I/O behind bridge: 00004000-00004fff
        Memory behind bridge: db200000-dc1fffff
        Prefetchable memory behind bridge: 00000000d6100000-00000000d70fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Hewlett-Packard Company Device 3603
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel
        Capabilities: [180] Root Complex Link
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
        I/O behind bridge: 00003000-00003fff
        Memory behind bridge: da100000-db1fffff
        Prefetchable memory behind bridge: 00000000d7100000-00000000d80fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Hewlett-Packard Company Device 3603
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel
        Capabilities: [180] Root Complex Link
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=07, subordinate=09, sec-latency=0
        I/O behind bridge: 00002000-00002fff
        Memory behind bridge: d9100000-da0fffff
        Prefetchable memory behind bridge: 00000000d8100000-00000000d90fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Hewlett-Packard Company Device 3603
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel
        Capabilities: [180] Root Complex Link
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03) (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, medium devsel, latency 0, IRQ 20
        I/O ports at a0a0 [size=32]
        Capabilities: [50] PCI Advanced Features
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03) (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, medium devsel, latency 0, IRQ 19
        I/O ports at a080 [size=32]
        Capabilities: [50] PCI Advanced Features
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03) (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, medium devsel, latency 0, IRQ 16
        I/O ports at a060 [size=32]
        Capabilities: [50] PCI Advanced Features
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.3 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03) (prog-if 00 [UHCI])
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, medium devsel, latency 0, IRQ 18
        I/O ports at a040 [size=32]
        Capabilities: [50] PCI Advanced Features
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20 [EHCI])
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, medium devsel, latency 0, IRQ 20
        Memory at df305800 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCI Advanced Features
        Kernel driver in use: ehci_hcd
        Kernel modules: ehci-hcd

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93) (prog-if 01 [Subtractive decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=0a, subordinate=0a, sec-latency=32
        Capabilities: [50] Subsystem: Hewlett-Packard Company Device 3603

00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, medium devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0c <?>
        Kernel modules: iTCO_wdt

00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03) (prog-if 01 [AHCI 1.0])
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 47
        I/O ports at a108 [size=8]
        I/O ports at a114 [size=4]
        I/O ports at a100 [size=8]
        I/O ports at a110 [size=4]
        I/O ports at a020 [size=32]
        Memory at df305000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [80] MSI: Enable+ Count=1/16 Maskable- 64bit-
        Capabilities: [70] Power Management version 3
        Capabilities: [a8] SATA HBA v1.0
        Capabilities: [b0] PCI Advanced Features
        Kernel driver in use: ahci
        Kernel modules: ahci

00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: medium devsel, IRQ 18
        Memory at df306000 (64-bit, non-prefetchable) [size=256]
        I/O ports at a000 [size=32]
        Kernel driver in use: i801_smbus
        Kernel modules: i2c-i801

00:1f.6 Signal processing controller: Intel Corporation 82801I (ICH9 Family) Thermal Subsystem (rev 03)
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: fast devsel, IRQ 11
        Memory at df304000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: [50] Power Management version 3

01:00.0 VGA compatible controller: nVidia Corporation G98 [GeForce 9200M GS] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at d2000000 (32-bit, non-prefetchable) [size=16M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at d0000000 (64-bit, non-prefetchable) [size=32M]
        I/O ports at 9000 [size=128]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia, nouveau, nvidiafb

02:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection
        Subsystem: Intel Corporation WiFi Link 5100 AGN
        Flags: bus master, fast devsel, latency 0, IRQ 50
        Memory at de200000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [e0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 00-16-ea-ff-ff-9d-3e-96
        Kernel driver in use: iwlagn
        Kernel modules: iwlagn

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, fast devsel, latency 0, IRQ 49
        I/O ports at 6000 [size=256]
        Memory at d4010000 (64-bit, prefetchable) [size=4K]
        Memory at d4000000 (64-bit, prefetchable) [size=64K]
        Expansion ROM at d4020000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/2 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [b0] MSI-X: Enable- Count=2 Masked-
        Capabilities: [d0] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
        Kernel driver in use: r8169
        Kernel modules: r8169

06:00.0 FireWire (IEEE 1394): JMicron Technology Corp. IEEE 1394 Host Controller (prog-if 10 [OHCI])
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at da100000 (32-bit, non-prefetchable) [size=2K]
        Memory at da100d00 (32-bit, non-prefetchable) [size=128]
        Memory at da100c80 (32-bit, non-prefetchable) [size=128]
        Memory at da100c00 (32-bit, non-prefetchable) [size=128]
        Capabilities: [44] Power Management version 3
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [94] MSI: Enable- Count=1/1 Maskable- 64bit-
        Kernel driver in use: firewire_ohci
        Kernel modules: firewire-ohci

06:00.1 System peripheral: JMicron Technology Corp. SD/MMC Host Controller
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at da100b00 (32-bit, non-prefetchable) [size=256]
        Capabilities: [a4] Power Management version 3
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [94] MSI: Enable- Count=1/1 Maskable- 64bit-
        Kernel driver in use: sdhci-pci
        Kernel modules: sdhci-pci

06:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller (prog-if 01)
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: fast devsel, IRQ 16
        Memory at da100a00 (32-bit, non-prefetchable) [size=256]
        Capabilities: [a4] Power Management version 3
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [94] MSI: Enable- Count=1/1 Maskable- 64bit-
        Kernel modules: sdhci-pci

06:00.3 System peripheral: JMicron Technology Corp. MS Host Controller
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at da100900 (32-bit, non-prefetchable) [size=256]
        Capabilities: [a4] Power Management version 3
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [94] MSI: Enable- Count=1/1 Maskable- 64bit-
        Kernel driver in use: jmb38x_ms
        Kernel modules: jmb38x_ms

06:00.4 System peripheral: JMicron Technology Corp. xD Host Controller
        Subsystem: Hewlett-Packard Company Device 3603
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at da100800 (32-bit, non-prefetchable) [size=256]
        Capabilities: [a4] Power Management version 3
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [94] MSI: Enable- Count=1/1 Maskable- 64bit-



All times are GMT -5. The time now is 10:19 PM.