Re: DOS by unprivileged user

From: Mike Galbraith
Date: Wed Apr 25 2018 - 12:50:41 EST


On Wed, 2018-04-25 at 15:54 +0100, Alan Cox wrote:
>
> Classical Unix systems never had this problem because they respond to
> thrashing by ensuring that all processes consumed CPU and made some
> progress. Linux handles it by thrashing itself to dealth while BSD always
> handled it by moving from paging more towards swapping and behaving like
> a swap bound batch machine.

Memcg constrained the gitk hog nicely, forcing it do dig into swap
after hitting its limit. Dunno if there are any userspace bits that
can use it wisely though.

-Mike