[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Total vs per-cpu memory



On Thu, Jan 31, 2008 at 07:39:43AM -0800, Francesco Pietra wrote:
> This question is related to problems in running a docking computation. With big
> cases, RAM proves insufficient, resulting in immediate "segmentation fault", so
> that "top" cannot inform. Though, from the code it is clear that memory is
> insufficient to rotate the object in a non-parallelized part of the program.
> Smaller objects do not give problems.

Insufficient ram does not EVER cause a segmentation fault.  Only buggy
code causes segmentation faults.

If a bad programmer simply calls malloc and doesn't check that it
succeeded before using it, then you get a segmentation fault, but only
because the programmer didn't write proper code.

--
Len Sorensen


Reply to: