On Fri, May 27, 2022 at 03:09:34PM +0200, Omar Polo wrote:
> it still probably needs something to limit the amount of ram it tries to
> allocate, see the other mail by Stuart. I agree with him that this
> should use getrlimit(RLIMIT_DATA) instead of physmem.
>
I have been testing a solution for using RLIMIT_DATA instead of physmem
and this is what I have achieved. I have hit no roadblocks with stack
size with this version (as opposed to earlier versions of lrzip) so I
assume we are fine. The documentation seems to suggest the operating
system expands the available stack to the max automatically anyway.
Running lrzip verbose (ie. lrzip -vv somefile.tar) with different
maximum allowed datasizes shows that, with this current iteration, lrzip
uses the maximum memory allowable to the process instead of the whole
physmem when using automatic compression windows.
--
OpenPGP Key Fingerprint:
543F EB89 7FDE 8E33 AFF7 E794 E4AB 4807 58F7 6C76
No comments:
Post a Comment