[lug] C program freezing machine

Bear Giles bgiles at coyotesong.com
Tue Apr 15 12:57:44 MDT 2008


(trying again... darn spf problems...)

If you have the source code, use sysrlimit() to put limitations on 
memory usage.  This will let you confirm that the program isn't using 
more memory than you expected.  (Or you could run this via a debugger, 
in a wrapper program, etc.)

Also, make sure he's using reputable libraries instead of writing his 
own, whenever possible.  It's easy to write algorithms that are 
technically correct, but a disaster in practice because they're ignorant 
of memory usage issues.

gordongoldin at aim.com wrote:
> I have a programmer with big number cruncher (probably memory 
> intensive) programs.
>
> He submits his program - the machine freezes.
>
> What are the best items to look at first in trying to track down what 
> could be happening.
>
> He is not submitting as root (so he's not filling up / by pouring junk 
> into root home, for example).
>
>
> Gordon Golding
> ------------------------------------------------------------------------
> Get the MapQuest Toolbar 
> <http://www.mapquest.com/toolbar?NCID=mpqmap00030000000003>, Maps, 
> Traffic, Directions & More!
> ------------------------------------------------------------------------
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug




More information about the LUG mailing list