Re: [PATCH] perf: Rebase max unprivileged mlock threshold on topof page size

From: Peter Zijlstra
Date: Wed Mar 30 2011 - 10:41:10 EST


On Wed, 2011-03-30 at 16:04 +0200, Frederic Weisbecker wrote:
> +int sysctl_perf_event_mlock __read_mostly = (129 * PAGE_SIZE) / 1024; /* 'free' kb per user */

I'm fairly sure you don't want to do this either:
512 + (PAGE_SIZE / 1024)
should do I think, there's no reason to further inflate things for large
page platforms.
--
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/