memory Questions

4

Solved

I am trying to understand memory allocation and how we can reduce them. I created the following long list for testing var list = new List<int>(Enumerable.Range(0, 1_000_000).ToArray()); Then...
Duong asked 24/12, 2023 at 18:8

3

I have a huge memory leak problem involving a C-extension I'm developing. In C, I have an array of doubles called A and an int variable called AnotherIntVariablethat I want to pass to Python. Well,...
Vullo asked 1/4, 2011 at 3:42

3

Is there drawback in declaring and defining variable at return? Here is one case from the user Man in Black's question. If we return a reference to a local variable, we will end up with an incorrec...
Jolynjolynn asked 21/12, 2023 at 1:25

3

I have understood that docker run -m 256m --memory-swap 256m will limit a container so that it can use at most 256 MB of memory and no swap. If it allocates more, then a process in the container (n...
Chuck asked 5/2, 2018 at 8:30

15

Solved

I'm just beginning to have a look at Objective-C and Cocoa with a view to playing with the iPhone SDK. I'm reasonably comfortable with C's malloc and free concept, but Cocoa's references counting s...
Longinus asked 9/8, 2008 at 3:13

6

Solved

I am quite curious about this question concerning the memory management of the Android operating system so I hope for a quite detailed answer on that topic. What I would like to know: What is th...

1

Official TF documentation [1] suggests 2 ways to control GPU memory allocation Memory growth allows TF to grow memory based on usage tf.config.experimental.set_memory_growth(gpus[0], True) Virtual...
Squad asked 8/5, 2021 at 2:31

32

Solved

How do you measure the memory usage of an application or process in Linux? From the blog article of Understanding memory usage on Linux, ps is not an accurate tool to use for this intent. Why ps i...
Ursulina asked 25/9, 2008 at 3:19

6

Solved

I have a strange bug in my own program. I'm currently working on Video Editing app. I have a SongPicker view controller, which displays all the songs from the user's music app. When the user select...
Findley asked 24/2, 2015 at 16:55

5

I am working with Keras 2.0.0 and I'd like to train a deep model with a huge amount of parameters on a GPU. Using too large images, I'm running out of memory (OOM). Using too low images, the mode...
Miserable asked 31/3, 2017 at 9:32

9

Solved

Is there a Python library that allows manipulation of zip archives in memory, without having to use actual disk files? The ZipFile library does not allow you to update the archive. The only way s...
Guildroy asked 17/3, 2010 at 15:57

19

Solved

I have just found out that my script gives me a fatal error: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 440 bytes) in C:\process_txt.php on line 109 That li...
Judiejudith asked 29/1, 2010 at 14:26

4

Solved

I am writing a video game, Humm and Strumm, which requires a network component in its game engine. I can deal with differences in endianness easily, but I have hit a wall in attempting to deal with...
Placard asked 27/4, 2010 at 19:27

3

Solved

I created a docker container from an image which is of size: ~90 MB. The container is running fine. I wanted to know how much RAM does a container must be using on its host machine. So I ran "...
Monocoque asked 25/1, 2018 at 12:18

7

Where is a volatile variable stored in the program memory (in which section)?
Displode asked 3/11, 2009 at 5:39

4

Solved

This seems like it should have a super easy solution, but I just can't figure it out. I am simply creating a resized array and trying to copy all the original values over, and then finally deleting...
Jackal asked 8/11, 2011 at 20:34

4

Solved

I'm confused about the purpose of having both hard and soft memory limits for ECS task definitions. IIRC the soft limit is how much memory the scheduler reserves on an instance for the task to run...
Twelfth asked 26/6, 2017 at 16:18

11

Solved

I am trying to understand how Java stores integer internally. I know all java primitive integers are signed, (except short?). That means one less bit available in a byte for the number. My questio...
Dorettadorette asked 16/11, 2012 at 18:22

7

Solved

IDE,SCSI,SSD,SATA or all of those.
Sezen asked 3/9, 2009 at 4:11

9

Solved

This question may looks silly, but please guide me I have a function to convert long data to char array void ConvertLongToChar(char *pSrc, char *pDest) { pDest[0] = pSrc[0]; pDest[1] = pSrc[1]; ...
Contraception asked 14/7, 2011 at 1:20

3

Solved

I am looking to log all accesses to addresses in a block allocated in heap, pointed by a given pointer. In the following example, it would be monitoring all accesses to 1024 bytes from p. #define B...
Tenure asked 6/9, 2023 at 22:10

7

I have a data analysis module that contains functions which call on the matplotlib.pyplot API multiple times to generate up to 30 figures in each run. These figures get immediately written to disk ...
Submergible asked 27/2, 2015 at 4:7

9

Solved

I am currently storing a list of words (around 120,000) in a HashSet, for the purpose of using as a list to check enetered words against to see if they are spelt correctly, and just returning yes o...
Mcinnis asked 12/7, 2010 at 11:31

29

Solved

I have an application that reads a CSV file with piles of data rows. I give the user a summary of the number of rows based on types of data, but I want to make sure that I don't read in too many ro...
Vestiary asked 9/9, 2008 at 17:7

3

I'm looking to allocate a vector of small-sized structs. This takes 30 milliseconds and increases linearly: let v = vec![[0, 0, 0, 0]; 1024 * 1024]; This takes tens of microseconds: let v = ve...
Breadstuff asked 13/12, 2019 at 0:46

© 2022 - 2024 — McMap. All rights reserved.