Bug 238698 - x11/nvidia-driver: mem leak
Summary: x11/nvidia-driver: mem leak
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-18 21:35 UTC by rozhuk.im
Modified: 2019-06-19 10:21 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rozhuk.im 2019-06-18 21:35:18 UTC
Looks like mem leak in x11/nvidia-driver, x11/nvidia-driver-340.
Then slim launch xorg it consume 6 gb (top: SIZE) with x11/nvidia-driver and 3 gb with x11/nvidia-driver-340.
On same config with amdgpu and scfb 100-300mb.

FreeBSD rimwks 12.0-STABLE FreeBSD 12.0-STABLE #0 r346795M: Sun Apr 28 01:43:38 MSK 2019     root@rimwks:/usr/obj/usr/src/amd64.amd64/sys/RIM_WKS  amd64
xorg-server-1.19.6_11,1

I already try with generic kernel and with empty device settings:
Section "Device"
    Identifier  "Card0"
    Driver      "nvidia"
EndSection


Now on my desktop:
nvidia-smi
Wed Jun 19 00:31:39 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.87                 Driver Version: 390.87                    |
|-------------------------------+----------------------+----------------------+
| 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 GT 1030     Off  | 00000000:2D:00.0  On |                  N/A |
| 32%   43C    P0    N/A /  30W |    939MiB /  1992MiB |      4%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1444      G   /usr/local/bin/mpv                            13MiB |
|    0     37232      G   /usr/local/lib/firefox/firefox                 7MiB |
|    0     48627      G   /usr/local/bin/mpv                            15MiB |
|    0     51747      G   /usr/local/bin/mpv                            15MiB |
|    0     66792      G   /usr/local/lib/firefox/firefox                 1MiB |
|    0     77564      G   /usr/local/bin/Xorg                          847MiB |
|    0     95186      G   /usr/local/bin/mpv                            13MiB |
+-----------------------------------------------------------------------------+


last pid: 29609;  load averages:  0.82,  0.76,  0.75                                                                                                                up 37+22:47:24  00:28:31
153 processes: 1 running, 151 sleeping, 1 zombie
CPU:  2.1% user,  0.0% nice,  1.1% system,  0.0% interrupt, 96.8% idle
Mem: 1962M Active, 7144M Inact, 5923M Laundry, 12G Wired, 1550M Buf, 4495M Free
Swap: 64G Total, 20G Used, 44G Free, 31% Inuse, 156K In

  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
77564 root          2  20  -15    25G   463M select  15  17.2H   1.87% Xorg