lkml.org 
[lkml]   [2006]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Idea about a disc backed ram filesystem
On 6/8/06, Horst von Brand <vonbrand@inf.utfsm.cl> wrote:
> tmpfs does use swap currently. Giving tmpfs a dedicated swap space is dumb,
> as it takes away the possibility of using that space for swapping when not
> in use by tmpfs (and viceversa).

The idea is not dumb per se. Maybe you want your applications to swap
to one device (or not swap at all) and a tmpfs mount to swap to
another. For me at least it would make a difference.
I dont use swap at all, have enough ram for all my processes. And ive
seen that for some workloads, setting a temporary directory as tmpfs
gives huge speed improvements. But just occasionally, the space used
in this temp dir will not fit in my ram, so in this case swapping
would be fine. The problem is, currently there is no way to enforce
this.
Ditto for the fact that, when you have many swap devices set, each
with different performances, there is no way to give priorities/rules
to enforce who uses each device.
When someone gets to implement those features, this wouldnt be needed
anymore. But that seems far away enough to justify a more immediate
workaround.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-09 07:01    [W:0.067 / U:8.928 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site