Hi all,
For a long time, I've noticed that my ZFS file servers running FreeBSD don't use RAM cache when the files are accessed through Samba. As a simple test, I just did a copy of a 10GB folder to the local disk of the client, and monitoring the server with htop, I can't see any RAM memory increase. The server stays all the time using more or less 30MB of RAM (This server has a 20TB storage with 32GB total RAM). But, when I copy the same folder through the command line (like cp -rv folder folder.bak) I can clearly see the memory being increased during the copy.
This server is accessed for 10 users at the same time and I can't see any use of cache!
Is there any trick to improve the cache use for samba file servers ? Or some way to turn the ZFS cache use more "agressive" ?
Thanks in advance,
Danilo
For a long time, I've noticed that my ZFS file servers running FreeBSD don't use RAM cache when the files are accessed through Samba. As a simple test, I just did a copy of a 10GB folder to the local disk of the client, and monitoring the server with htop, I can't see any RAM memory increase. The server stays all the time using more or less 30MB of RAM (This server has a 20TB storage with 32GB total RAM). But, when I copy the same folder through the command line (like cp -rv folder folder.bak) I can clearly see the memory being increased during the copy.
This server is accessed for 10 users at the same time and I can't see any use of cache!
Is there any trick to improve the cache use for samba file servers ? Or some way to turn the ZFS cache use more "agressive" ?
Thanks in advance,
Danilo