-
-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Description
Hello!
I'm not sure about problem in ncw/directio but it's possible.
Version with directio.OpenFile:
echo 3 > /proc/sys/vm/drop_caches
/root/fast_backup_sender/cat_page_cache_safe debian-6.0-x86_64-isplite.tar.gz |pv >/dev/null
539MB 0:00:25 [21,1MB/s]
Version with os.OpenFile:
echo 3 > /proc/sys/vm/drop_caches
/root/fast_backup_sender/cat_page_cache_safe debian-6.0-x86_64-isplite.tar.gz |pv >/dev/null
539MB 0:00:03 [ 148MB/s]
As u can see O_DIRECT version is much times slower then same code without O_DIRECT. But it's very strange because I cleaned page cache before tests.
Full code you can find here: https://gist.github.com/pavel-odintsov/f303309f5284e09bc359
Thank you!
Metadata
Metadata
Assignees
Labels
No labels