|
From: Manish T. <man...@gm...> - 2008-06-13 07:17:02
|
Hi, I was wondering if there was a option in memcheck or any other tool to fix the heap size while running an app in valgrind. I wanted to see how the application behaves with very low memory. Thanks in advance, Manish |
|
From: Nicholas N. <nj...@cs...> - 2008-06-16 00:19:42
|
On Fri, 13 Jun 2008, Manish Tomar wrote: > I was wondering if there was a option in memcheck or any other tool to > fix the heap size while running an app in valgrind. I wanted to see > how the application behaves with very low memory. No, but it wouldn't be hard to modify Valgrind to do this. It also shouldn't be hard to modify your own program to do this itself -- if you wrap malloc/new/new[] you can do your own checks. Nick |
|
From: Christopher L. <cl...@an...> - 2008-06-19 02:36:51
|
On Fri, Jun 13, 2008 at 12:47:10PM +0530, Manish Tomar wrote: > Hi, > > I was wondering if there was a option in memcheck or any other tool to > fix the heap size while running an app in valgrind. I wanted to see > how the application behaves with very low memory. > > Thanks in advance, > Manish This isn't a half bad idea. For now though, you can always use "ulimit -d". getrlimit(2) will give you actual definitions of various parameters you can set. -cl |