Answer the question
In order to leave comments, you need to log in
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
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.
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
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.
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.
First link on Google search: "file system in ram"
rus-linux.net/nlib.php?name=/MyLDP/file-sys/twofs.html
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.
“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 questionAsk a Question
731 491 924 answers to any question