memory-management

How to calculate Node Allocatable Resources for Kubernetes cluster?

大城市里の小女人 提交于 2020-01-24 01:06:11
问题 We have a cluster where nodes are out of resources leading to slowness and over-committing issues. This is forcing us to restart the nodes frequently. We are planning to enforce a node allocatable resource policy to split the available CPU, Memory and Ephemeral Storage between system, kubelet, and application pods. Came across some guidelines on allocatable resource calculation here. It does not specify how much is the split between system and kubelet resources. Also, we are on open shift and

How to control SQLite in memory DB consumption using C# vb.net

你。 提交于 2020-01-23 18:58:06
问题 I have 100 GB data. I want to load it in-memory using SQLite in VB.Net. I have 32 GB RAM. I want SQLite to take 24 GB RAM and other 8 GB will remain free for other OS tasks. When it hits the 24 GB RAM limit It should start flushing data to some disk file automatically. First: I used in-memory DB. Dim cn As SQLiteConnection = New SQLiteConnection("Data Source=:memory:") But it consumes 31.8 GB RAM, and then OS (Windows 7) jump in and takes the control and start using virtual memory (which

Out of memory exception in my code

天涯浪子 提交于 2020-01-23 16:50:52
问题 I am running a code for long hours as part of a stress test on an Oracle db and using java version "1.4.2". In a nutshell, what I am doing is : while(true) { Allocating some memory as a blob byte[] data = new byte[1000]; stmt = fConnection.prepareStatement(query); // [compiling an insert query which uses the above blob] stmt.execute(); // I insert this blob-row in the database. stmt.close(); } Now I want to run this test for 8-10 hrs. However apparently after inserting about 15million records

Out of memory exception in my code

岁酱吖の 提交于 2020-01-23 16:50:01
问题 I am running a code for long hours as part of a stress test on an Oracle db and using java version "1.4.2". In a nutshell, what I am doing is : while(true) { Allocating some memory as a blob byte[] data = new byte[1000]; stmt = fConnection.prepareStatement(query); // [compiling an insert query which uses the above blob] stmt.execute(); // I insert this blob-row in the database. stmt.close(); } Now I want to run this test for 8-10 hrs. However apparently after inserting about 15million records

What could explain the difference in memory usage reported by FastMM or GetProcessMemoryInfo?

非 Y 不嫁゛ 提交于 2020-01-23 11:08:16
问题 My Delphi XE application is based on a single EXE using a local server DLL created by RemObjects and uses a lot of memory for a specific operation until it generates an exception saying there are not enough memory. So I'm trying to understand why and where this is happening so I placed various steps throughout my code where I report on memory usage. The problem is that I'm getting very different information based on the method used to get memory usage information: If I use the method

Reserve memory on OS X

纵然是瞬间 提交于 2020-01-23 11:03:31
问题 What's the equivalent to Windows's VirtualAlloc in OS X? That is, how can i reserve a contiguous address space without actually commiting it and then commit chunks of it later? Thanks, Alex 回答1: The mmap() function, called with MAP_ANON | MAP_PRIVATE , is very roughly equivalent to VirtualAlloc() with the MEM_RESERVE flag. Memory is then committed by touching each page in the mapping. 回答2: No, unfortunately, there is no exact equivalent to VirtualAlloc . 来源: https://stackoverflow.com

Linux fork within class on heap

有些话、适合烂在心里 提交于 2020-01-23 08:42:11
问题 What happens when I have the following situation: class A: holds on to dynamically allocated object B's. It will create and destroy these. class B: has an execute function called by A. Execute will fork() and the child will use execvp to run another process. BUT, a flag can be set so that the parent will not wait for the child (allows it to run in the background). My question is, what is fork doing in this case? I know that the child has a complete copy of the process of the parent, but I'm a

Linux fork within class on heap

半城伤御伤魂 提交于 2020-01-23 08:41:25
问题 What happens when I have the following situation: class A: holds on to dynamically allocated object B's. It will create and destroy these. class B: has an execute function called by A. Execute will fork() and the child will use execvp to run another process. BUT, a flag can be set so that the parent will not wait for the child (allows it to run in the background). My question is, what is fork doing in this case? I know that the child has a complete copy of the process of the parent, but I'm a

Linux fork within class on heap

淺唱寂寞╮ 提交于 2020-01-23 08:41:07
问题 What happens when I have the following situation: class A: holds on to dynamically allocated object B's. It will create and destroy these. class B: has an execute function called by A. Execute will fork() and the child will use execvp to run another process. BUT, a flag can be set so that the parent will not wait for the child (allows it to run in the background). My question is, what is fork doing in this case? I know that the child has a complete copy of the process of the parent, but I'm a

Small objects allocator

不问归期 提交于 2020-01-23 06:16:56
问题 Has anybody used SmallObjectAllocator from Modern C++ Design by Andrei Alexandrescu in a big project? I want to implement this allocator but I need some opinions about it before using it in my project. I made some tests and it seems very fast, but the tests were made in a small test environment. I want to know how fast it is when are lots of small objects(like events, smart pointers, etc) and how much extra memory it uses. 回答1: I suggest you ask Rich Sposato. He has done extensive work on