Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

memory paging with D

I'm using D/Tango for catalog indexing, is there any library to aid with memory (RAM) paging for a dictionary which is in memory and can go up to 10gb while performing indexing?

like image 949
kar Avatar asked Jun 29 '09 08:06

kar


People also ask

What is paging in ram?

Paging is a method of writing and reading data from a secondary storage(Drive) for use in primary storage(RAM). When a computer runs out of RAM, the operating system (OS) will move pages of memory over to the computer's hard disk to free up RAM for other processes.

What is paging to disk?

Paging is the process of temporarily transferring some of the contents of a system's physical memory to the hard disk until the system needs the contents of that memory again.

Why is paging used for memory management?

Virtual memory, what paging is used for often, is a memory management technique where secondary memory can be used as if it were a part of the main memory. Paging acts as an important part of virtual memory, as it allows programs in secondary storage to exceed the available size of the physical storage.

What is memory paging in Linux?

June 2019) In computer operating systems, memory paging is a memory management scheme by which a computer stores and retrieves data from secondary storage for use in main memory. In this scheme, the operating system retrieves data from secondary storage in same-size blocks called pages.


1 Answers

What kind of aid do you need?

If you simply allocate the memory, operating system will take care of paging automatically.

If you want on-disk structure, then use memory mapped file.

like image 127
Kornel Avatar answered Oct 05 '22 22:10

Kornel