Re: [BUG] perf failed on multi-cpus system with multi-eventsspecified

From: Peter Zijlstra
Date: Wed Mar 02 2011 - 04:39:00 EST


On Wed, 2011-03-02 at 11:58 +0800, Han Pingtian wrote:
> Error: sys_perf_event_open() syscall returned with -1 (Too many open
> files). /bin/dmesg may provide additional information.

Well, you tried to use 42 events (quick count), we need to open a fd for
each cpu for each event, which results in 1008 fds, which together with
some actual file handles might have tickled your fd limit.

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