Browse Source

Buffer size need to be at least a page size. (probably better to keep it a multiple of a page size)

Godzil 4 years ago
parent
commit
2ce7c94d11
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/mmap-test.c

+ 1 - 1
examples/mmap-test.c

@@ -47,7 +47,7 @@
 
 #define MIN(x, y) ((x) < (y) ? (x) : (y))
 
-#define BUFFER_SIZE 1024
+#define BUFFER_SIZE 4096
 
 static char *mmap_buffer;