How to dropping cached memory after write

skyyxy

Contributor
Joined
Jul 16, 2016
Messages
136
Hi everybody, I'm using the TrueNAS Core 13.0U3
Xeon E5 v3 10cores
256GB ddr4 memroy
1.93TB U.2 for L2arc
8*10Gb networks (INTEL x520 dual ports)
24* 16TB WD HDDs

The quesion is:When somebody upload huge files like 2-3TB to the server, after that the memory is full and can't empty by itself ontime. Then the other peoples will creazy slow for read, and I have to reboot the server.

So if its possbile to emtpy the memory by write like systemctl parameter in tunable option? Thanks a lot.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
One of the benefits to using OpenZFS is that there are a lot of similarities with the Linux version, so maybe some Linux hints are available here:


Obviously you need to find the sysctl equivalents as those methods described apply to ZFS on Linux only.
 

somethingweird

Contributor
Joined
Jan 27, 2022
Messages
183
truenas 13U4 & only 13U4.

was flushing ARC cache like crazy. (do some research , before attempting the update)
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
The temporary solution was to set the sysctl tunable vfs.zfs.arc.meta_prune to 0.
But OP is running U3.
 

somethingweird

Contributor
Joined
Jan 27, 2022
Messages
183
The temporary solution was to set the sysctl tunable vfs.zfs.arc.meta_prune to 0.
But OP is running U3.

My suggestion to OP was to upgrade to U4. and use this interesting "feature"...
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
OP should upgrade to U6.1 and then experiment with tunables... Keeping in mind that with OpenZFS 2.2 we will have to work the "knob".

@winnielinnie is your guy.
 
Last edited:

skyyxy

Contributor
Joined
Jul 16, 2016
Messages
136
Thanks a lots for all helps, I will try to upgrade version and try them. Huge thanks again!
 
Top