On 6/9/06, Lee Revell <[email protected]> wrote:
Well, what you are trying to do seems hacky. What real world problem
are you trying to solve that setting swappiness to 0 is not sufficient
for?
Lee
For my usage, having processes swap is a complete loss. I have enough
ram and if some process doesnt fits into ram i would rather have it
killed than have it swap. Swap activity hogs my system and probably
either the process would fill up the swap and die anyway or it would
be too slow to be usable and i would kill it.
But i have some processes which gain considerable performance benefit
it they do their temporary work over tmpfs. The problem is that just
sometimes, their temporary work just doesnt fit into ram. In that case
swapping would be just fine. The simple dataformat on disk is a gain
when the stuff you are working on doesnt need to survive
unmounting/powerloss.
Now ive considered two alternatives:
1) Creating a new filesystem, a very simple one which only stores the
data in disk, and all the other stuff (superblock etc) is kept in
kernel memory, and let pagecache do its work on keeping fresh stuff on
ram.
2) Modifying tmpfs to accept a device, and when things dont fit in
ram, they would be flushed to this device instead first, while there
is space availiable, and then ultimately revert to swap when its
present.
It seems to me that both approaches would converge to the same thing,
but 2 is better because there would be no functionality duplication,
and it would get to keep the cool name
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]