Messages in this thread |  | | Date | Fri, 9 Jun 2006 01:59:25 -0300 | From | "Matheus Izvekov" <> | Subject | Re: 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/
|  |