Questions tagged [ram]

RAM (Random Access Memory) is a form of computer data storage. A random access device allows stored data to be accessed in very nearly the same amount of time for any storage location, so data can be accessed quickly in any random order.

RAM (Random Access Memory) is a form of computer data storage. A random access device allows stored data to be accessed in very nearly the same amount of time for any storage location, so data can be accessed quickly in any random order.

The two main forms of modern RAM are static RAM (SRAM) and dynamic RAM (DRAM). In static RAM, a bit of data is stored using the state of a flip-flop. This form of RAM is more expensive to produce, but is generally faster and requires less power than DRAM and, in modern computers, is often used as cache memory for the CPU.

Both static and dynamic RAM are considered volatile, as their state is lost or reset when power is removed from the system. By contrast, Read-only memory (ROM) stores data by permanently enabling or disabling selected transistors, such that the memory cannot be altered.

2294 questions
25
votes
7 answers

Need to load the whole postgreSQL database into the RAM

How do I put my whole PostgreSql database into the RAM for a faster access?? I have 8GB memory and I want to dedicate 2 GB for the DB. I have read about the shared buffers settings but it just caches the most accessed fragment of the database. I…
Bharath
  • 613
  • 2
  • 7
  • 17
24
votes
6 answers

AndroidStudio show usage of RAM

I have seen on other AndroidStudio-pictures, that there is a RAM usage at the right bottom. I tried to setup this statuslist o the bottom. But a rightclick didn`t help me. How can I switch on the RAM usage in AndroidStudio ?
noobee
  • 373
  • 1
  • 4
  • 10
24
votes
6 answers

How much RAM is SQL Server actually using?

I am debugging one of my apps and noticed that the RAM on my SQL Server 2005 x64 box (running on a Windows 2003 R2 x64 ) is pegged and even going into the paging file. I understand that SQL Server 2005 x64 just grabs everything it can, so this…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
22
votes
1 answer

Android memory types (RAM v Internal Memory)

On a separate thread I demonstrated my ignorance of memory types by asking about the best way to copy a file into "internal memory" and was advised that this was not a good idea and that it would be better to read the file into "RAM". I am now…
prepbgg
  • 3,564
  • 10
  • 39
  • 51
21
votes
2 answers

Elastic search high memory consumption

Elastic search is occupying more than 25 GBs of RAM. Data that I gave for indexing to elastic search is around 1 GB. Why elastic search needs this much of space?
ThinkGeek
  • 4,749
  • 13
  • 44
  • 91
21
votes
10 answers

Why are 8 and 256 such important numbers in computer sciences?

I don't know very well about RAM and HDD architecture, or how electronics deals with chunks of memory, but this always triggered my curiosity: Why did we choose to stop at 8 bits for the smallest element in a computer value ? My question may look…
gokoon
  • 1,017
  • 3
  • 11
  • 14
20
votes
3 answers

How can I add memory to an Azure virtual machine?

Is it possible to add a "custom" size memory to an Azure virtual machine? For example, I'm using the Medium size - 2 core, 4GB RAM, I would like to have 8GB RAM with the current settings I have... otherwise the next option available is A5 2 core…
Yovav
  • 2,557
  • 2
  • 32
  • 53
20
votes
3 answers

Limiting node.js's memory usage

I am trying to limit a node.js application from using to much memory and I've found out about the --max-stack-size & --max_executable_size options that are available within V8 to pass when invoking the file, but how should I combine these and…
Industrial
  • 41,400
  • 69
  • 194
  • 289
19
votes
2 answers

Data size in memory vs. on disk

How does the RAM required to store data in memory compare to the disk space required to store the same data in a file? Or is there no generalized correlation? For example, say I simply have a billion floating point values. Stored in binary form,…
19
votes
3 answers

Read file in chunks - RAM-usage, reading strings from binary files

I'd like to understand the difference in RAM-usage of this methods when reading a large file in python. Version 1, found here on stackoverflow: def read_in_chunks(file_object, chunk_size=1024): while True: data =…
xph
  • 937
  • 3
  • 8
  • 16
18
votes
1 answer

We need to preallocate. But MATLAB does not preallocate the preallocation?

While testing if any() short-circuits (it does!) I found out the following interesting behavior when preallocating the test variable: test=zeros(1e7,1); >> tic;any(test);toc Elapsed time is 2.444690 seconds. >> test(2)=1; >>…
Ander Biguri
  • 35,140
  • 11
  • 74
  • 120
18
votes
2 answers

How can I ask windows about if the RAM is running in single, dual or quad channel?

How can I detect the current RAM config? I need to ask windows about if the RAM is currently running in single, dual or quad channel. I have searched a lot, and not found any similar questions on this or other sites, which is quite surprising to…
JohnAl
  • 1,064
  • 2
  • 10
  • 18
16
votes
3 answers

Enhanced docker stats command with total amount of RAM and CPU

I just want to share a small script that I made to enhance the docker stats command. I am not sure about the exactitude of this method. Can I assume that the total amount of memory consumed by the complete Docker deployment is the sum of each…
Michel L
  • 456
  • 7
  • 19
15
votes
2 answers

Why isn't RAM as fast as registers/cache memory?

Why do we need to cache in Cache Memory? Why cant RAM Memory be made as fast as register or Cache Memory or Cache be as large as RAM Memory (4GB) so that everything can be in cache? Any good article/books to understand these concepts?
Andy
  • 151
  • 1
  • 1
  • 3
15
votes
1 answer

Python `open` function memory usage

Does Python interpreter load all the file to RAM when it is opened for writing? with open('file.txt' 'w') as file: file.write(some_content)
I159
  • 29,741
  • 31
  • 97
  • 132