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.

2059 questions
755
votes
36 answers

Sorting 1 million 8-decimal-digit numbers with 1 MB of RAM

I have a computer with 1 MB of RAM and no other local storage. I must use it to accept 1 million 8-digit decimal numbers over a TCP connection, sort them, and then send the sorted list out over another TCP connection. The list of numbers may…
Favourite Onwuemene
  • 3,847
  • 8
  • 25
  • 42
399
votes
17 answers

How to get current CPU and RAM usage in Python?

What's your preferred way of getting current system status (current CPU, RAM, free disk space, etc.) in Python? Bonus points for *nix and Windows platforms. There seems to be a few possible ways of extracting that from my search: Using a library…
lpfavreau
  • 11,693
  • 5
  • 28
  • 35
249
votes
12 answers

How to see top processes sorted by actual memory usage?

I have a server with 12G of memory. A fragment of top is shown below: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND …
user3111525
  • 4,623
  • 8
  • 35
  • 60
128
votes
13 answers

How can I find out the total physical memory (RAM) of my linux box suitable to be parsed by a shell script?

I'm typing a shell script to find out the total physical memory in some RHEL linux boxes. First of all I want to stress that I'm interested in the total physical memory recognized by kernel, not just the available memory. Therefore, please, avoid…
Jdamian
  • 2,839
  • 2
  • 14
  • 21
123
votes
9 answers

Google Colaboratory: misleading information about its GPU (only 5% RAM available to some users)

update: this question is related to Google Colab's "Notebook settings: Hardware accelerator: GPU". This question was written before the "TPU" option was added. Reading multiple excited announcements about Google Colaboratory providing free Tesla K80…
stason
  • 3,487
  • 2
  • 22
  • 38
116
votes
6 answers

MySQL maximum memory usage

I would like to know how it is possible to set an upper limit on the amount of memory MySQL uses on a Linux server. Right now, MySQL will keep taking up memory with every new query requested so that it eventually runs out of memory. Is there a way…
Timothy Mifsud
113
votes
5 answers

What are the differences between virtual memory and physical memory?

I am often confused with the concept of virtualization in operating systems. Considering RAM as the physical memory, why do we need the virtual memory for executing a process? Where does this virtual memory stand when the process (program) from the…
100
votes
15 answers

How do I check CPU and Memory Usage in Java?

I need to check CPU and memory usage for the server in java, anyone know how it could be done?
Johnny Bou
  • 1,013
  • 2
  • 8
  • 6
68
votes
7 answers

how much memory can be accessed by a 32 bit machine?

What is meant by 32bit or 64 bit machine? It’s the processor architecture…a 32 bit machine can read and write 32bit data at a time same way with 64 bit machine…. whats the maximum memory that a 32 bit machine can access? It is 2^32=4Gb (4Gigabit =…
haris
  • 1,863
  • 4
  • 22
  • 24
63
votes
6 answers

Why does VS Code require so much memory? How can I make it run more memory-efficiently?

Does anyone know how to make VS Code use less memory? It´s taking more than 2gb, sometimes more than 3 gigabytes to have some 8 files opened.
Adriel Werlich
  • 1,092
  • 2
  • 9
  • 22
47
votes
3 answers

How to delete multiple pandas (python) dataframes from memory to save RAM?

I have lot of dataframes created as part of preprocessing. Since I have limited 6GB ram, I want to delete all the unnecessary dataframes from RAM to avoid running out of memory when running GRIDSEARCHCV in scikit-learn. 1) Is there a function to…
GeorgeOfTheRF
  • 6,014
  • 19
  • 49
  • 71
46
votes
3 answers

How to check the amount of RAM in R

I want to make a function that imports data in different numbers of batches depending on how much RAM is available on someones system. But how can I find the amount of available RAM in R? I can use memory.size() but that only works for Windows.
Sacha Epskamp
  • 42,423
  • 17
  • 105
  • 128
39
votes
1 answer

what's the difference between working set and commit size?

when debugging OOM bugs, what's the difference between working set and commit size? Especially what's the exact meaning for commit size?
user705414
  • 17,800
  • 36
  • 105
  • 151
38
votes
1 answer

How does the "number of workers" parameter in PyTorch dataloader actually work?

If num_workers is 2, Does that mean that it will put 2 batches in the RAM and send 1 of them to the GPU or Does it put 3 batches in the RAM then sends 1 of them to the GPU? What does actually happen when the number of workers is higher than the…
floyd
  • 821
  • 1
  • 7
  • 17
35
votes
9 answers

get server ram with php

Is there a way to know the avaliable ram in a server (linux distro) with php (widthout using linux commands)? edit: sorry, the objective is to be aware of the ram available in the server / virtual machine, for the particular server (even if that…
yoda
  • 9,912
  • 19
  • 61
  • 90
1
2 3
99 100