Category "memory"

one node of rabbitmq cluster will consume large memory(until OOM) occasionally

Environment: Openstack Train, deploy by kolla-ansible RabbitMQ 3.7.10 on Erlang 20.2.2 three control nodes(also run other components) Problem: node-34 rabbitmq

How to upload a 62 GB datasets to google colab

I am new to processing large datasets, new to google colab. I have a 62 GB datasets and I zipped it uploaded it to the Files section of google colab. Before upl

Getting a stack overflow exception when declaring a large array

The following code is generating a stack overflow error for me int main(int argc, char* argv[]) { int sieve[2000000]; return 0; } How do I get around

Allocate memory for big .txt file in C

I need to allocate memory using malloc or calloc, for a large file that looks like this: 2357 VKLYKK 7947 1WTFWZ 3102 F2IXK3 2963 EXMW55 2865 50CJES 2510 8PC1AI

how python [0] * 3 are independent but [[0] * 3] * 3 each sub list is the same object? [duplicate]

my_list = [0] * 3 my_list[0] = 1 outputs to [1, 0, 0] my_2ndlist = [[0] * 3] * 3 my_2ndlist[1][1] = 5 outputs to [[0, 5, 0], [0, 5, 0], [0,

How do I search most common words in very big file (over 1 Gb) wit using 1 Kb or less memory?

I have very big text file, with dozens of millions of words, one word per line. I need to find top 10 most common words in that file. There is some restrictions

Transpose an image2d_t in OpenCL

I work on an image processing code base that uses image2d_t objects everywhere. These have their shape (width and height) formally declared which enables progra

R memory issues after reinstall

I have been running several R scripts without issue until one day I tried to open RStudio and it said "Fatal error: unable to open base package in R." I uninst

Reduce float precission to save memory in Python

I am preparing a code to create an array of 10^5 rows and 10^4 columns with Python. Each element of the array is a float (1.504096744947185, e.g.), which takes

UnmarshallerImpl finalize() method leads to memory leak

I'm using webServiceTemplate in my multithread Spring app. There are my jaxb dependencies: compile('javax.xml.bind:jaxb-api:2.3.0') compile('org.glassfish.jaxb:

How to deal with the small stack size in MinGW?

I have the following code #include <stdio.h> //#define arraySize 5 #define arraySize 500 void func(double B[arraySize][arraySize]) { B[0][0] = 5; } i

Can Unity handle perfectly multiple render of differents sizes of the same picture?

If I have two pictures slots in my game, one displayed as an icon and one displayed as the full image. Should I have two differents pictures in my Resources fol

Does `ret` also remove all the function's arguments from the stack?

When ret is executed, it pops the (return) address and puts it in the EIP register. But what about all the function's arguments left on the stack? Are we just i

Loading large files into memory with Python

When doing work with large files and datasets (usually 1 or 2 gb+), the process is killed do to running out of RAM. What tools and methods are available to allo

Memory issues with a list of lists [closed]

I am having some memory issues and I am wondering if there is any way I can free up some memory in the code below. I have tried using a genera

Running out of memory on Google Colab

I'm trying to run a demo of TF Object Detection model with Faster RCNN on Google Colab Pro GPU (RAM: 25GB, Disk: 147GB), but it fails and gives me the following

How to use and update same variable across multiple modules in python independently?

I have 3 files and I want to do something like below [1] conf.py var = 10 # Intialized with 10 (start) [2] file_1.py import conf print(conf.var) # Prints 10

Is there a way to find exact location ( adress ) of file on disk?

I'm developing a software using C++ for Windows/Linux. I want to create a file (txt, json, license, you name it) at runtime, and save it somewhere. Is it possib

Modify data in memory with python

suppose I have a variable with a numeric value of 20. we used the id() function to get its memory address. How can the numeric value of 20 be changed to, for ex

Location of methods in memory [duplicate]

I am new in Go world, the question could be obvious. Let's say I have a struct Example, which has some methods: type Example struct {} func (