[lkml]   [1997]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Swap Files
> > How about changing sys_swapoff() too? Perhaps adding a flags parameter
> > like sys_swapon() already has?
> >
> > Note: I am prepared to make these changes myself.
> Fix the distributions, fix swapoff but don't keep dumping on the kernel to
> fix user mode problems.
> Alan

You obviously don't understand the problem. That is my fault for not
explaining it better.

Swap files are created on-the-fly by a daemon. At shutdown, the daemon
is killed off before it has a chance to get rid of all the swap files
it created.

The task of getting rid of the swap files falls to the shutdown scripts,
which have no way to track which swap files are in use.

Adding a /proc/swap entry that shows all swap areas allows a modified
swapoff command to properly turn off all swapping.

Yes, this is a user space problem, but it requires a little bit of
help from the kernel (in the form of /proc/swap).

Andrew E. Mileski
Linux Plug-and-Play Kernel Project
XFree86 Matrox Team

 \ /
  Last update: 2005-03-22 13:38    [W:0.048 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site