]> sourceware.org Git - lvm2.git/commit
Add memory pool locking functions
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 11 Aug 2011 17:29:04 +0000 (17:29 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 11 Aug 2011 17:29:04 +0000 (17:29 +0000)
commit64d62e1deddeabbc5ceb072cf67a899ce65187a8
tree5751a30851cbe7814cacf84bb2da01f610d1558c
parent7ad0d47c3c93053c07c45161dbdbc0798ac7e2f6
Add memory pool locking functions

Adding debuging functionality to lock and unlock memory pool.

2 ways to debug code:
crc - is default checksum/hash of the locked pool.
      It gets slower when the pool is larger - so the check is only
      made when VG is finaly released and it has been used more then
      once.Thus the result is rather informative.

mprotect - quite fast all the time - but requires more memory and
           currently it is using posix_memalign() - this could be
   later modified to use dm_malloc() and align internally.
           Tool segfaults when locked memory is modified and core
   could be examined for faulty code section (backtrace).

Only fast memory pools could use mprotect for now -
so such debug builds cannot be combined with DEBUG_POOL.
WHATS_NEW_DM
libdm/libdevmapper.h
libdm/mm/pool-debug.c
libdm/mm/pool-fast.c
libdm/mm/pool.c
make.tmpl.in
This page took 0.038261 seconds and 5 git commands to generate.