Skip to main content
Filter by
Sorted by
Tagged with
3 votes
2 answers
192 views

I duplicated the topic because (possibly) I made a mistake with the section of the site and initially posted in the wrong place: Ways to reliably read an object in C I have a regular byte buffer ...
Evgeny Ilyin's user avatar
2 votes
1 answer
80 views

I have a Python function that consumes a large amount of memory. When the function finishes, I want to release the memory and return the freed pages to the operating system by calling malloc_trim(0). ...
pixeldrift's user avatar
1 vote
1 answer
86 views

I'm facing an AlignmentMismatch error while trying to cast a Vec<u8> to Vec<T>, where T is a struct that uses repr(C) and Pod + Zeroable. I've also tried the slice road &[u8] -> &...
Sigma Octantis's user avatar
0 votes
0 answers
46 views

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,...
Ben Williams's user avatar
-3 votes
0 answers
41 views

I suspect that my Java app running in tomcat is draining some memory, It is a Spring application with most stateless services and then I think the memory consumption should be low especially while no ...
Tobia's user avatar
  • 9,609
0 votes
1 answer
63 views

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,...
Steve's user avatar
  • 9,635
1 vote
0 answers
89 views

Goal I want to write a function in Rust using the Polars crate that does the following: Copy a Parquet file from one location to another Handle files larger than RAM Not load the entire file into ...
Horowitzathome's user avatar
Best practices
2 votes
6 replies
133 views

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 ...
Craig Ringer's user avatar
2 votes
1 answer
118 views

