Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lima
· 9y ago · 0 comments
About the sync: you can bypass the fs cache by specifying iflag=direct/oflag=direct.
Comments
[–]
qb45
9y ago
In fact, I'm quite surprised that it worked at all without direct. Even if sync writes the cached data to disk, it isn't exactly guaranteed that the following read will read them back instead of just returning a copy from the cache.
[–]
alecjw
9y ago
Nice, thanks for the tip!