TMPFS test?
Hi pa,
I backport Randolph 2.6 works to 2.4.23-pre8-pa13 and test tmpfs which seems to works:
# bdf Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda5 1598520 991904 525416 66% / /dev/sda3 60485 33364 23998 59% /boot /dev/sda6 241949 131057 98400 58% /var /dev/sda8 120963 7296 107422 7% /home /dev/sda9 1968384 1619384 249008 87% /usr/src /dev/sda10 1968384 1820036 48356 98% /Sources /dev/sda11 1968384 1295444 572948 70% /Develop /dev/sda7 120963 14 114704 1% /tmp tmpfs 128048 0 128048 0% /var/tmp
# ll total 331524 drwxrwxrwx 3 root root 4096 Oct 14 17:53 . drwxr-xr-x 8 root root 4096 Oct 13 09:51 .. [...] -rw-r--r-- 1 root root 39424270 Oct 14 13:28 vmunix-a500.s [...]
# vi vmunix-a500.s
jso@palx2000:~$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda5 1598520 991904 525416 66% / /dev/sda3 60485 33364 23998 59% /boot /dev/sda6 241949 131057 98400 58% /var /dev/sda8 120963 7296 107422 7% /home /dev/sda9 1968384 1619384 249008 87% /usr/src /dev/sda10 1968384 1820036 48356 98% /Sources /dev/sda11 1968384 1295444 572948 70% /Develop /dev/sda7 120963 14 114704 1% /tmp tmpfs 128048 52860 75188 42% /var/tmp
# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 262246400 86798336 175448064 0 2965504 66297856
Swap: 256892928 0 256892928
MemTotal: 256100 kB
MemFree: 171336 kB
MemShared: 0 kB
Buffers: 2896 kB
Cached: 64744 kB
SwapCached: 0 kB
Active: 52432 kB
Inactive: 19836 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 256100 kB
LowFree: 171336 kB
SwapTotal: 250872 kB
SwapFree: 250872 kBI just have a question: is it normal that /var/tmp is of about 256Mb when I have 256Mb of phys mem and 250Mb (cfdisk did this when I requested 256Mb :( ) of swap?
Thanks for info,
Joel
-------------------------------------------------------------------------
Tiscali ADSL: 3 mois GRATUITS! L'Internet rapide, c'est pour tout le monde.
Quoted 4 lines · Joel Soete
Hi pa,
I backport Randolph 2.6 works to 2.4.23-pre8-pa13 and test tmpfs which seems to works:
Well, tmpfs works for me since ... 2.4.19 ?!
Quoted 11 lines
# bdf Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda5 1598520 991904 525416 66% / /dev/sda3 60485 33364 23998 59% /boot /dev/sda6 241949 131057 98400 58% /var /dev/sda8 120963 7296 107422 7% /home /dev/sda9 1968384 1619384 249008 87% /usr/src /dev/sda10 1968384 1820036 48356 98% /Sources /dev/sda11 1968384 1295444 572948 70% /Develop /dev/sda7 120963 14 114704 1% /tmp tmpfs 128048 0 128048 0% /var/tmp
Okay, this says that you have 128MB allocated for tmpfs. This is correct, as tmpfs uses up to half of the physical ram if you don't specify the maximum size.
Well, it doesn't 'allocate' the whole 128MB at once of course, it will just use as much as you put into the ram disk.
[...]
Quoted 19 lines
# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 262246400 86798336 175448064 0 2965504 66297856
Swap: 256892928 0 256892928
MemTotal: 256100 kB
MemFree: 171336 kB
MemShared: 0 kB
Buffers: 2896 kB
Cached: 64744 kB
SwapCached: 0 kB
Active: 52432 kB
Inactive: 19836 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 256100 kB
LowFree: 171336 kB
SwapTotal: 250872 kB
SwapFree: 250872 kBQuoted 1 line
I just have a question: is it normal that
/var/tmpis of about 256Mb when
Mhh, perhaps I'm blind, but where do get the idea that tmpfs is using 256MB and not (up to) 128MB ?
I just see "MemFree: 171336 kB", and I guess that's a reasonable amount, ie. 84764kB or almost 83MB are used. This is probably including your 52860kb for the contents in your ram disk, so it seems that all the rest is about 31904kb or about 31MB.
Quoted 2 lines
I have 256Mb of phys mem and 250Mb (cfdisk did this when I requested 256Mb :( ) of swap?
As mentioned before (look at /usr/src/linux/Documentation/filesystems/tmpfs.txt) it will use UP TO half of your ram, but 'df' always shows up the max possible size of the ram disk, aswell what is actually used.
greetings, Max
Hello Max,
Quoted 2 lines
Quoted 2 lines
I backport Randolph 2.6 works to 2.4.23-pre8-pa13 and test tmpfs which
seems
Quoted 4 lines
Quoted 1 line
to works:
Well, tmpfs works for me since ... 2.4.19 ?!
Sorry never heard before (the first time in a Randolph patch :) )
Quoted 1 line
Quoted 1 line
# bdf
[...]
Quoted 7 lines
Quoted 1 line
tmpfs 128048 0 128048 0%
/var/tmpOkay, this says that you have 128MB allocated for tmpfs. This is correct, as tmpfs uses up to half of the physical ram if you don't specify the maximum size.
Well, it doesn't 'allocate' the whole 128MB at once of course, it will just use as much as you put into the ram disk.
Clear
Quoted 22 lines
[...]
Quoted 21 lines
# cat /proc/meminfo total: used: free: shared: buffers: cached: Mem: 26224640 86798336 175448064 0 2965504 66297856 Swap: 256892928 0 256892928 MemTotal: 256100 kB MemFree: 171336 kB MemShared: 0 kB Buffers: 2896 kB Cached: 64744 kB SwapCached: 0 kB Active: 52432 kB Inactive: 19836 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 256100 kB LowFree: 171336 kB SwapTotal: 250872 kB SwapFree: 250872 kB
Quoted 4 lines
Quoted 1 line
I just have a question: is it normal that
/var/tmpis of about 256Mb whenMhh, perhaps I'm blind, but where do get the idea that tmpfs is using 256MB and not (up to) 128MB ?
It comes from another commercial *nix based system which (always confusing me and) uses /tmp to manage the physical memory + overall swap. [What is confusing me is its global size (not only the available size as usual with other fs) which can change as change the usage of swap?]
[..]
Quoted 1 line
As mentioned before (look at
usr/src/linux/Documentation/filesystems/tmpfs.txt)
That is where I find how to use it but, my bad, I do not read all details.
Thanks for your help and patience,
Joel
-------------------------------------------------------------------------
Tiscali ADSL: 3 mois GRATUITS! L'Internet rapide, c'est pour tout le monde.