Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have to read the below doc and get the few idea (but not clear idea) regarding the difference between ramfs,tmpfs and swap .
I have some below technical question regarding the above memory areas :
1) what will be the memory usage flow for an OS ? For example , when a system is started and give some load then which order it maintain for memory utilization , like tmpfs-->ramfs-->swap ?
2) As per doc, I understand that , both tmpfs and ramfs takes space from physical memory directly . In this case , please see the below output :
>>
----------------------------------------------------------------------
[root@STAN ~]# df -H /dev/shm/
Filesystem Size Used Avail Use% Mounted on
tmpfs 34G 40M 34G 1% /dev/shm
In the above scenario , Total physical RAM is 64G and tmpfs 34G .As per doc ,If this 34G RAM takes from Physical RAM , then Physical RAM should be (64+38)=102 G. But here my physical RAM is 64 G.
Then from where the 'tmpfs' takes his space ?
3) In the above example, which is the ramfs value ? Both ramfs and tmpfs used together in an Unix OS ?
Both ramfs and tmpfs used together in an Unix OS ?
If you where to take that question and plug it into Google, or similar search engine you'd find this,
Quote:
Linux
tmpfs is supported by the Linux kernel from version 2.4 and up.[4] tmpfs (previously known as shmfs) is based on the ramfs code used during bootup and also uses the page cache, but unlike ramfs it supports swapping out less-used pages to swap space as well as filesystem size and inode limits to prevent out of memory situations (defaulting to half of physical RAM and half the number of RAM pages, respectively).[5]
among other great ideas on how to do this and what it is about.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.