On Sun, 26 Sep 2021 13:54:13 +0200 Jind?ich Makovi?ka <makovick at gmail.com> wrote:> Hi, > > ... > > Applying the attached patch, which reduces the default allocation to > 32 pointers, and preallocates 32K pointers only for the main file > lists in send_file_list and recv_file_list, reduces the peak memory > usage in my case from 142MB to 12MB.The original patch breaks the testsuite due to extra messages in the output. Fix attached. Regards, -- Jindrich Makovicka -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Reduce-memory-usage.patch Type: text/x-patch Size: 1885 bytes Desc: not available URL: <http://lists.samba.org/pipermail/rsync/attachments/20210927/63facec7/0001-Reduce-memory-usage.bin>
On Mon, 27 Sep 2021 13:38:22 +0200 Jind?ich Makovi?ka <makovick at gmail.com> wrote:> On Sun, 26 Sep 2021 13:54:13 +0200 > Jind?ich Makovi?ka <makovick at gmail.com> wrote: > > Hi, > > > > ... > > > > Applying the attached patch, which reduces the default allocation to > > 32 pointers, and preallocates 32K pointers only for the main file > > lists in send_file_list and recv_file_list, reduces the peak memory > > usage in my case from 142MB to 12MB. > > The original patch breaks the testsuite due to extra messages in the > output.Actually it makes more sense to change the debug print to check that the original pointer is non-null and leave the testsuite as is. -- Jindrich Makovicka -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Reduce-memory-usage.patch Type: text/x-patch Size: 1957 bytes Desc: not available URL: <http://lists.samba.org/pipermail/rsync/attachments/20210927/18d1d0e5/0001-Reduce-memory-usage.bin>