Skip to main content
0 votes
0 answers
76 views

Java is taking too much memory or misses a few lines when writing to a file

So i have been working on a data extraction schedule that communicates with 3 microsservices to retrieve data from 12 different tables, then writes the data from a table to a file. The problem is i'm ...
Lucas's user avatar
  • 1
1 vote
1 answer
68 views

Free struct with 2d array

I am pretty new to C and I have this problem: I am defining a struct with a 2D Array and its rows and columns // Structure to represent a 2D array of integers with the given dimensions typedef struct {...
Goldenfaeron's user avatar
-1 votes
0 answers
29 views

mmap when the physical memory exhausted [closed]

pseudocode: int* ptr = mmap(); check(ptr); // after some time, physical memory exhausted ptr[1000] = 0x10; I saw process get SEGV_ACCERR. How to avoid problems from a robustness perspective.
ryryss's user avatar
  • 1
1 vote
0 answers
87 views

Can Memory Be Contiguous With PIMPL Idiom? [duplicate]

Foo.h class Foo { private: int a; bool b; float c; }; I have a class like the one above that is used when interacting with an API that itself interacts with the GPU. To reduce CPU->GPU ...
Spring E. Thing's user avatar
-2 votes
2 answers
128 views

use memset for array of struct in C++

Well, I want a function like memset but for struct, so that it can be used on some or all elements, like this: // create array of person data elements struct { unsigned char name[25]; unsigned ...
M 027's user avatar
  • 117
-3 votes
0 answers
34 views

Is there a software that visualizes the heap/stack similar to textbook graph [closed]

In any textbook regarding system programming you will see this graph or something very similar to visualize the memory layout (heap and the stack): Is there a debugger/software that visualizes the ...
MOHAMMAD RASIM's user avatar
0 votes
1 answer
63 views

How would having an #include file.h inside a function work?

I am working on an embedded systems project, so i am dealing with limited memory. I have this huge array of strings in C, it is basically an array of 31 bitmaps. I have it in a separate file called ...
ahmad's user avatar
  • 73
0 votes
0 answers
17 views

Attempt to access memory once (by the 0th thread out of 32) per warp causes memory access by all the threads

I tried to create a minimalistic reproduction of the behavior I am seeing. Consider the code given below: #include <stdlib.h> __global__ void vectorAdd(const float *a, const float *b, float *c, ...
Abhishek Ghosh's user avatar
-2 votes
0 answers
25 views

MySQL hosted on Railway consumes too much memory [closed]

I am hosting MySQL on Railway, connected via phpMyAdmin. The total size of my tables is only 32.0 KiB, with no clients connected and no queries running. However, Railway’s MySQL metrics show that ...
Mona's user avatar
  • 17
2 votes
0 answers
43 views

Iterate through large XML data while multiprocessing using Python

I have to periodically check a big XML file with millions of records. context = iter(etree.iterparse(product_file_path, tag="Record", events=("start", "end"))) _, root = ...
Mærcos's user avatar
  • 373
0 votes
0 answers
11 views

Graphical output EDSAC

I have some homework for Computer Architecture to output our initials in the bits of EDSAC Simulator. I've read a couple of manuals on this but it only tells us of how to output text but not graphical ...
Petrutz's user avatar
  • 305
0 votes
1 answer
48 views

Why are sequential reads faster than sequential writes?

I have a matrix transposing code like this: for (size_t ii = 0; ii < ii_end; ii+=TILE_SIZE) { for (size_t jj = 0; jj < jj_end; jj+=TILE_SIZE) { for (size_t i = 0; i < TILE_SIZE; i+...
Bogi's user avatar
  • 2,536
0 votes
0 answers
60 views

Optimize memory use of Python function

Updated I have the following function, which is used in a spatial statistical model. I'm able to run the model on a subset of my data (1 US state) using a few GB of RAM, but it runs out of memory when ...
Jason Hawkins's user avatar
0 votes
1 answer
18 views

Collecting Cached data to characterizing the residing 0/1 bits

I am a 1st year Ph.D. student (Research Assistant). I am trying to increase the transfer rate between cache and DRAM. To do so I am planning to integrate a good compression technique (or some other ...
Sadman Sakib Akash's user avatar
-9 votes
0 answers
93 views

How do convert this script to be compatible with my 64 bit game? (memory hacking) [closed]

I have recently created a C++ script for a memory hack for AssaultCube (a 32 bit shooter game) and I was wondering what would be the steps to convert this script to a script that can take parameters ...
B Z's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
2431