[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.20.1509022225040.2510@vincent-weaver-1.umelst.maine.edu>
Date: Wed, 2 Sep 2015 22:32:12 -0400 (EDT)
From: Vince Weaver <vincent.weaver@...ne.edu>
To: Peter Zijlstra <peterz@...radead.org>
cc: Vince Weaver <vincent.weaver@...ne.edu>,
linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>
Subject: Re: perf: bug, kernel ignores the buffer size on large read
On Thu, 3 Sep 2015, Peter Zijlstra wrote:
> I think we should try and just ban events with a read_size > 64k; that's
> one _large_ group -- there's other issues with that as well I imagine.
yes, I don't really have a use case for this, I just noticed the problem
because Debian apparently bumped the default file descriptor limit from
1k to 64k and suddenly some of my perf_event_test suite started failing
in interesting ways.
The limit for read() would come down to about 4k events per group assuming
you also have ID enabled.
The complication is that header_size is calculated similarly and lots of
other things get added in, and a lot of it is done with u16 math. So I
have no idea if there's a possibility for creating sampled events that can
corrupt the mmap buffer.
Vince
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists