You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Damien Diederen (Jira)" <ji...@apache.org> on 2021/02/17 19:08:00 UTC
[jira] [Created] (ZOOKEEPER-4213) Ineffective transaction log
padding on current OSes/JDKs
Damien Diederen created ZOOKEEPER-4213:
------------------------------------------
Summary: Ineffective transaction log padding on current OSes/JDKs
Key: ZOOKEEPER-4213
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4213
Project: ZooKeeper
Issue Type: Bug
Reporter: Damien Diederen
The padding of transaction log files does not seem to result in the intended effect, at least on Linux (JDKs 8 & 14) and macOS Catalina (JDK 8).
The files have an apparent size of ~64 MiB, as instructed, but only two blocks are allocated:
{noformat}
$ ls -lh log.*
-rw-r--r-- 1 dash users 65M Feb 17 19:39 log.1
$ du -h --apparent-size log.*
65M log.1
$ du -h log.*
8.0K log.1
{noformat}
If the goal of log padding is to avoid filesystem allocations under load (as it was when the ZooKeeper book was written), then sparse files are not desirable.
(This may be "minor" as it seems that nobody noticed—presumably because nobody is running their log on spinning rust.)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)