|
From: | arnold |
Subject: | Re: [bug-gawk] Increased RAM memory usage in gawk 5.0.1 compared to gawk 4.1.4 |
Date: | Wed, 28 Aug 2019 05:57:05 -0600 |
User-agent: | Heirloom mailx 12.5 7/5/10 |
Thanks for the report and the test case. I will work on it. Arnold Finn Magnusson <address@hidden> wrote: > Hi > Thank you for the patch ! It solves the issue with the leaking memory ! > However we have found another issue that is also contributing to high > memory usage.It is due to a line in our code where we are doing: > if (mom_version !~ $1) -> this causes RAM memory increase by over 1 GB > RAM in gawk 5.0.1 (but not gawk 4.1.4) > when we replace this line with: if (mom_version !~ sprintf("%s",$1) > then the RAM usage becomes normal > The command to reproduce the fault is:gawk -f test_ram.awk -v > mibfile=10.220.33.18_153125.log.gz -v sqlrefmapfile=sqlRefMap.txt > And attached are the three relevant files "test_ram.awk" , > "10.220.33.18_153125.log.gz" and "sqlRefMap.txt"
[Prev in Thread] | Current Thread | [Next in Thread] |