Lines Matching refs:kPageSize
14 static const size_t kPageSize = sysconf(_SC_PAGESIZE); variable
21 for (int i = 0; i < kPageSize / sizeof(start); i++) { in fillPageRand()
34 for (int i = 0; i < kPageSize / sizeof(val); i += kPatternSize) { in fillPageCompressible()
74 AlignedAlloc page(kPageSize, kPageSize); in fillWithCompressible()
75 for (uint64_t offset = 0; offset < devSize; offset += kPageSize) { in fillWithCompressible()
77 ssize_t ret = write(m_fd, page.ptr(), kPageSize); in fillWithCompressible()
78 if (ret != kPageSize) { in fillWithCompressible()
87 AlignedAlloc page(kPageSize, kPageSize); in benchSequentialRead()
91 for (uint64_t offset = 0; offset < devSize; offset += kPageSize) { in benchSequentialRead()
94 ssize_t ret = read(m_fd, page.ptr(), kPageSize); in benchSequentialRead()
95 if (ret != kPageSize) { in benchSequentialRead()
108 AlignedAlloc page(kPageSize, kPageSize); in benchSequentialWrite()
112 for (uint64_t offset = 0; offset < devSize; offset += kPageSize) { in benchSequentialWrite()
116 ssize_t ret = write(m_fd, page.ptr(), kPageSize); in benchSequentialWrite()
117 if (ret != kPageSize) { in benchSequentialWrite()