gnina: Running out of memory

Hi,

I know this is not a gnina issue but would like to bring it to attention nonetheless as others may face similar problems. Until 2 weeks or so ago gnina (precompiled binary 1.3) was running fine on Linux Mint 22.1, but since last week I noticed that the program consumes an increasing amount of RAM memory during docking until it basically runs out of memory. This happens on 2 different machines, both with 64 Gb RAM.

I suspect this started to happen after a system update, but am seeking advice on how to solve this. Would compiling gnina fix this?

Thanks/Evert

uname -a
Linux mjolnir 6.8.0-58-generic #60-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 14 18:29:48 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
sudo lshw -short
[sudo] password for evehom:                
H/W path               Device      Class          Description
=============================================================
                                   system         30A9000AMT (LENOVO_MT_30A9_BU_
/0                                 bus            To be filled by O.E.M.
/0/0                               memory         64KiB BIOS
/0/53                              memory         64GiB System Memory
/0/53/0                            memory         32GiB DIMM DDR4 1866 MHz (0.5 
/0/53/1                            memory         32GiB DIMM DDR4 1866 MHz (0.5 
/0/53/2                            memory         DIMM [empty]
/0/53/3                            memory         DIMM [empty]
/0/53/4                            memory         DIMM [empty]
/0/53/5                            memory         DIMM [empty]
/0/53/6                            memory         DIMM [empty]
/0/53/7                            memory         DIMM [empty]
/0/53/8                            memory         DIMM [empty]
/0/53/9                            memory         DIMM [empty]
/0/53/a                            memory         DIMM [empty]
/0/53/b                            memory         DIMM [empty]
/0/68                              memory         384KiB L1 cache
/0/69                              memory         1536KiB L2 cache
/0/6a                              memory         15MiB L3 cache
/0/6b                              processor      Intel(R) Xeon(R) CPU E5-2620 v
/0/6c                              processor      CPU [empty]
/0/100                             bridge         Xeon E7 v3/Xeon E5 v3/Core i7 
/0/100/1                           bridge         Xeon E7 v3/Xeon E5 v3/Core i7 
/0/100/1.1                         bridge         Xeon E7 v3/Xeon E5 v3/Core i7 
/0/100/2                           bridge         Xeon E7 v3/Xeon E5 v3/Core i7 
/0/100/2/0             /dev/fb0    display        GM107GL [Quadro K620]
/0/100/2/0.1           card1       multimedia     GM107 High Definition Audio Co
/0/100/2/0.1/0         input26     input          HDA NVidia HDMI/DP,pcm=3
/0/100/2/0.1/1         input27     input          HDA NVidia HDMI/DP,pcm=7
/0/100/2/0.1/2         input28     input          HDA NVidia HDMI/DP,pcm=8
/0/100/2/0.1/3         input29     input          HDA NVidia HDMI/DP,pcm=9
/0/100/3                           bridge         Xeon E7 v3/Xeon E5 v3/Core i7 
/0/100/3/0                         display        GA106 [GeForce RTX 3060 Lite H
/0/100/3/0.1           card2       multimedia     GA106 High Definition Audio Co
/0/100/3/0.1/0         input30     input          HDA NVidia HDMI/DP,pcm=3
/0/100/3/0.1/1         input31     input          HDA NVidia HDMI/DP,pcm=7
/0/100/3/0.1/2         input32     input          HDA NVidia HDMI/DP,pcm=8
/0/100/3/0.1/3         input33     input          HDA NVidia HDMI/DP,pcm=9
/0/100/5                           generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/100/5.1                         generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/100/5.2                         generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/100/5.4                         generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/100/11                          generic        C610/X99 series chipset SPSR
/0/100/11.4            scsi2       storage        C610/X99 series chipset sSATA 
/0/100/11.4/0          /dev/sda    disk           256GB TOSHIBA THNSFJ25
/0/100/11.4/0/1        /dev/sda1   volume         1023KiB BIOS Boot partition
/0/100/11.4/0/2        /dev/sda2   volume         512MiB Windows FAT volume
/0/100/11.4/0/3        /dev/sda3   volume         237GiB LVM Physical Volume
/0/100/11.4/1          /dev/sdb    disk           2TB ST2000DX001-1CM1
/0/100/11.4/1/1        /dev/sdb1   volume         1863GiB EXT4 volume
/0/100/14                          bus            C610/X99 series chipset USB xH
/0/100/14/0            usb3        bus            xHCI Host Controller
/0/100/14/0/5                      bus            USB Hub
/0/100/14/0/6          mmc0        bus            USB2.0-CRW
/0/100/14/0/d                      input          USB Receiver
/0/100/14/1            usb4        bus            xHCI Host Controller
/0/100/14/1/1          scsi11      storage        My Passport 0827
/0/100/14/1/1/0.0.0    /dev/sdc    disk           2TB My Passport 0827
/0/100/14/1/1/0.0.0/1  /dev/sdc1   volume         1862GiB EXT4 volume
/0/100/14/1/1/0.0.1                generic        SES Device
/0/100/14/1/5                      bus            USB Hub
/0/100/16                          communication  C610/X99 series chipset MEI Co
/0/100/16.2                        storage        C610/X99 series chipset IDE-r 
/0/100/16.3                        communication  C610/X99 series chipset KT Con
/0/100/19              eth1        network        Ethernet Connection (2) I218-L
/0/100/1a                          bus            C610/X99 series chipset USB En
/0/100/1a/1            usb1        bus            EHCI Host Controller
/0/100/1a/1/1                      bus            Hub
/0/100/1b              card0       multimedia     C610/X99 series chipset HD Aud
/0/100/1b/0            input34     input          HDA Intel PCH Front Mic
/0/100/1b/1            input35     input          HDA Intel PCH Rear Mic
/0/100/1b/2            input36     input          HDA Intel PCH Line
/0/100/1b/3            input37     input          HDA Intel PCH Line Out
/0/100/1b/4            input38     input          HDA Intel PCH Front Headphone
/0/100/1c                          bridge         C610/X99 series chipset PCI Ex
/0/100/1c.1                        bridge         C610/X99 series chipset PCI Ex
/0/100/1c.1/0                      bridge         IT8893E PCIe to PCI Bridge
/0/100/1c.2                        bridge         C610/X99 series chipset PCI Ex
/0/100/1c.2/0          eno1        network        I210 Gigabit Network Connectio
/0/100/1d                          bus            C610/X99 series chipset USB En
/0/100/1d/1            usb2        bus            EHCI Host Controller
/0/100/1d/1/1                      bus            8 channel internal hub
/0/100/1f                          bridge         C610/X99 series chipset LPC Co
/0/100/1f/0                        system         PnP device PNP0b00
/0/100/1f/1                        system         PnP device PNP0c02
/0/100/1f/2                        system         PnP device PNP0c02
/0/100/1f/3                        communication  PnP device PNP0501
/0/100/1f/4                        system         PnP device PNP0c02
/0/100/1f/5                        system         PnP device PNP0c31
/0/100/1f.2            scsi6       storage        C610/X99 series chipset 6-Port
/0/100/1f.2/0.0.0      /dev/cdrom  disk           DVD-RAM GHC0N
/0/100/1f.3                        bus            C610/X99 series chipset SMBus 
/0/100/1f.6                        generic        C610/X99 series chipset Therma
/0/b                               generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/b.1                             generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/b.2                             generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/c                               generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/c.1                             generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/c.2                             generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/c.3                             generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/c.4                             generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/c.5                             generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/f                               generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/f.1                             generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/f.4                             generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/f.5                             generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/f.6                             generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/10                              generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/10.1                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/10.5                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/10.6                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/10.7                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/12                              generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/12.1                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/13                              generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/13.1                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/13.2                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/13.3                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/13.4                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/13.5                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/13.6                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/13.7                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/14                              generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/14.1                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/14.2                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/14.3                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/14.6                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/14.7                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/15                              generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/15.1                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/15.2                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/15.3                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/16                              generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/16.6                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/16.7                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/17                              generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/17.4                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/17.5                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/17.6                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/17.7                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/1e                              generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/1e.1                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/1e.2                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/1e.3                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/1e.4                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/1f                              generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/0/1f.2                            generic        Xeon E7 v3/Xeon E5 v3/Core i7 
/1                                 power          To Be Filled By O.E.M.
/2                     input0      input          Power Button
/3                     input1      input          Power Button
/4                     input22     input          Logitech ERGO K860
/5                     input23     input          Logitech ERGO K860
/6                     input24     input          Logitech MX Vertical
/7                     input25     input          Logitech MX Vertical

Image

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

I have tried to compile but there is a cmake error related to nvToolsExt. I understand this is a cmake issue with the later versions of nvidia cuda (headers vs library) and I have tried fixes described generally online and nothing has worked. If the change you made is acceptable, is it possible to provide an updated binary? It would be much appreciated.

Thanks. Dale

error excerpt from cmake command is below

CMake Error at build/_deps/libtorch-src/share/cmake/Caffe2/public/cuda.cmake:70 (message): Failed to find nvToolsExt Call Stack (most recent call first): build/_deps/libtorch-src/share/cmake/Caffe2/Caffe2Config.cmake:86 (include) build/_deps/libtorch-src/share/cmake/Torch/TorchConfig.cmake:68 (find_package) CMakeLists.txt:91 (find_package)

This fix looks promising, memory use stays stably around 3 Gb when feeding gnina with the large ligand file. I will let it run overnight and see if all goes well.

Still running this morning, using only 5% RAM (3.5 Gb), and 33K ligands docked, so looking good!

I think I have a fix here: c9480906965da88c7d6a963aef1f1a14062f4f97 The input reader is getting (far) ahead of the worker jobs resulting in needless memory usage. Are you able to build the latest version in git and test it?