# Memory error OpenCV, Gstreamer, and Tensorflow memory error?

**URL:** <https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053>\
**Category:** Jetson TX2\
**Created:** [May 17, 2017, 8:22pm UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053 "2017-05-17T20:22:56Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![yes\_yes\_yall](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@yes\_yes\_yall](https://forums.developer.nvidia.com/u/yes_yes_yall)\
**Post date:** [May 17, 2017, 8:22pm UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/1 "2017-05-17T20:22:56Z")

</div>

Hi, im trying to use openCV with a gstreamer pipeline to pass frames through a classifier thats been trained in Tensorflow with Keras.

Everything seems to run ok but its really grumbling about memory…does anyone have any advice here?!

$ sudo “export DISPLAY=:0” python Demo\_g.py  
[sudo] password for ubuntu:  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally  
Using TensorFlow backend.

\*\* (Demo\_g.py:1446): WARNING \*\*: Couldn’t connect to accessibility bus: Failed to connect to socket /tmp/dbus-kVb8LFTHBM: Connection refused

Available Sensor modes :  
2592 x 1944 FR=30.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10  
2592 x 1458 FR=30.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10  
1280 x 720 FR=120.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10

NvCameraSrc: Trying To Set Default Camera Resolution. Selected 1280x720 FrameRate = 24.000000 …

I tensorflow/stream\_executor/cuda/cuda\_gpu\_executor.cc:874] ARM64 does not support NUMA - returning NUMA node zero  
I tensorflow/core/common\_runtime/gpu/gpu\_device.cc:885] Found device 0 with properties:  
name: GP10B  
major: 6 minor: 2 memoryClockRate (GHz) 1.3005  
pciBusID 0000:00:00.0  
Total memory: 7.67GiB  
Free memory: 6.12GiB  
I tensorflow/core/common\_runtime/gpu/gpu\_device.cc:906] DMA: 0  
I tensorflow/core/common\_runtime/gpu/gpu\_device.cc:916] 0: Y  
I tensorflow/core/common\_runtime/gpu/gpu\_device.cc:975] Creating TensorFlow device (/gpu:0) → (device: 0, name: GP10B, pci bus id: 0000:00:00.0)  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 5.82G (6246737920 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 5.24G (5622064128 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 4.71G (5059857408 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 4.24G (4553871360 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 3.82G (4098484224 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY  
packet\_write\_wait: Connection to 192.168.0.46 port 22: Broken pipe (me killing the process in a very ineloquent manner)

---

<div class="post-metadata">

**Author:** ![gyuhyong](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gyuhyong](https://forums.developer.nvidia.com/u/gyuhyong)\
**Post date:** [May 17, 2017, 9:02pm UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/2 "2017-05-17T21:02:40Z")

</div>

i have the same problem.  
it seems to be happen because of the shared memory between the cpu and gpu  
unfortunately there is no way to fix this problem right now  
but it is not an error. just a simple message tells you memory allocation failed and try with the small amount of memory  
and it always runs fine, but it might result out the inconsistent running time for the same network

---

<div class="post-metadata">

**Author:** ![Andrey1984](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/andrey1984/32/14130_2.png) [@Andrey1984](https://forums.developer.nvidia.com/u/Andrey1984)\
**Post date:** [May 18, 2017, 12:54am UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/3 "2017-05-18T00:54:49Z")

</div>

swap file?  
do you use swap?

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [May 18, 2017, 2:42am UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/4 "2017-05-18T02:42:56Z")

</div>

Hi,

Thanks for your question.

Looks like this is an out of memory issue.

> E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 5.82G (6246737920 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY

Could you add some swap and try it again?

```auto
fallocate -l 8G swapfile
ls -lh swapfile
chmod 600 swapfile
ls -lh swapfile
mkswap swapfile
sudo swapon swapfile
swapon -s

```

Please also let us know the results.  
Thanks.

---

<div class="post-metadata">

**Author:** ![yes\_yes\_yall](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@yes\_yes\_yall](https://forums.developer.nvidia.com/u/yes_yes_yall)\
**Post date:** [May 18, 2017, 8:59am UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/5 "2017-05-18T08:59:44Z")

</div>

Hi guys - done, making a swapfile has really taken me up to the hilt with storage (my dev repo, tensorflow, openCV, protobuf all taking up a fair bit of space).

Still hitting that error

$ sudo “export DISPLAY=:0” python Demo\_g.py  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally  
Using TensorFlow backend.

Available Sensor modes :  
2592 x 1944 FR=30.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10  
2592 x 1458 FR=30.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10  
1280 x 720 FR=120.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10

NvCameraSrc: Trying To Set Default Camera Resolution. Selected 1280x720 FrameRate = 24.000000 …

I tensorflow/stream\_executor/cuda/cuda\_gpu\_executor.cc:874] ARM64 does not support NUMA - returning NUMA node zero  
I tensorflow/core/common\_runtime/gpu/gpu\_device.cc:885] Found device 0 with properties:  
name: GP10B  
major: 6 minor: 2 memoryClockRate (GHz) 1.3005  
pciBusID 0000:00:00.0  
Total memory: 7.67GiB  
Free memory: 5.71GiB  
I tensorflow/core/common\_runtime/gpu/gpu\_device.cc:906] DMA: 0  
I tensorflow/core/common\_runtime/gpu/gpu\_device.cc:916] 0: Y  
I tensorflow/core/common\_runtime/gpu/gpu\_device.cc:975] Creating TensorFlow device (/gpu:0) → (device: 0, name: GP10B, pci bus id: 0000:00:00.0)  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 5.41G (5811900416 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 4.87G (5230710272 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 4.38G (4707639296 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 3.95G (4236875264 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY

in case this helps…(i’m guessing it wont but worth mentioning anyway)

$ df -T -H  
Filesystem Type Size Used Avail Use% Mounted on  
/dev/mmcblk0p1 ext4 30G 29G 0 100% /  
none devtmpfs 8.2G 0 8.2G 0% /dev  
tmpfs tmpfs 8.3G 357k 8.3G 1% /dev/shm  
tmpfs tmpfs 8.3G 14M 8.3G 1% /run  
tmpfs tmpfs 5.3M 4.1k 5.3M 1% /run/lock  
tmpfs tmpfs 8.3G 0 8.3G 0% /sys/fs/cgroup  
tmpfs tmpfs 824M 37k 824M 1% /run/user/106  
tmpfs tmpfs 824M 4.1k 824M 1% /run/user/1001  
tmpfs tmpfs 824M 4.1k 824M 1% /run/user/1000

and…

$ du -sm \* | sort -n  
1 AUTHORS  
1 BUILD  
1 CHANGELOG.md  
1 combine\_distfiles.sh  
1 CONTRIBUTING.md  
1 CONTRIBUTORS  
1 Desktop  
1 Documents  
1 Downloads  
1 examples  
1 installTensorFlowTX2  
1 ISSUE\_TEMPLATE.md  
1 jetson\_clocks.sh  
1 LICENSE  
1 LICENSE.txt  
1 Music  
1 Pictures  
1 Public  
1 README.md  
1 scripts  
1 tegrastats  
1 Templates  
1 to  
1 Videos  
1 WORKSPACE  
2 tools  
3 site  
9 derived  
15 ENV  
27 tegra\_multimedia\_api  
38 src  
60 cudnn  
61 tensorflow-1.0.1-cp27-cp27mu-linux\_aarch64.whl  
122 third\_party  
127 output  
170 tensorflow  
766 NVIDIA\_CUDA-8.0\_Samples  
1212 cuda-l4t  
1619 rawto  
1756 protobuf-3.1.0  
8193 swapfile

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [May 18, 2017, 10:03am UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/6 "2017-05-18T10:03:41Z")

</div>

Hi,

Thanks for your feedback.  
Based on your error log, still met out of memory issue.

Could you remove the swap file and increase it into 16G?

```auto
rm -rf swapfile
fallocate -l 16G swapfile
... ...

```

Please also let us know the results.  
Thanks.

---

<div class="post-metadata">

**Author:** ![yes\_yes\_yall](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@yes\_yes\_yall](https://forums.developer.nvidia.com/u/yes_yes_yall)\
**Post date:** [May 18, 2017, 1:36pm UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/7 "2017-05-18T13:36:21Z")

</div>

Ok -0 struggling to build a swap file that size so looks like that storage output above is relevant.

Any hints on freeing up more space here?? My repo is as small as it can be - i feel like there is something going on below im missing - i dont seem to have any more swap files on system but its looking like there are spaces on disk that are similar sized yet dont seem to be in use?!?!?

$ df -T -H

Filesystem Type Size Used Avail Use% Mounted on  
/dev/mmcblk0p1 ext4 30G 30G 0 100% /  
none devtmpfs 8.2G 0 8.2G 0% /dev  
tmpfs tmpfs 8.3G 336k 8.3G 1% /dev/shm  
tmpfs tmpfs 8.3G 14M 8.3G 1% /run  
tmpfs tmpfs 5.3M 4.1k 5.3M 1% /run/lock  
tmpfs tmpfs 8.3G 0 8.3G 0% /sys/fs/cgroup  
tmpfs tmpfs 824M 13k 824M 1% /run/user/106  
tmpfs tmpfs 824M 4.1k 824M 1% /run/user/1001  
tmpfs tmpfs 824M 4.1k 824M 1% /run/user/1000

---

<div class="post-metadata">

**Author:** ![snarky](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/snarky/32/10446_2.png) [@snarky](https://forums.developer.nvidia.com/u/snarky)\
**Post date:** [May 18, 2017, 3:08pm UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/8 "2017-05-18T15:08:21Z")

</div>

Plug in a fast USB thumb drive, or an external SATA SSD, and put the swap space on that device?

---

<div class="post-metadata">

**Author:** ![yes\_yes\_yall](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@yes\_yes\_yall](https://forums.developer.nvidia.com/u/yes_yes_yall)\
**Post date:** [May 18, 2017, 4:15pm UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/9 "2017-05-18T16:15:48Z")

</div>

Will pick up a USB drive this evening and report back on progress ASAP.

---

<div class="post-metadata">

**Author:** ![yes\_yes\_yall](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@yes\_yes\_yall](https://forums.developer.nvidia.com/u/yes_yes_yall)\
**Post date:** [May 19, 2017, 1:35pm UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/10 "2017-05-19T13:35:33Z")

</div>

ok…SO 16gb swapfile created on mounted USB 3.0

df  
Filesystem 1K-blocks Used Available Use% Mounted on  
/dev/mmcblk0p1 28768380 19154044 8129948 71% /  
none 7969692 0 7969692 0% /dev  
tmpfs 8042556 348 8042208 1% /dev/shm  
tmpfs 8042556 13336 8029220 1% /run  
tmpfs 5120 4 5116 1% /run/lock  
tmpfs 8042556 0 8042556 0% /sys/fs/cgroup  
tmpfs 804256 32 804224 1% /run/user/106  
tmpfs 804256 4 804252 1% /run/user/1001  
tmpfs 804256 4 804252 1% /run/user/1000  
/dev/sda1 60340372 16830284 40421908 30% /home/ubuntu/UsbStick

STILL hitting that error though?!?!?

$ sudo “export DISPLAY=:0” python Demo\_g.py  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally  
I tensorflow/stream\_executor/dso\_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally  
Using TensorFlow backend.

Available Sensor modes :  
2592 x 1944 FR=30.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10  
2592 x 1458 FR=30.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10  
1280 x 720 FR=120.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10

NvCameraSrc: Trying To Set Default Camera Resolution. Selected 1280x720 FrameRate = 24.000000 …

I tensorflow/stream\_executor/cuda/cuda\_gpu\_executor.cc:874] ARM64 does not support NUMA - returning NUMA node zero  
I tensorflow/core/common\_runtime/gpu/gpu\_device.cc:885] Found device 0 with properties:  
name: GP10B  
major: 6 minor: 2 memoryClockRate (GHz) 1.3005  
pciBusID 0000:00:00.0  
Total memory: 7.67GiB  
Free memory: 6.07GiB  
I tensorflow/core/common\_runtime/gpu/gpu\_device.cc:906] DMA: 0  
I tensorflow/core/common\_runtime/gpu/gpu\_device.cc:916] 0: Y  
I tensorflow/core/common\_runtime/gpu/gpu\_device.cc:975] Creating TensorFlow device (/gpu:0) → (device: 0, name: GP10B, pci bus id: 0000:00:00.0)  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 5.76G (6190350336 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 5.19G (5571315200 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 4.67G (5014183424 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY  
E tensorflow/stream\_executor/cuda/cuda\_driver.cc:1002] failed to allocate 4.20G (4512764928 bytes) from device: CUDA\_ERROR\_OUT\_OF\_MEMORY

---

<div class="post-metadata">

**Author:** ![snarky](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/snarky/32/10446_2.png) [@snarky](https://forums.developer.nvidia.com/u/snarky)\
**Post date:** [May 19, 2017, 3:23pm UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/11 "2017-05-19T15:23:00Z")

</div>

Is there more than one allocation happening in CUDA?  
Do you know how much memory it will want overall?  
Or is this a fragmentation issue? (I don’t know how good the Jetson and CUDA is about mapping allocations – it may be totally automatic, or it may be a limitation.)  
I don’t think CUDA can use the virtual memory at all, it probably has to be physical.  
(The swap file is still useful to push more non-CUDA allocations out.)

> [@](#):
>
> 16gb swapfile created on mounted USB 3.0

Also, just double-checking:  
Did you actually turn on that swap file after creating it?  
What does “swapon -s” show?

---

<div class="post-metadata">

**Author:** ![yes\_yes\_yall](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@yes\_yes\_yall](https://forums.developer.nvidia.com/u/yes_yes_yall)\
**Post date:** [May 19, 2017, 3:35pm UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/12 "2017-05-19T15:35:33Z")

</div>

I thought the swap file was not working but looks like it is in retrospect…

$ sudo swapon swapfile  
ubuntu@tegra-ubuntu:~/UsbStick$ swapon -s  
Filename Type Size Used Priority  
/home/ubuntu/UsbStick/swapfile file 16777212 0 -1  
U  
O.k so next thoughts - im currently using ssh -Y -C to do this as the USB stick is taking up the memory slot. Note: i did get that memory error when i ran the script locally. Im thinking next steps should be to get a powered USB hub as i wont be able to run the USB stick and keyboard to run script locally as there is only one USB port on the TX2

---

<div class="post-metadata">

**Author:** ![linuxdev](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/linuxdev/32/10243_2.png) [@linuxdev](https://forums.developer.nvidia.com/u/linuxdev)\
**Post date:** [May 19, 2017, 6:39pm UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/13 "2017-05-19T18:39:03Z")

</div>

Do beware that when you use the ssh option “-Y” that some GPU functionality will be offloaded from the Jetson to the host PC. You might skip the “-Y” and set “export DISPLAY=:0” for display to the Jetson’s monitor.

If you want to see what goes on with memory, try running “htop” (you’d have to install it) while your script runs to see how memory changes.

---

<div class="post-metadata">

**Author:** ![snarky](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/snarky/32/10446_2.png) [@snarky](https://forums.developer.nvidia.com/u/snarky)\
**Post date:** [May 20, 2017, 4:45am UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/14 "2017-05-20T04:45:43Z")

</div>

> [@](#):
>
> there is only one USB port on the TX2

There is one USB 3 and one USB 2. I put a wireless keyboard/mouse combo adapter in the USB 2 slot, and use USB 3 for high-bandwidth peripherals.  
You can also use a USB hub for keyboard + mouse + whatever on the USB 2 port.  
(You need to plug in the white USB adapter cable that came with the devkit to get the USB 2 port)

---

<div class="post-metadata">

**Author:** ![yes\_yes\_yall](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@yes\_yes\_yall](https://forums.developer.nvidia.com/u/yes_yes_yall)\
**Post date:** [May 20, 2017, 8:07am UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/15 "2017-05-20T08:07:47Z")

</div>

ok - it’s fixed!

1. ran locally - less errors than via ssh -Y -C…

i did actually know it would bottle neck the settings to my puny macbook air but wanted to make sure the swap memory worked etc first before taking the plunge on a usb hub however as @snarky kindly pointed out i could use the USB2 slot and adapter (forgot about this!!!)

1. still saw some memory issues when running locally from jetson. Realised i might have not turned all cores on! called sudo nvpmodel -m 2 to turn on and ran again - ran without errors!

2. i had not ran the ./jetson\_clocks.sh script to boost power before so i’ve ran this now to give it a bit more of a kick. The fan is pretty loud lol but its good.

It seems to be running much nicer / smoother now. Pretty pleased with results. If there are any other optimisations / things i could check please let me know?

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 6:26pm UTC](https://forums.developer.nvidia.com/t/memory-error-opencv-gstreamer-and-tensorflow-memory-error/50053/16 "2021-10-18T18:26:14Z")

</div>

Closed on October 18, 2021, 6:26pm UTC


