Re: PATCH: allow percentile size of tmpfs (2.5.66 / 2.4.20-pre2)

Hugh Dickins
2003-04-02T20:50:54Z

On Wed, 2 Apr 2003, Jörn Engel wrote:
> On Wed, 2 April 2003 19:33:05 +0200, Christoph Rohland wrote:
> >
> > No, that's why I said you would need hooks into swapon and
> > swapoff. Then it would adjust on the fly. Else it's useless from the
> > usability point of view. With these hooks it's easy to do.
>
> Can you show me the easy part with this setup?
> 256MB RAM
> 512MB swap
> 50% tmpfs (384MB)
> fill tmpfs completely
> swapoff -a

Don't blame Christoph for that, one of these days I'll face up to
my responsibilities and make swapoff fail (probably get itself
OOM-killed) instead of having everything else OOM-killed.

Hugh