Re: [PATCH] perf: Better fit max unprivileged mlock pages fortools needs

From: Peter Zijlstra
Date: Fri Mar 25 2011 - 06:30:12 EST


On Wed, 2011-03-23 at 19:29 +0100, Frederic Weisbecker wrote:

> -int sysctl_perf_event_mlock __read_mostly = 512; /* 'free' kb per user */
> +/* Minimum for 128 pages + 1 for the user control page */
> +int sysctl_perf_event_mlock __read_mostly = 516; /* 'free' kb per user */

This assumes PAGE_SIZE = 4k..

--
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/