]> sourceware.org Git - lvm2.git/commit
When glibc needs buffers for line buffering of input and output buffers, it
authorPetr Rockai <prockai@redhat.com>
Sat, 7 May 2011 13:50:11 +0000 (13:50 +0000)
committerPetr Rockai <prockai@redhat.com>
Sat, 7 May 2011 13:50:11 +0000 (13:50 +0000)
commiteee66d2a80df173126d0db4f345fbf601c50859b
tree827cae3564461fc304d30667b2d9adfe29b00f65
parent833a287337262306ec525e7861ddc067ea4d82a1
When glibc needs buffers for line buffering of input and output buffers, it
allocates these buffers in such way it adds memory page for each such buffer
and size of unlock memory check will mismatch by 1 or 2 pages.

This happens when we print or read lines without '\n' so these buffers are
used. To avoid this extra allocation, use setvbuf to set these bufffers ahead.

Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
Reviewed-by: Milan Broz <mbroz@redhat.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
daemons/clvmd/lvm-functions.c
lib/commands/toolcontext.c
lib/commands/toolcontext.h
liblvm/lvm_base.c
tools/lvmcmdline.c
This page took 0.028304 seconds and 5 git commands to generate.