getpagesize.rdThe function is used for obtaining the natural OS-specific page size in Bytes.
getpagesize returns the OS-specific page size in Bytes for memory mapped files, while getdefaultpagesize returns a suggested page size.
getalignedpagesize returns the pagesize as a multiple of the OS-specific page size in Bytes, which is the correct way to specify pagesize in ff.
getpagesize()
getdefaultpagesize()
getalignedpagesize(pagesize)An integer giving the page size in Bytes.
getpagesize()
#> [1] 4096
getdefaultpagesize()
#> [1] 65536
getalignedpagesize(2000000)
#> Warning: aligning pagesize 2e+06 with systempagesize 4096 to 2002944
#> [1] 2002944