Skip to contentSkip to conversation

tmpfs?

DISCUSSION Norberto Bensa 3 participants 3 messages Nov 18, 2001 – Nov 19, 2001

lore
Share & tools
lore
#0 lore raw

Hello,

I've configured my kernel (2.4.13-ac8) to use tmpfs, but it seems that it only uses half my physical memory (64 of 128MB).

Quoted 1 line

From Configure/help

/*
Tmpfs is a file system which keeps all files in virtual memory.

In contrast to RAM disks, which get allocated a ficed aount of physical
RAM, tmps grows and shrinks to accommodate the files it contains and is able to swap unneeded pages out to swap space.
*/

Well, it doesn't grows, neither shrinks, but maybe it's only me because I'm a newbie with this. How does tmpfs works, and how do I configure it correctly.

Thank you in advance,
Norberto

#1 lore raw
Quoted 5 lines · Norberto Bensa

Hello,

I've configured my kernel (2.4.13-ac8) to use tmpfs, but it seems that it only uses half my physical memory (64 of 128MB).

tmpfs as any other filesystem has mount time options. Check:
http://www-106.ibm.com/developerworks/library/l-fs3.html

Signature · 5 lines
José Luis Domingo López
Linux Registered User #189436     Debian Linux Woody (P166 64 MB RAM)
 
jdomingo EN internautas PUNTO org  => ¿ Spam ? Atente a las consecuencias
jdomingo AT internautas DOT   org  => Spam at your own risk
#2 lore raw
In reply to Norberto Bensa

Hi Norberto,

Quoted 2 lines · Norberto Bensa

I've configured my kernel (2.4.13-ac8) to use tmpfs, but it seems that it only uses half my physical memory (64 of 128MB).

,----[ Configure.help ]
| Virtual memory file system support
| CONFIG_TMPFS

[...]

|   You can set limits for the number of blocks and inodes used by the
|   filesystem with the mount options "size", "nr_blocks" and
|   "nr_inodes". These parameters accept a suffix k, m or g for kilo,
|   mega and giga and can be changed on remount.
|   
|   The initial permissions of the root directory can be set with the
|   mount option "mode".

`----

So the configure help gives you the answer: Use the size mount option.

Greetings
Christoph