Skip to content

How (1) prefetched data is stored (2) client-cache is used #701

Answered by davies
myc724 asked this question in Q&A
Discussion options

You must be logged in to vote

By default, …

“juicefs format” create a volume with 4MB block-size

Yes

“juicefs mount” configure a mount point as …
cache-size 1MB

The default cache-size is 1GB.

buffer-size 300MB
prefetch 1 block in parallel

Yes

Every read “prefetch 1 block”, so it brings in at least 4MB of data. Then, JuiceFS client
store the “in-use” key-value pairs in the 1MB cache.

1GB

store the "rest of" prefetched data in the 300MB read/write buffer.

cache-size is the total amount of data cached in disk (under /var/jfsCache/xxx/).
buffer-size is the amount of memory used for read/write.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@myc724
Comment options

Answer selected by myc724
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants