Hi Jason, Thanks for the suggestions. I tried --without-tcmalloc and used option --suppressions. Still this is so very slow.
If I am able to get this working, I will update here. @Gabe: Thanks for your comments Thanks & Regards Sindhuja From: Jason Lowe-Power <ja...@lowepower.com> Sent: Tuesday, September 7, 2021 3:28 PM To: gem5 users mailing list <gem5-users@gem5.org> Cc: Sindhuja Gopalakrishnan Elango <sindh...@synopsys.com> Subject: Re: [gem5-users] Query: Valgrind speed in FS Hi Sindhuja, Yes, there is an expectation that valgrind causes a slowdown. Let me give you a couple of suggestions. 1. Make sure you compile without tcmalloc (e.g., scons build/<something>/gem5.opt --without-tcmalloc). Using tcmalloc will make valgrind miss all allocations. 2. Use the suppressions file in util/valgrind-suppressions. This will hide most of the python "errors". It was recently updated to suppress many more errors that aren't really errors. That said, I've had some recent problems myself with valgrind and the new suppressions file being *very* slow. I think this is something we need to look into. If you have any ideas on how to improve the performance, we would appreciate hearing them! Otherwise, I guess we'll all just have to keep waiting overnight ;) Cheers, Jason On Tue, Sep 7, 2021 at 2:20 PM Sindhuja Gopalakrishnan Elango via gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote: Hi Community, I ran into bad_alloc issues in GEM5 with the full system simulation of SPEC 2006 benchmarks. Suspecting a memory leak, I wanted to use valgrind to understand better. Without valgrind option, it takes less than 10 minutes for kernel to boot and also run the 400.perlbench/attrs benchmark. But with valgrind, it has crossed 2 hrs and the kernel hasn’t yet booted. Usage: valgrind --log-file=attrs.val.txt --error-limit=no $GEM5_CMD I would like to know if this slowdown is reasonable with valgrind? And do you have any suggestions for a memory leak detection tool that is faster than valgrind and works well with gem5? Appreciate your time and effort. Thanks much. Best Regards Sindhuja _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org> To unsubscribe send an email to gem5-users-le...@gem5.org<mailto:gem5-users-le...@gem5.org> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s