Re: [NEW]: Introducing shrink_all_memory from user space

From: richard -rw- weinberger
Date: Sun Apr 15 2012 - 06:39:11 EST


On Sun, Apr 15, 2012 at 11:47 AM, PINTU KUMAR <pintu_agarwal@xxxxxxxxx> wrote:
> Please provide your valuable feedback and suggestion.

This is fundamentally flawed.
You're assuming that only one program will use this interface.
Linux is a multi/user-tasking system

If we expose it to user space *every* program/user will try too free
memory such that it
can use more.
Can you see the problem?

--
Thanks,
//richard
--
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/