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

Christoph Rohland
2003-04-07T08:22:02Z

Hi Hugh,

On Wed, 2 Apr 2003, Hugh Dickins wrote:
> 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.

The hooks for the accounting would solve this easily: the swapoff hook
would realize that there is not enough space left for the tmpfs
instance and simply return an error. So swapoff would fail.
We would not even stress the vm to swapin all pages until
realizingthat there is not enough memory left.

Greetings
Christoph