Re: [PATCH] Linux-2.6.11-rc5: kernel/sys.c setrlimit() RLIMIT_RSScleanup

From: Rik van Riel
Date: Sun Feb 27 2005 - 12:23:27 EST


On Sun, 27 Feb 2005 stone_wang@xxxxxxxx wrote:

> ulimit dont enforce RLIMIT_RSS now,while sys_setrlimit() pretend
> it(RLIMIT_RSS) is enforced.
>
> This may cause confusion to users, and may lead to un-guaranteed
> dependence on "ulimit -m" to limit users/applications.
>
> The patch fixed the problem.

Some kernels do enforce the RSS rlimit. Your patch could break
systems that have the RSS rlimit in their configuration files
because they used to run a kernel that enforces the RSS rlimit.

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/