diff --git a/src/osal.c b/src/osal.c index e120490a..99bcd7cd 100644 --- a/src/osal.c +++ b/src/osal.c @@ -621,8 +621,12 @@ MDBX_INTERNAL_FUNC int osal_ioring_create(osal_ioring_t *ior, #endif /* !Windows */ #if MDBX_HAVE_PWRITEV && defined(_SC_IOV_MAX) - if (!osal_iov_max) + if (!osal_iov_max) { osal_iov_max = sysconf(_SC_IOV_MAX); + if (RUNNING_ON_VALGRIND && osal_iov_max > 64) + /* чтобы не описывать все 1024 исключения в valgrind_suppress.txt */ + osal_iov_max = 64; + } #endif ior->boundary = (char *)(ior->pool + ior->allocated); diff --git a/test/valgrind_suppress.txt b/test/valgrind_suppress.txt index 2eb3142b..2a95ff0f 100644 --- a/test/valgrind_suppress.txt +++ b/test/valgrind_suppress.txt @@ -33,16 +33,22 @@ # memcmp() inside iov_write() as workaround for todo4recovery://erased_by_github/libmdbx/issues/269 { - write-page-check-bcmp + iov-pagecheck-1 Memcheck:Cond fun:bcmp - fun:iov_write* + fun:iov_callback4dirtypages + fun:osal_ioring_walk + fun:iov_complete + fun:iov_write } { - write-page-check-memcmp + iov-pagecheck-2 Memcheck:Cond fun:memcmp* - fun:iov_write* + fun:iov_callback4dirtypages + fun:osal_ioring_walk + fun:iov_complete + fun:iov_write } # single-page flush by pwrite()