ram

When using -Xmx flag, what happens if the argument given exceed physical memory?

大兔子大兔子 提交于 2019-12-25 17:01:24
问题 When using -Xmx flag, what happens if the argument given exceed physical memory? Also is there any way to explicitly make JVM to use a specific amount of memory using paging? 回答1: See for yourself: JVM fails in getting enough memory for the heap and exits. I don't think there is a way to make JVM use a specific amount of memory for paging, but you can use: -XX:+|-UseLargePages --for large page support and -XXLargePageSizeInBytes=<n> --for specifying how large your large pages can be. Look at

Neo4j-Server clear the cache in RAM

三世轮回 提交于 2019-12-25 03:42:59
问题 Neo4j server consumes very less RAM initially, but after processing some requests. The RAM consumed by the server increases. Even though no query is been processed it keeps using the RAM. While on restarting the server the RAM consumed is less again. This states that neo4j server is keeping some data in the RAM, and even though the request is been processed the data still stays in the RAM. Is there anyway to clear that data in the RAM at some threshold to avoid server crash? 回答1: Did you have

Moving IntelliJ IDEA caches/index directories to RAM

守給你的承諾、 提交于 2019-12-25 01:17:09
问题 I'm trying to move caches and index directories from the IntelliJ IDEA config dir to RAM mount point in /tmp using symbolic links. I've added: tmpfs /tmp/ramdisk tmpfs defaults,size=1024M,x-gvfs-show,mode=1777 0 0 to /etc/fstab , and replaced caches and index directories in the intellij config directory with symbolic links pointing to the ram mount point with: $ mkdir /tmp/ramdisk/intellij/caches $ mkdir /tmp/ramdisk/intellij/index $ ln -s /tmp/ramdisk/intellij/caches caches #inside intellij

ORG alternative for C++

白昼怎懂夜的黑 提交于 2019-12-24 15:09:01
问题 In assembly we use the org instruction to set the location counter to a specific location in the memory. This is particularly helpful in making Operating Systems. Here's an example boot loader (From wikibooks): org 7C00h jmp short Start ;Jump over the data (the 'short' keyword makes the jmp instruction smaller) Msg: db "Hello World! " EndMsg: Start: mov bx, 000Fh ;Page 0, colour attribute 15 (white) for the int 10 calls below mov cx, 1 ;We will want to write 1 character xor dx, dx ;Start at

Benchmarking RAM performance - UWP and C#

我们两清 提交于 2019-12-24 03:48:06
问题 I'm developing a benchmarking application using Universal Windows Platform that evaluates CPU and RAM performance of a Windows 10 system. Although I found different algorithms to benchmark a CPU, I still didn't found any solid algorithm or solution to evaluate the write and read speeds of memory. How can I achieve this in C#? Thanks in advance :) 回答1: I don't see why this would not be possible from managed code. Array access code turns into normal x86 memory instructions. It's a thin

LDMIA instruction not working correctly on external SRAM in cortex M4

岁酱吖の 提交于 2019-12-24 02:16:48
问题 I am using STM32L486ZG board in thumb mode. I am running a simple bare-metal application without any RTOS. I have external SRAM connected to the board using FSM. The external SRAM is located at address 0x60000000. The system is initialized and running at 72MHz (i have tried this issue with frequency from 18-80 MHz) now in my main function i have following code: int main(){ asm volatile ( "push {r0}\n" "mov r0, #0x60000000\n" "add r0, #0x400\n" "stmdb r0!, {r1-r12}\n" "ldmia r0!, {r1-r12}\n"

'calloc' does not automatically consumes memory out of RAM

岁酱吖の 提交于 2019-12-23 21:15:05
问题 According to the answer to this question: Difference between malloc and calloc? Isak Savo explains that: calloc does indeed touch the memory (it writes zeroes on it) and thus you'll be sure the OS is backing the allocation with actual RAM (or swap). This is also why it is slower than malloc (not only does it have to zero it, the OS must also find a suitable memory area by possibly swapping out other processes) So, I decided to try it myself: #include <stdlib.h> #include <stdio.h> #define ONE

How to pause processes in case they are consuming too much memory?

家住魔仙堡 提交于 2019-12-23 19:13:32
问题 Background: I process planetary imagery using a set of command-line utilities provided by the US Geologic Survey. Some of them are RAM hogs, to the extreme (10s of GB). USGS says it's just the way they run and don't have any plans to try to better manage the RAM. I built a Python wrapper to manipulate file lists to call the different steps to process the data in parts (such as all images taken in one color filter, and all taken in another, and all taken in another, etc.). Because things are

R not using more than 4GB of memory

本小妞迷上赌 提交于 2019-12-23 09:26:22
问题 I'm running 64 bit R on Ubuntu 12.10 AMD64. I recently added additional 8GB of memory to my system making it a total of 12GB. But I notice that R gives me an error whenever the memory usage (of a single R session) goes above 4GB. When I ran 6 R sessions in parallel, each consuming ~ 3 GB of memory, my over all memory usage increased up to 11 GB. But a single R session is not able to use more than 4GB! I need to train a random forest model over a large data set and I need > 4GB with a single R

Why is deque using so much more RAM than vector in C++?

烂漫一生 提交于 2019-12-23 07:58:03
问题 I have a problem I am working on where I need to use some sort of 2 dimensional array. The array is fixed width (four columns), but I need to create extra rows on the fly. To do this, I have been using vectors of vectors, and I have been using some nested loops that contain this: array.push_back(vector<float>(4)); array[n][0] = a; array[n][1] = b; array[n][2] = c; array[n][3] = d; n++ to add the rows and their contents. The trouble is that I appear to be running out of memory with the number