1 |
On Wed, Jul 8, 2009 at 8:51 AM, Frank Peters<frank.peters@×××××××.net> wrote: |
2 |
> However, I am not clear on how tmpfs will fail. If the tmpfs mount |
3 |
> becomes filled or exceeds the file limit, since it is essentially just |
4 |
> another disk partition shouldn't it produce a "No more space left on device" |
5 |
> error? Or is the system designed to extend the tmpfs through swapping? |
6 |
> The latter option doesn't seem right, but everyone still refers to such |
7 |
> behavior. |
8 |
|
9 |
I'm certainly not an expert but my understanding is that it will not |
10 |
exceed the size given (or defaulted - half of system RAM?) - but the |
11 |
part about resizing and using swap I believe has more to do with how |
12 |
it uses the available RAM in the system. In other words if you have a |
13 |
2 gig tmpfs it's not going to eat up 2gb of your RAM unless you have |
14 |
actually put 2gb of files onto it. So it dynamically uses RAM when |
15 |
necessary. If the files in the tmpfs exceed the available RAM on the |
16 |
system, then it'll do what any other out-of-memory situation would do: |
17 |
swap. |