Consider the example code: from functools import partial from jax import jit import jax.numpy as jnp @partial(jit, static_argnums=(0,)) def my_function(n): idx = jnp.tile(jnp.arange(n, dtype=int)...
Ben's user avatar
  • 539
0 votes
0 answers
44 views

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 ...
Kevin's user avatar
  • 549
3 votes
3 answers
331 views

I'm trying to do the very basics of a buffer overflow, nothing illegal at all. My understanding of the code below is that the overflowing buffer doesnt hold enough space for all the data being written,...
Luke's user avatar
  • 41
1 vote
1 answer
79 views

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 ...
Aharon Sambol's user avatar
3 votes
2 answers
157 views

I am confused why my application is somehow slower when I run it by executing the .exe file from the publish folder, compared to running it from Visual Studio debugger (F5). I use .NET 8.0 and this is ...
Viki Theolorado's user avatar
0 votes
0 answers
39 views

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 ...
Syed_Furqhan007's user avatar
0 votes
0 answers
43 views

My single threaded program allocates and initializes a volatile block of memory on an unspecified hardware architecture. It then writes into this block in a loop using a stride equal to the cache line ...
mafu's user avatar
  • 33k
0 votes
0 answers
47 views

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 ...
Monil Patel's user avatar
0 votes
1 answer
100 views

I don't know how to check or increase the memory limitation of duckdb wasm. I'm using chrome and I import some parquet into the browser, one of them has 234Mb of data I did my research and the limit ...
Antho's user avatar
  • 1
-2 votes
1 answer
130 views

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 ...
Aaron's user avatar
  • 1
0 votes
1 answer
61 views

I am trying to combine a background video with captions generated word by word from a tts file. I am using nvenc for ffmpeg but my gpu's cuda version is too old to use it for whisper. The script works ...
JuanPlayz's user avatar
1 vote
1 answer
133 views

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>...
Zebrafish's user avatar
  • 16.3k
0 votes
1 answer
214 views

I have a Nuxt 3 production app hosted on Scalingo (it's like Heroku but is a french company) I have so many container crashes because of memory issues when a lot of people are browsing the website. ...
Sw0ut's user avatar
  • 804
0 votes
1 answer
102 views

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|...
wonderzyp's user avatar
1 vote
1 answer
106 views

I am designing a library where I need AWS SDK for S3 and Kinesis as wrapped sub-components. In an executable, Aws::InitAPI() and Aws::ShutdownAPI() can be called once, so I am trying to design a ...
Amirul I's user avatar
  • 319
0 votes
0 answers
140 views

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 ...
sat0sh1c's user avatar
3 votes
0 answers
121 views

I'm working on several projects that are targeting bare-metal multi-core microprocessors, with hardware provisions for shared memory. In other words, the device has several separate CPU cores (of ...
Fake Name's user avatar
  • 5,943
0 votes
0 answers
94 views

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 (...
Lynn's user avatar
  • 11
1 vote
1 answer
113 views

I want to clarify how modern x86 architectures handle the latency of memory transactions that go all the way to DRAM. Specifically, which resources (which queues) get occupied waiting for the memory ...
xealits's user avatar
  • 4,808
0 votes
0 answers
23 views

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 ...
samp lin's user avatar
1 vote
1 answer
124 views

I'm trying to read a variable from another process' memory in C and upon first query, for which I'm using VirtualQueryEx function, some potentially matching values are returned. However, when I change ...
ACarrot's user avatar
  • 63
2 votes
2 answers
172 views

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 ...
bod's user avatar
  • 33
5 votes
1 answer
168 views

I am encountering something extremely strange on my system right now. #include <cstdint> #include <iostream> constexpr size_t N = 1l<<31; int main() { auto buf = new int64_t[N]{...
JMC's user avatar
  • 2,123
0 votes
1 answer
105 views

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 ...
David P's user avatar
0 votes
0 answers
129 views

In a main.py file I have following code: import time from v1 import log, ServiceLogger from logging.handlers import MemoryHandler class Service: h = MemoryHandler(1000) id = None log = ...
Denis Prot's user avatar
-2 votes
2 answers
136 views

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 ...
Gargi Chaturvedi's user avatar
0 votes
0 answers
64 views

The app I developed shows the highest memory usage on my device—even more than YouTube, Instagram, or other SNS apps—despite not handling videos or large image data. I’ve searched extensively for ...
Hyejung's user avatar
  • 1,314
2 votes
1 answer
129 views

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 ...
fwamingo 273's user avatar
0 votes
2 answers
252 views

The Specific Problem I am starting with two gigantic input text files containing lots of lines with a single string value on each line. I'd like to write a Java program to combine the contents of ...
Michael K's user avatar
  • 1,053
0 votes
0 answers
48 views

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__, "..", &...
Raul Guarini Riva's user avatar
0 votes
0 answers
97 views

I’m building a Flutter app, and some users are receiving the following device notification: “This app uses a lot of memory, so your phone is slow. Switch this feature to ultra power saving so your ...
Hyejung's user avatar
  • 1,314
1 vote
0 answers
58 views

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 ...
David's user avatar
  • 454
0 votes
0 answers
80 views

in mvc web app, first chrome memory snapshot is ~ 51mb after i call ajax to re render partialView, second snapshot take double or more! ~ 100bm. and in every call partialview memory usage get larger ...
rahman's user avatar
  • 131
1 vote
1 answer
200 views

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=...
Ryan's user avatar
  • 436
1 vote
0 answers
59 views

When running the following code: events <- read.csv("C:\\Users\\jsh274\\OneDrive - University of Canterbury\\6. Data\\3. Scvenja_data\\3. Jeniya\\1. Analysis\\Output\\3.1 ...
JSS's user avatar
  • 31
2 votes
1 answer
285 views

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 ...
NAZ's user avatar
  • 23
1 vote
2 answers
102 views

I wanted to implement the Merge Sort algorithm, but I am having trouble with the borrow checker rules. The compiler gives me the hint: cannot borrow *lst as immutable because it is also borrowed as ...
Finn's user avatar
  • 105
2 votes
2 answers
195 views

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 ...
desynchedneo's user avatar
2 votes
1 answer
150 views

If I were to mmap() a very large file (for read-only access) pages would be read-in, by the kernel, after a page fault indicates that the page is not already cached in RAM. Pages will remain cached ...
aSteve's user avatar
  • 2,056
0 votes
0 answers
208 views

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....
Kepler7894i's user avatar
3 votes
0 answers
140 views

I have recently experienced major crashes on my computer after executing some Python code of mine. My PC would freeze and sometimes show a bluescreen after a few rounds of a seemingly unproblematic ...
Octavius's user avatar
  • 139
0 votes
3 answers
235 views

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 ...
tftoclik's user avatar
  • 173

1
2 3 4 5
730