[Openais] [PATCH 2/2] flight recorder: enable temporary 0 buffer size protection

Fabio M. Di Nitto fdinitto at redhat.com
Thu Jun 18 05:55:25 PDT 2009


The flight recoder doesn't handle a 0 byte allocation properly
and it would fail miserably by allocating a single PAGE_SIZE
to handle the logging. That means an enormous performance hit
because of the constant wrapping around the buffer.

If any requested buffer is < 64000 bytes, then force to at least
64000.

In future we will be able to handle small buffers properly, but
for now enable a simple workaround to protect us and the user.

Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>

:100644 100644 904e631... 93eb154... M	exec/logsys.c
 exec/logsys.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
-- 
1.5.4.3



More information about the Openais mailing list