karpathy / char-rnn

Multi-layer Recurrent Neural Networks (LSTM, GRU, RNN) for character-level language models in Torch
11.58k stars 2.58k forks source link

CPU Memory does not free when program is closed #196

Open danindiana opened 7 years ago

danindiana commented 7 years ago

CPU Memory does not free when program is closed. I've also noticed this is the case sometimes, and more often than not when running the char-rnn using the GPU. Something about this code keeps it from returning system memory.

yyyyy- -yyyyyy+ OS: ubuntu Ubuntu 14.04 trusty ://+//////-yyyyyyo Kernel: x86_64 Linux 3.13.0-117-generic .++ .:/++++++/-.+sss/Uptime: 1d 10h 42m .:++o: /++++++++/:--:/- Packages: 4044 o:+o+:++...`.-/oo+++++/ Shell: bash 4.3.11 .:+o:+o/. `+sssoo+/ Resolution: 1920x1080 .++/+:+oo+o:` /sssooo. DE: Gnome 3.9.90 /+++//+:`oo+o /::--:. WM: GNOME Shell \+/+o+++`o++o ++////. WM Theme: Adwaita .++.o+++oo+:` /dddhhh. GTK Theme: Radiance [GTK2/3] .+.o+oo:. `oddhhhh+ Icon Theme: elementary-xfce-darker \+.++o+o-```.:ohdhhhhh+ Font: Cantarell 11 :o+++ ohhhhhhhhyo++os: CPU: AMD FX-8350 Eight-Core @ 4GHz .o:.syhhhhhhh/.oo++o` GPU: GeForce GTX 750 Ti /osyyyyyyo++ooo+++/ RAM: 9524MiB / 24011MiB

total used free shared buffers cached Mem: 23G 23G 269M 474M 2.6M 580M -/+ buffers/cache: 22G 852M Swap: 7.9G 0B 7.9G

24587684 K total memory 24275912 K used memory 20727748 K active memory 2323680 K inactive memory 311772 K free memory 4160 K buffer memory 642012 K swap cache 8286204 K total swap 0 K used swap 8286204 K free swap 15480791 non-nice user cpu ticks 4125500 nice user cpu ticks 1092240 system cpu ticks 78524870 idle cpu ticks 20165 IO-wait cpu ticks 13 IRQ cpu ticks 10378 softirq cpu ticks 0 stolen cpu ticks 18016848 pages paged in 35009268 pages paged out 0 pages swapped in 0 pages swapped out 343756237 interrupts 618772078 CPU context switches 1494613109 boot time 151113 forks

screenshot from 2017-05-13 23 57 53