Closed DdMad closed 1 year ago
@DdMad thanks for raising the question.
Are you testing Alluxio POSIX interface? Did you enable JNI FUSE or still using the default JNR FUSE (e.g., did you set alluxio.fuse.jnifuse.enabled=true
?). With JNI Fuse enabled, system cache is used; with default JNR Fuse, direct_io is enforced.
@apc999 thanks for replying. Yes I'm testing Alluxio POSIX interface, and I didn't set alluxio.fuse.jnifuse.enabled=true
, so I guess JNR Fuse would be used by default?
However, you mentioned that, _"with default JNR Fuse, directio is enforced", so does it mean it shouldn't use system cache?
BTW, I checked (List of Configuration Properties)[https://docs.alluxio.io/os/user/stable/en/reference/Properties-List.html] and I didn't see this config property alluxio.fuse.jnifuse.enabled
, what does this config property do?
Thanks a lot!
@DdMad you can checkout latest edge release 2.4.1-2 which has JNI Fuse boundled. Checkout the docs: https://docs.alluxio.io/os/user/edge/en/api/POSIX-API.html
Meanwhile, we are releasing 2.4.1-3 shortly, by which the JNI Fuse is even easier to use
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.
Will close it for now, feel free to reopen it and contact us if this is still valid.
Page https://docs.alluxio.io/os/user/stable/en/api/POSIX-API.html
Summary I found this in the document:
_"Note that the directio mount option is set by default so that writes and reads bypass the kernel page cache and go directly to Alluxio."
So what I understand is: by default, whenever we read data from alluxio fuse, it shouldn't use the system cache.
However, when I test with my Alluxio:
direct io
option is set and it shouldn't use system cache)sync; echo 3 > /proc/sys/vm/drop_caches
to clear the system cache, and then read these 10GB data again, the system cache does not get increased (this is expected, but just a bit weird because of 1)So I wonder if the case 1 is a normal case (if so, then maybe we should mention this in the document)? Or if I did something wrong with the configurations/settings/environments/etc?
Thanks.