36,491 questions
0
votes
0
answers
42
views
Taking advantage of memory contiguousness in HLSL
This is a bit of a slog so bare with me.
I'm currently writing a 3D S(moothed) P(article) H(ydrodynamics) simulation in Unity with a parallel HLSL backend. It's a Lagrangian method of fluid simulation,...
0
votes
1
answer
57
views
Unable to find required GLIBC private symbols
I am trying to analyze a memory dump obtained with dotnet-dump from a Ubuntu container in WinDbg to find an unmanaged memory leak.
I have been able to load the dump, but whenever I try to run !heap -s,...
Best practices
2
votes
5
replies
119
views
Memory accounting and quotas for subtasks in golang programs
If I have a server written in golang that processes requests containing user queries, is there any viable method to track and limit the memory used by any given user request?
The server process does ...
0
votes
0
answers
40
views
Confused by Valgrind Massif output - appears memory allocated under "free"
I'm attempting to use Massif to profile heap usage of an application. I'm running with the --pages-as-heap=true option and am confused by some output I'm seeing. Specifically I'm seeing allocation by ...
1
vote
1
answer
69
views
Handling cleanup for tasks which might be OOMKilled
I have some Python code running in k8s which in some cases is being OOMKilled and not leaving me time to cleanup which is causing bad behavior.
I've tried multiple approaches but nothing seems quite ...
0
votes
0
answers
35
views
java spring application - unhealthy heap behaviour
So i have a very relatively simple java application spring 2.3.7 on java 8 that microservice simply calls DB to save update or retrive base64 image string thats all.
So i have deployed that in my ...
0
votes
0
answers
44
views
H2O-3 Calling a lot of GC calls in java when trying to load CSV file with 16M rows
I am using h2o-3 java repo to load this frame but have been running into memory issues with constant GC pressure.
The actual frame size is 3.31 GB as per h2o logs, but the peak JVM usage comes to be ...
-2
votes
1
answer
129
views
Is this a valid JavaScript approach for sorting large arrays of unique integers efficiently? [closed]
I’m experimenting with sorting large arrays of unique integers in JavaScript and came up with a simple approach. I’m curious if it’s a recognized pattern or if there are potential pitfalls I might be ...
1
vote
1
answer
129
views
Is address sanitizer supposed to catch this error?
I tried it with -fsanitize=address and it didn't show any error. Is this a problem with my address sanitizer or system, or is this normal? Also, how to catch these situations?
#include <iostream>...
0
votes
1
answer
92
views
Why can't successfully kmalloc pages in this case?
See the below logs, A critical kernel driver cannot apply for a large block of continuous memory and then panic:
[29001.362425] kworker/u12:4: page allocation failure: order:4, mode:0x40dc0(GFP_KERNEL|...
0
votes
0
answers
140
views
Does accessing the contents of the string after calling reserve causes UB? [duplicate]
From another thread I found that
indeed allocates enough storage to hold at least n elements, but it doesn't actually fill the container with any elements
If elements are already allocated why ...
0
votes
0
answers
94
views
move_pages() only is effective temporarily in C++
I'm trying to write NUMA-aware codes, and i encountered some unexpected behavior. I decide to use move_pages() to test if i create the correct NUMA placement but the result is very confusing.
for (...
0
votes
0
answers
19
views
Does alloc_calls of slab_info will decrease if the memory is freed?
I found the count of an API in alloc_calls is not increased over time and decreased if I free allocated memory. Is this true?
So if I unload the driver, the API should disappear in the alloc_calls ...
2
votes
2
answers
171
views
How CPU read memory in alignment?
I have read a post about Why we need memory alignment.
I mostly focus the effects on the performance when CPU read memory.
The CPU always reads at its word size (4 bytes on a 32-bit processor), so ...
0
votes
1
answer
101
views
Grails app + Tomcat + Spring Boot - Memory usage is increasing while the application is idle
I started to test Docker to run my application and I had noticed my memory consume when using "docker stats". I see the memory used from the container increasing like, every f5 on my page or ...
-2
votes
2
answers
131
views
Facing issues with Structs and malloc in an assignment question [closed]
This was a question in a C Programming assignment given to me as a part of last week's assessment. Requesting everyone to kindly explain what needs to be done and how it needs to be done. Kindly note ...
2
votes
1
answer
120
views
Weird problems with Zig Array List(s)
In the below code, I have the function "get_specific_files". The objective of this function is to check if certain filenames contain some word, and then return all the files that contain ...
0
votes
0
answers
48
views
What can corrupt memory in Julia -- "probably modified after bring freed?"
I am very new to Julia. I am working on a project written in Julia and I am using the following script:
import Pkg
Pkg.activate(@__DIR__)
project_root = normpath(joinpath(@__DIR__, "..", &...
1
vote
0
answers
57
views
Is it possible to reduce the memory requirements for (I)FFT by chunking?
I'm trying to run an IFFT on a very long signal (10^9 data points) and I'm running into RAM constraints. I'd like to be able to chop up the signal and run it in batches (as I am not time constrained ...
1
vote
1
answer
186
views
Why does polars kept killing the python kernel when joining two lazy frames and collecting them?
I have one dataframe: bos_df_3 that has about a 30k+ rows and another, taxon_ranked_only, with 6 million when I tried to join them using:
matching_df = (
pl.LazyFrame(bos_df_3)
.join(
other=...
2
votes
1
answer
269
views
Laravel Filament Admin Panel: "Allowed memory size exhausted" error
I'm working on a Laravel project using Filament for the admin dashboard. Initially, everything worked fine with a few resources. But after adding a fourth resource, the panel started throwing memory ...
2
votes
2
answers
194
views
Is it safe to .pop_back() from an std::vector in order to avoid pointers/memory shifting?
I have this class:
class Socket
{
[...]
pollfd* fdPtr;
};
And I have a Manager class that creates the actual pollfd objects and adds them to a std::vector named pollFdsVec, to then poll on ...
0
votes
0
answers
193
views
Jax unable to allocate memory despite memory being free?
I have been having issues allocating memory on the GPU with jax. I am running on a cluster that gives me access to a RTX6000 (24GiB vram) which jax is attempting to allocate to.
Output of jax....
0
votes
3
answers
233
views
Array of pointers to char looks weird in memory [closed]
I have an array of char pointers (C-style string). As far as I know C-style string containing N characters occupy N + 1 bytes in memory since it also has a null character '\0' at the end terminating ...
-1
votes
1
answer
103
views
Why is it taking more memory when I access an array directly with iterators instead of just copying the vector
I implemented a function to return the Pascal Tree of numRows rows in 2 ways:
// Making a copy of the last element
class Solution {
public:
vector<vector<int>> generate(int numRows) {
...