E
E
E_user2012-03-07 01:14:04
File systems
E_user, 2012-03-07 01:14:04

Filesystem in RAM?

Good day,
I don’t know if it’s possible to put the question like that at all, but I’m wondering if there is any file system in RAM? For example, take a regular DIMM DDR2 PC6400 bar. Arguing philistine - because there is somehow stored information. So this memory has / can have a file system.
How are things really?
Thanks

Answer the question

In order to leave comments, you need to log in

7 answer(s)
K
Konstantin, 2012-03-07
@Norraxx

RAM is a big matrix! :-)
No matter how you think that I'm kidding, but it's true. There are banks on the RAM (these are those black chips sticking out of the board). Each bank contains a permanently rewritable matrix. Inside, everything works according to addresses. Reading from RAM occurs by selecting a row and a column, after which information is issued. Everything works on a certain beat.
If you need to store files in OS-level RAM, use a RAM disk.

E
Eddy_Em, 2012-03-07
@Eddy_Em

Yes, in most distributions, /tmp is located in RAM: The size of the shared memory in which the file system will be created can be changed during mounting.
none /tmp tmpfs defaults 0 0

S
Sergey78, 2012-03-07
@Sergey78

In Linux, there is tmpfs for this.
It is created something like this:
sudo mount -t tmpfs -o size=2G,nr_inodes=30k,mode=0777 tmpfs /mntpoint
For example, I use tmpfs in a script to place a large number of small temporary files, so that first do not pull the disk, and secondly, slightly speed up the process.

V
Vladimir Chernyshev, 2012-03-08
@VolCh

The file system is an abstraction over a storage device. RAM is usually used without it, and disks are usually used with it. But neither the first nor the second is absolute. And there is such a thing as virtual memory, which transparently (for the application) maps memory addresses to disk sectors through the disk file system.

A
Anatoly, 2012-03-07
@taliban

First link on Google search: "file system in ram"
rus-linux.net/nlib.php?name=/MyLDP/file-sys/twofs.html

E
egorinsk, 2012-03-07
@egorinsk

For the processor, your "memory bar", being stuck into the board, is seen simply as a set of cells with addresses from N to M (the number of cells = the number of bytes in the bar, for 2 GB it is a little more than 2 billion), each of which can be put 1 byte of data. But you can also create a file system there, but already at the OS level.

V
Vampiro, 2012-03-07
@Vampiro

“Actually” you have already been answered: in the OZ, the data is stored as in a one-dimensional array. There is no FS, there are only "addresses", the number of the memory cell (positive integer). Therefore, in 32-bit systems, the memory size is limited to 3 gigabytes - you cannot create a larger number there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question