Server read cache does not work

dengruxi

Dabbler
Joined
Mar 12, 2020
Messages
32
Ask about 32g memory, 3 12t for raidz, 7200 RPM hard disk, and copy 15g files under the 10 Gigabit network. The speed of copying to win10 is only 400MB. It seems that the memory read cache does not work, but it can reach 1g when the same file is overwritten and copied for the second time. Why does the read cache not work when copying for the first time? But write cache seems to work every time!!
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
It has to read it the first time. Once it's read, then it is cached.
 

dengruxi

Dabbler
Joined
Mar 12, 2020
Messages
32
It has to read it the first time. Once it's read, then it is cached.
Thank you jgreco for answering the questions that have bothered me for a long time. Thank you very much! I saw on YouTube that they copied files and thought that cache could be used for the first copy of each file!! I thought I set it up wrong
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
ZFS may stash things being written in the ARC but it seems like this doesn't happen aggressively. Without bothering to research the current state of affairs, I would guess that ARC entries with recent read access would be more desirable to the eviction process to keep around than blocks being written (with zero read access). Try on a freshly rebooted system with nothing in ARC and see what happens if you're really interested.
 
Top