Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: System call doesn't work when there is a large amount of data in a hashby Nicolasd (Acolyte) |
on Apr 29, 2020 at 15:13 UTC ( [id://11116220]=note: print w/replies, xml ) | Need Help?? |
Thanks so much! What you explained seems to be the problem, I just tested a script, this is the answer to a previous comment: Seems to verify what you explained I tried this script and it worked fine on my laptop, put 12 GB of the 16 GB available in hash and system call still works I did got varying results on the Centos 7 (450 GB of RAM), I monitored it also with top, if I saw a memory increase 20 GB, 50 GB, 100 GB, 150 GB and 200 GB all worked fine, didn't see any memory increase either But with 230 GB (more than half of the available) I ran out of memory (Cannot allocate memory), so I need the same amount of memory free than there is in the hash. I also made the system call loop for 10 times and the bigger the hash, the slower the system call starts
In Section
Seekers of Perl Wisdom
|
|