Skip to main content

All Questions

2 votes
1 answer
568 views

calculating memory used by "ext4_inode_cache" from /proc/slabinfo?

On Linux I have two ways to get the memory used by ext4_inode_cache. First is using the slabtop command which gives me "CACHE SIZE" information too: # slabtop -o -s c | grep -E '(...
Sam's user avatar
  • 143
0 votes
2 answers
1k views

How virtual memory and page file is related?

We know that CPU produces logical addresses also known as virtual addresses while a program is running. Then, those virtual addresses are get translated into physical addresses by Memory Management ...
Daud Ahmed's user avatar
0 votes
0 answers
508 views

Where are process pages stored - in the swap space or under file system? Can demand paging work without space space?

The Galvin OS text says that on older systems, there used to be a method, where the entire running process (when in idle state) was moved from the main memory (when main memory ran low) to the disk ...
Abhishek Ghosh's user avatar
1 vote
2 answers
2k views

System that can read hard-drive and exclusively write into RAM?

I hope to be at the right place. I could not find any suggestions on the "web" about my question. How could an O.S, let us say a distribution of linux, can be loaded from the hard-drive and execute ...
Ben W's user avatar
  • 61
1 vote
2 answers
572 views

The "memory available" that an Operating System tells child processes

I'm wondering about how operating systems let child processes know how much available memory there is. Say the whole computer has 1GB RAM memory built in. The operating runs and uses 100MB (I have no ...
user avatar
0 votes
0 answers
29 views

OS - Parallel between heap/stack and pages

I'm studying for an exam on Operating Systems. I am working on the chapter concerning virtual memory. I'm getting really confused making a parallel between this very common schema describing a ...
Arthur Attout's user avatar
0 votes
2 answers
2k views

If a process is suspended (swapped to secondary memory), then does the process control block also get swapped to secondary memory?

If a process is suspended (swapped to secondary memory), then does the process control block also get swapped to secondary memory? Or would the process control block remain in main memory, whilst the ...
handler's handle's user avatar
72 votes
8 answers
34k views

How is virtual memory actually increasing the memory space?

I understand that virtual memory fools the program by displaying more memory than is actually available. But ultimately it has to map the logical address to the actually physical address. Now how is ...
Ahti's user avatar
  • 719
2 votes
5 answers
17k views

Why doesn't an SSD improve the speed of running applications compared to a HDD?

In articles/forums about PC gaming I always see people saying how Solid State Drives only make games load faster at startup (of the application) than they would with a Hard Disk Drive, and that an SSD ...
glen4096's user avatar
  • 123
1 vote
1 answer
1k views

What does the content of the page table look like after a page has been swapped out to the disk?

From what I understand, the page table maps virtual addresses to physical addresses. But what if a page has been swapped out to the disk? Wouldn't the location of the data take more bits to write ...
Pstrg's user avatar
  • 13
1 vote
2 answers
3k views

The instruction at X referenced memory at Y. The memory could not be written

TFG (Total Files Gaurd) is a software that used in offices to protect client's data from thief by malware and users. It encrypt some types of files(Network's Admin selects which type he/she want to be ...
Ebrahim Ghasemi's user avatar
1 vote
1 answer
245 views

Processors and virtual/physical addresses

In nutshell, as I understand memory management, processor produces virtual addresses. These addresses are translated to corresponding physical addresses using per-process address table by MMU (with ...
Subhajit Kundu's user avatar
2 votes
1 answer
2k views

How to know the size of page frame used by my OS?

How to know the size of page frame used by my OS ? This could be useful for some optimizations when I code. (Allocate big buffer that fit in a page frame for example). Page frame is determined by ...
user17208's user avatar
22 votes
4 answers
7k views

Why does Linux use a swap partition when the kernel supports paging/virtual memory anyway?

As far as I understand paging and swapping, they're completely different concepts. While swapping means, that a process is either completely in physical memory or on the hard drive, with paging parts ...
JohnnyFromBF's user avatar
  • 4,988
4 votes
3 answers
6k views

What is Paging in memory management?

I was just reading Operating System Principles by Silberschatz et al when I came across paging in memory management.I'm slightly confused about it. It states that Physical Memory(I assume it's RAM) is ...
A User's user avatar
  • 694

15 30 50 per page