MCPcopy Index your code
hub / github.com/questdb/questdb / mmapNoCache

Method mmapNoCache

core/src/main/java/io/questdb/std/Files.java:386–390  ·  view source on GitHub ↗

Memory map without using the MmapCache. Useful for streaming reads where we want each mapping to be independent and release page cache via madvise.

(long fd, long len, long offset, int flags, int memoryTag)

Source from the content-addressed store, hash-verified

384 * we want each mapping to be independent and release page cache via madvise.
385 */
386 public static long mmapNoCache(long fd, long len, long offset, int flags, int memoryTag) {
387 int osFd = fdCache.toOsFd(fd, (flags & MAP_RW) != 0);
388 // Pass mmapCacheKey=0 to bypass the mmap cache
389 return mmapCache.cacheMmap(osFd, 0, len, offset, flags, memoryTag);
390 }
391
392 public static long mremap(long fd, long address, long previousSize, long newSize, long offset, int flags, int memoryTag) {
393 int osFd = fdCache.toOsFd(fd, (flags & MAP_RW) != 0);

Callers 1

mmapNoCacheMethod · 0.95

Calls 2

cacheMmapMethod · 0.80
toOsFdMethod · 0.45

Tested by

no test coverage detected