NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to limit amount of virtual memory used for files (was: Re: Tuning ZFS memory usage on NetBSD - call for advice)



On Tue, 20 Sep 2022, Matthias Petermann wrote:

I think I had answered this earlier (but I'm not quite sure) - the problem only occurs when I write the data obtained with "zfs send" to a local file system (e.g. the USB HDD). If I send the data to a remote system with netcat instead, the "file usage" remains within the green range.

[...]

This raises the question for me: can I somehow limit this kind of memory use on a process basis?


Try piping to dd with direct I/O:

... | dd bs=10m oflag=direct of=foo.file

Does that help?

-RVP


Home | Main Index | Thread Index | Old Index