└───╼ nvidia-smi
Wed Sep 7 23:07:54 2016
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 370.23 Driver Version: 370.23 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX TIT... Off | 0000:13:00.0 On | N/A |
| 42% 63C P8 31W / 300W | 5933MiB / 6066MiB | 16% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 973 G /usr/bin/gwenview 48MiB |
| 0 1064 G /usr/bin/gwenview 47MiB |
| 0 1078 G /usr/bin/gwenview 48MiB |
| 0 1796 G /usr/lib/xorg-server/Xorg 5322MiB |
| 0 1923 G kwin_x11 67MiB |
| 0 1930 G /usr/bin/krunner 8MiB |
| 0 2011 G /usr/bin/kmail 132MiB |
| 0 2015 G /usr/bin/gwenview 48MiB |
| 0 2322 G /usr/bin/gwenview 48MiB |
| 0 2376 G /usr/bin/akonadi_archivemail_agent 2MiB |
| 0 2392 G /usr/bin/akonadi_mailfilter_agent 2MiB |
| 0 2420 G /usr/bin/akonadi_newmailnotifier_agent 2MiB |
| 0 2433 G /usr/bin/akonadi_sendlater_agent 2MiB |
| 0 13529 G /usr/bin/plasmashell 149MiB |
+-----------------------------------------------------------------------------+
Titan Black 370.23
nvidia-bug-report.log.gz (415 KB)
chemal
2
Help! NVIDIA ate my VRAM!
kwin is pretty notorious for leaking X resources. Does the memory usage of the Xorg process go down if you restart kwin_x11?
without plasmashell
└───╼ nvidia-smi
Fri Sep 9 04:12:36 2016
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 370.23 Driver Version: 370.23 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX TIT... Off | 0000:13:00.0 On | N/A |
| 35% 53C P5 37W / 300W | 1010MiB / 6066MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1758 G /usr/lib/xorg-server/Xorg 844MiB |
| 0 1880 G kwin_x11 48MiB |
| 0 1887 G /usr/bin/krunner 2MiB |
| 0 1984 G /usr/bin/kmail 104MiB |
| 0 2124 G /usr/bin/akonadi_archivemail_agent 2MiB |
| 0 2130 G /usr/bin/akonadi_mailfilter_agent 2MiB |
| 0 2149 G /usr/bin/akonadi_newmailnotifier_agent 2MiB |
| 0 2155 G /usr/bin/akonadi_sendlater_agent 2MiB |
+-----------------------------------------------------------------------------+
and without kwin_x11
└───╼ nvidia-smi
Fri Sep 9 04:14:38 2016
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 370.23 Driver Version: 370.23 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX TIT... Off | 0000:13:00.0 On | N/A |
| 33% 48C P8 18W / 300W | 499MiB / 6066MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1758 G /usr/lib/xorg-server/Xorg 381MiB |
| 0 1887 G /usr/bin/krunner 2MiB |
| 0 1984 G /usr/bin/kmail 104MiB |
| 0 2124 G /usr/bin/akonadi_archivemail_agent 2MiB |
| 0 2130 G /usr/bin/akonadi_mailfilter_agent 2MiB |
| 0 2149 G /usr/bin/akonadi_newmailnotifier_agent 2MiB |
| 0 2155 G /usr/bin/akonadi_sendlater_agent 2MiB |
+-----------------------------------------------------------------------------+
running again kwin_x11 --replace
└───╼ nvidia-smi
Fri Sep 9 04:15:12 2016
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 370.23 Driver Version: 370.23 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX TIT... Off | 0000:13:00.0 On | N/A |
| 33% 53C P0 94W / 300W | 794MiB / 6066MiB | 1% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1758 G /usr/lib/xorg-server/Xorg 623MiB |
| 0 1887 G /usr/bin/krunner 8MiB |
| 0 1984 G /usr/bin/kmail 104MiB |
| 0 2124 G /usr/bin/akonadi_archivemail_agent 2MiB |
| 0 2130 G /usr/bin/akonadi_mailfilter_agent 2MiB |
| 0 2149 G /usr/bin/akonadi_newmailnotifier_agent 2MiB |
| 0 2155 G /usr/bin/akonadi_sendlater_agent 2MiB |
| 0 15326 G /usr/bin/kwin_x11 47MiB |
+-----------------------------------------------------------------------------+
and running again plasmashell
└───╼ nvidia-smi
Fri Sep 9 04:16:22 2016
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 370.23 Driver Version: 370.23 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX TIT... Off | 0000:13:00.0 On | N/A |
| 35% 59C P0 95W / 300W | 1040MiB / 6066MiB | 3% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1758 G /usr/lib/xorg-server/Xorg 755MiB |
| 0 1887 G /usr/bin/krunner 9MiB |
| 0 1984 G /usr/bin/kmail 104MiB |
| 0 2124 G /usr/bin/akonadi_archivemail_agent 2MiB |
| 0 2130 G /usr/bin/akonadi_mailfilter_agent 2MiB |
| 0 2149 G /usr/bin/akonadi_newmailnotifier_agent 2MiB |
| 0 2155 G /usr/bin/akonadi_sendlater_agent 2MiB |
| 0 15326 G /usr/bin/kwin_x11 54MiB |
| 0 20155 G /usr/bin/plasmashell 105MiB |
+-----------------------------------------------------------------------------+
if is than funny, try fill your Vram and try play any game or run any vulkan demo or run any hard CUDA process ;)
just now:
[142486.898006] ------------[ cut here ]------------
[142486.898017] WARNING: CPU: 0 PID: 3834 at arch/x86/mm/pageattr.c:1160 __cpa_process_fault+0x429/0x460
[142486.898019] CPA: called for zero pte. vaddr = 30e4bce0690c000 cpa->vaddr = ffff880519788000
[142486.898020] Modules linked in: vhost_net vhost macvtap macvlan rfcomm xt_multiport xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp tun bridge stp llc ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter cfg80211 mptctl mptbase bnep msr f71882fg btusb btrtl btbcm btintel snd_hda_codec_hdmi iTCO_wdt gpio_ich iTCO_vendor_support nvidia_drm(PO) nvidia_modeset(PO) ppdev mxm_wmi intel_powerclamp coretemp kvm_intel nvidia(PO) kvm crct10dif_pclmul input_leds crc32_pclmul led_class crc32c_intel ghash_clmulni_intel aesni_intel snd_hda_codec_realtek aes_x86_64 mousedev snd_hda_codec_generic lrw gf128mul glue_helper evdev ablk_helper cryptd ath3k bluetooth
[142486.898067] mac_hid intel_cstate psmouse snd_hda_intel pcspkr rfkill snd_hda_codec i2c_i801 drm_kms_helper sky2 snd_hda_core drm snd_hwdep snd_pcm syscopyarea sysfillrect lpc_ich snd_timer sysimgblt fb_sys_fops i7core_edac snd soundcore edac_core i5500_temp parport_pc shpchp parport fjes wmi button tpm_tis tpm sch_fq_codel uinput fuse eeprom sg acpi_cpufreq ip_tables x_tables ext4 crc16 jbd2 mbcache ata_generic pata_acpi sr_mod cdrom hid_generic usbhid hid sd_mod uhci_hcd serio_raw atkbd libps2 xhci_pci ehci_pci ahci xhci_hcd ehci_hcd pata_jmicron libahci pata_marvell usbcore megaraid_sas usb_common libata i8042 serio vfio_pci irqbypass vfio_virqfd vfio_iommu_type1 vfio mpt3sas raid_class scsi_transport_sas scsi_mod
[142486.898117] CPU: 0 PID: 3834 Comm: QSGRenderThread Tainted: P O 4.7.2-1-ARCH #1
[142486.898118] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./EVGA Classified SR-2, BIOS 080016 08/25/2011
[142486.898120] 0000000000000286 000000008d1d7b4d ffff8807123db830 ffffffff812eb132
[142486.898123] ffff8807123db880 0000000000000000 ffff8807123db870 ffffffff8107a3ab
[142486.898126] 0000048800000000 ffff8807123dbab0 ffff8807123dbab0 00000000fffffff2
[142486.898128] Call Trace:
[142486.898133] [<ffffffff812eb132>] dump_stack+0x63/0x81
[142486.898136] [<ffffffff8107a3ab>] __warn+0xcb/0xf0
[142486.898138] [<ffffffff8107a42f>] warn_slowpath_fmt+0x5f/0x80
[142486.898142] [<ffffffff810af4f4>] ? dequeue_entity+0x254/0xb10
[142486.898145] [<ffffffff81067229>] __cpa_process_fault+0x429/0x460
[142486.898148] [<ffffffff81067b36>] __change_page_attr_set_clr+0x566/0xe10
[142486.898152] [<ffffffff811b6e1c>] ? vm_unmap_aliases+0x11c/0x140
[142486.898155] [<ffffffff8106854a>] change_page_attr_set_clr+0x16a/0x520
[142486.898158] [<ffffffff81068a59>] set_memory_array_wb+0x39/0xa0
[142486.898285] [<ffffffffa06be1c5>] nv_free_system_pages+0x2e5/0x300 [nvidia]
[142486.898366] [<ffffffffa06b5bee>] nv_free_pages+0x9e/0xa0 [nvidia]
[142486.898470] [<ffffffffa0c40587>] _nv017169rm+0x97/0x100 [nvidia]
[142486.898666] [<ffffffffa0a0c94b>] ? _nv015347rm+0x19b/0x230 [nvidia]
[142486.898861] [<ffffffffa0a0cba2>] ? _nv015355rm+0x1c2/0x200 [nvidia]
[142486.898982] [<ffffffffa0bc9550>] ? _nv000836rm+0x1550/0x1630 [nvidia]
[142486.899100] [<ffffffffa0bc7ea9>] ? _nv021221rm+0xff9/0x10b0 [nvidia]
[142486.899100] [<ffffffffa0bc8036>] ? _nv000836rm+0x36/0x1630 [nvidia]
[142486.899100] [<ffffffffa0bc19f2>] ? _nv003463rm+0x6d2/0x2c70 [nvidia]
[142486.899100] [<ffffffffa0c3eefe>] ? _nv000865rm+0x60e/0x810 [nvidia]
[142486.899100] [<ffffffffa0c48fb3>] ? rm_ioctl+0x73/0x100 [nvidia]
[142486.899100] [<ffffffffa06b4e00>] ? nvidia_ioctl+0xf0/0x4c0 [nvidia]
[142486.899100] [<ffffffffa06b4eca>] ? nvidia_ioctl+0x1ba/0x4c0 [nvidia]
[142486.899100] [<ffffffffa06b3080>] ? nvidia_frontend_compat_ioctl+0x40/0x50 [nvidia]
[142486.899100] [<ffffffffa06b309e>] ? nvidia_frontend_unlocked_ioctl+0xe/0x10 [nvidia]
[142486.899100] [<ffffffff8120cd72>] ? do_vfs_ioctl+0xa2/0x5d0
[142486.899100] [<ffffffff81217e07>] ? __fget+0x77/0xb0
[142486.899100] [<ffffffff8120d319>] ? SyS_ioctl+0x79/0x90
[142486.899100] [<ffffffff815de7b2>] ? entry_SYSCALL_64_fastpath+0x1a/0xa4
[142486.899958] ---[ end trace d5c94798de778148 ]---
[142486.900215] general protection fault: 0000 [#1] PREEMPT SMP
[142486.900217] Modules linked in: vhost_net vhost macvtap macvlan rfcomm xt_multiport xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp tun bridge stp llc ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter cfg80211 mptctl mptbase bnep msr f71882fg btusb btrtl btbcm btintel snd_hda_codec_hdmi iTCO_wdt gpio_ich iTCO_vendor_support nvidia_drm(PO) nvidia_modeset(PO) ppdev mxm_wmi intel_powerclamp coretemp kvm_intel nvidia(PO) kvm crct10dif_pclmul input_leds crc32_pclmul led_class crc32c_intel ghash_clmulni_intel aesni_intel snd_hda_codec_realtek aes_x86_64 mousedev snd_hda_codec_generic lrw gf128mul glue_helper evdev ablk_helper cryptd ath3k bluetooth
[142486.900248] mac_hid intel_cstate psmouse snd_hda_intel pcspkr rfkill snd_hda_codec i2c_i801 drm_kms_helper sky2 snd_hda_core drm snd_hwdep snd_pcm syscopyarea sysfillrect lpc_ich snd_timer sysimgblt fb_sys_fops i7core_edac snd soundcore edac_core i5500_temp parport_pc shpchp parport fjes wmi button tpm_tis tpm sch_fq_codel uinput fuse eeprom sg acpi_cpufreq ip_tables x_tables ext4 crc16 jbd2 mbcache ata_generic pata_acpi sr_mod cdrom hid_generic usbhid hid sd_mod uhci_hcd serio_raw atkbd libps2 xhci_pci ehci_pci ahci xhci_hcd ehci_hcd pata_jmicron libahci pata_marvell usbcore megaraid_sas usb_common libata i8042 serio vfio_pci irqbypass vfio_virqfd vfio_iommu_type1 vfio mpt3sas raid_class scsi_transport_sas scsi_mod
[142486.900282] CPU: 0 PID: 3834 Comm: QSGRenderThread Tainted: P W O 4.7.2-1-ARCH #1
[142486.900283] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./EVGA Classified SR-2, BIOS 080016 08/25/2011
[142486.900285] task: ffff880ada3ea700 ti: ffff8807123d8000 task.ti: ffff8807123d8000
[142486.900286] RIP: 0010:[<ffffffffa06bdfa5>] [<ffffffffa06bdfa5>] nv_free_system_pages+0xc5/0x300 [nvidia]
[142486.900360] RSP: 0018:ffff8807123dbb78 EFLAGS: 00010207
[142486.900362] RAX: 000c250f381a4300 RBX: ffffea0000000000 RCX: 030e4bce0690cfda
[142486.900363] RDX: 030e4bce8690cfda RSI: 0000000000000020 RDI: ffff880080000000
[142486.900365] RBP: ffff8807123dbbb0 R08: 00000000751152b3 R09: 0000000000000246
[142486.900366] R10: 0000000000000001 R11: 00000000000003cc R12: 000077ff80000000
[142486.900367] R13: ffff880515f334e0 R14: 00000000000000ff R15: ffff8809e62fadc0
[142486.900369] FS: 00007f86598ec700(0000) GS:ffff8806a7a00000(0000) knlGS:0000000000000000
[142486.900371] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[142486.900372] CR2: 00007f86444028f8 CR3: 0000000b17e6e000 CR4: 00000000000006f0
[142486.900373] Stack:
[142486.900374] ffff8804a2c7d008 000000008d1d7b4d ffff880515f334e0 ffff8806a1db7008
[142486.900377] 0000000000000100 ffff880515f334e0 ffff8806a0420008 ffff8807123dbbe0
[142486.900379] ffffffffa06b5bee 0000000000000001 0000000000020011 ffff8806a1db0008
[142486.900382] Call Trace:
[142486.900452] [<ffffffffa06b5bee>] nv_free_pages+0x9e/0xa0 [nvidia]
[142486.900543] [<ffffffffa0c40587>] _nv017169rm+0x97/0x100 [nvidia]
[142486.900713] [<ffffffffa0a0c94b>] ? _nv015347rm+0x19b/0x230 [nvidia]
[142486.900882] [<ffffffffa0a0cba2>] ? _nv015355rm+0x1c2/0x200 [nvidia]
[142486.900987] [<ffffffffa0bc9550>] ? _nv000836rm+0x1550/0x1630 [nvidia]
[142486.901092] [<ffffffffa0bc7ea9>] ? _nv021221rm+0xff9/0x10b0 [nvidia]
[142486.901197] [<ffffffffa0bc8036>] ? _nv000836rm+0x36/0x1630 [nvidia]
[142486.901302] [<ffffffffa0bc19f2>] ? _nv003463rm+0x6d2/0x2c70 [nvidia]
[142486.901393] [<ffffffffa0c3eefe>] ? _nv000865rm+0x60e/0x810 [nvidia]
[142486.901483] [<ffffffffa0c48fb3>] ? rm_ioctl+0x73/0x100 [nvidia]
[142486.901553] [<ffffffffa06b4e00>] ? nvidia_ioctl+0xf0/0x4c0 [nvidia]
[142486.901623] [<ffffffffa06b4eca>] ? nvidia_ioctl+0x1ba/0x4c0 [nvidia]
[142486.901693] [<ffffffffa06b3080>] ? nvidia_frontend_compat_ioctl+0x40/0x50 [nvidia]
[142486.901763] [<ffffffffa06b309e>] ? nvidia_frontend_unlocked_ioctl+0xe/0x10 [nvidia]
[142486.901765] [<ffffffff8120cd72>] ? do_vfs_ioctl+0xa2/0x5d0
[142486.901768] [<ffffffff81217e07>] ? __fget+0x77/0xb0
[142486.901770] [<ffffffff8120d319>] ? SyS_ioctl+0x79/0x90
[142486.901772] [<ffffffff815de7b2>] ? entry_SYSCALL_64_fastpath+0x1a/0xa4
[142486.901774] Code: c2 49 8b 07 45 8b 47 1c 48 8d 14 38 48 01 c1 4c 89 e0 48 39 d1 48 0f 47 05 79 f0 14 e1 48 01 d0 48 c1 e8 0c 48 c1 e0 06 48 01 d8 <48> 8b 78 20 48 8d 77 ff 83 e7 01 48 0f 44 f0 8b 76 1c 41 39 f0
[142486.901797] RIP [<ffffffffa06bdfa5>] nv_free_system_pages+0xc5/0x300 [nvidia]
[142486.901869] RSP <ffff8807123dbb78>
[142486.901917] ---[ end trace d5c94798de778149 ]---
Spike29
7
It looks like this bug has been fixed with plasma-frameworks 5.26 release: 368066 – Plasma causes X to leak video memory
So far my VRAM usage remains below 300MB (after applying plasma-frameworks update).
updated to plasma-framework to 5.26 (with reboot) and yes, the vram gets low, but is still high
└───╼ nvidia-smi
Sat Sep 17 12:59:19 2016
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 370.28 Driver Version: 370.28 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX TIT... Off | 0000:13:00.0 On | N/A |
| 32% 47C P8 20W / 300W | 1221MiB / 6066MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 13642 G /usr/lib/xorg-server/Xorg 914MiB |
| 0 13728 G kwin_x11 54MiB |
| 0 13733 G krunner 2MiB |
| 0 13735 G plasmashell 134MiB |
| 0 13888 G /usr/bin/kmail 104MiB |
| 0 14507 G /usr/bin/akonadi_archivemail_agent 2MiB |
| 0 14512 G /usr/bin/akonadi_mailfilter_agent 2MiB |
| 0 14516 G /usr/bin/akonadi_newmailnotifier_agent 2MiB |
| 0 14521 G /usr/bin/akonadi_sendlater_agent 2MiB |
+-----------------------------------------------------------------------------+
is because my screen is set to 4K?