From what I can see the expected sizes of the database files seem to
be half of what is the actual size.

To correct myself here - its the "-wal" file that gets twice as big as
expected. btw the starting size of the "-wal" file on ppc64 is the same
(65536 bytes) even in older versions of sqlite (looking at 3.20.1 right
now).