[FFmpeg-devel] It happens on CTRL+C//re:Is this a bug of Memory leak about NVENC
Ron
yoyo at yoyo.so
Mon Jun 20 11:45:09 CEST 2016
It happens on CTRL+C;
------------------ 原始邮件 ------------------
发件人: "Ron";<yoyo at yoyo.so>;
发送时间: 2016年6月20日(星期一) 下午5:09
收件人: "ffmpeg-devel"<ffmpeg-devel at ffmpeg.org>;
主题: Is this a bug of Memory leak about NVENC
hi everyone;
OS: ubuntu server 16.04
Driver Version: 361.42, GeForce GTX 970
Ffmpeg: ffmpeg-3.0.2.tar.bz2
configure: --enable-nonfree --enable-nvenc
ffmpeg -y -i input.mp4 -c:a aac -c:v nvenc_hevc -f hevc output.hevc
when I executed the ffmpeg,a part of memory leaked every time;
before running .....
free -h
total used free shared buff/cache available
Mem: 7.8G 171M 6.9G 21M 692M 7.5G
Swap: 4.0G 0B 4.0G
cat /proc/meminfo
MemTotal: 8135708 kB
MemFree: 7251780 kB
MemAvailable: 7849060 kB
Buffers: 21532 kB
Cached: 598084 kB
SwapCached: 0 kB
Active: 442604 kB
Inactive: 272172 kB
Active(anon): 98492 kB
Inactive(anon): 20632 kB
Active(file): 344112 kB
Inactive(file): 251540 kB
Unevictable: 3644 kB
Mlocked: 3660 kB
SwapTotal: 4152828 kB
SwapFree: 4152828 kB
Dirty: 76 kB
Writeback: 0 kB
AnonPages: 98856 kB
Mapped: 37340 kB
Shmem: 21552 kB
Slab: 89684 kB
SReclaimable: 44096 kB
SUnreclaim: 45588 kB
KernelStack: 4080 kB
PageTables: 5348 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 8220680 kB
Committed_AS: 2732220 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 32768 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 106364 kB
DirectMap2M: 3000320 kB
DirectMap1G: 7340032 kB
running.....
nvidia-smi
Mon Jun 20 05:06:37 2016
+------------------------------------------------------+
| NVIDIA-SMI 361.42 Driver Version: 361.42 |
|-------------------------------+----------------------+----------------------+
| 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 970 Off | 0000:01:00.0 Off | N/A |
| 0% 47C P2 60W / 151W | 942MiB / 4095MiB | 23% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 2272 C ffmpeg 921MiB |
+-----------------------------------------------------------------------------+
after running...
free -h
total used free shared buff/cache available
Mem: 7.8G 531M 6.4G 21M 850M 7.1G
Swap: 4.0G 0B 4.0G
cat /proc/meminfo
MemTotal: 8135708 kB
MemFree: 6720548 kB
MemAvailable: 7475752 kB
Buffers: 21720 kB
Cached: 755068 kB
SwapCached: 0 kB
Active: 738340 kB
Inactive: 424388 kB
Active(anon): 389296 kB
Inactive(anon): 20640 kB
Active(file): 349044 kB
Inactive(file): 403748 kB
Unevictable: 3644 kB
Mlocked: 3660 kB
SwapTotal: 4152828 kB
SwapFree: 4152828 kB
Dirty: 32 kB
Writeback: 0 kB
AnonPages: 102400 kB
Mapped: 37616 kB
Shmem: 21584 kB
Slab: 94496 kB
SReclaimable: 44880 kB
SUnreclaim: 49616 kB
KernelStack: 4224 kB
PageTables: 5864 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 8220680 kB
Committed_AS: 2747656 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 32768 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 264060 kB
DirectMap2M: 4939776 kB
DirectMap1G: 5242880 kB
nvidia-smi
Mon Jun 20 05:08:53 2016
+------------------------------------------------------+
| NVIDIA-SMI 361.42 Driver Version: 361.42 |
|-------------------------------+----------------------+----------------------+
| 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 970 Off | 0000:01:00.0 Off | N/A |
| 0% 45C P0 33W / 151W | 15MiB / 4095MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
Is this a bug?
More information about the ffmpeg-devel
mailing list