Re: [ofa-general] Re: [GIT PULL] please pull ummunotify

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Thursday, September 17, 2009 - 7:49 am

On Thu, 2009-09-17 at 07:32 -0700, Roland Dreier wrote:

Well, you cannot pre-allocate everything, either you get back-logged
evens in kernel space leading to a kernel DoS, or you loose events.

Perf counters have two modes, a RO mmap() and a RW mmap(). The RO mode
will automagically overwrite its tail data without regard for userspace
having observed it.

In the RW mode userspace has to advance the tail, the kernel will drop
events when full and insert a PERF_EVENT_LOST event once there is room
again.

Hmm, or are you saying you can only get 1 event per registered range and
allocate the thing on registration? That'd need some registration limit
to avoid DoS scenarios.

_______________________________________________
general mailing list
general@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ofa-general] [GIT PULL] please pull ummunotify, Roland Dreier, (Thu Sep 10, 9:38 pm)
[ofa-general] Re: [GIT PULL] please pull ummunotify, Pavel Machek, (Tue Sep 15, 4:34 am)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Roland Dreier, (Tue Sep 15, 7:57 am)
[ofa-general] Re: [GIT PULL] please pull ummunotify, Roland Dreier, (Wed Sep 16, 9:30 am)
[ofa-general] Re: [GIT PULL] please pull ummunotify, Linus Torvalds, (Wed Sep 16, 9:40 am)
[ofa-general] Re: [GIT PULL] please pull ummunotify, Peter Zijlstra, (Thu Sep 17, 4:30 am)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Roland Dreier, (Thu Sep 17, 7:24 am)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Roland Dreier, (Thu Sep 17, 7:32 am)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Peter Zijlstra, (Thu Sep 17, 7:43 am)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Peter Zijlstra, (Thu Sep 17, 7:49 am)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Roland Dreier, (Thu Sep 17, 8:03 am)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Peter Zijlstra, (Thu Sep 17, 8:22 am)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Roland Dreier, (Thu Sep 17, 8:45 am)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Pavel Machek, (Mon Sep 28, 1:49 pm)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Jason Gunthorpe, (Mon Sep 28, 2:40 pm)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Pavel Machek, (Tue Sep 29, 10:13 am)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Jason Gunthorpe, (Wed Sep 30, 9:02 am)
Re: [ofa-general] Re: [GIT PULL] please pull ummunotify, Roland Dreier, (Wed Sep 30, 10:06 am)