|
|||||||||||||||||||||||||||||||||
AMBER Archive (2003)Subject: nmode on Linux : another memory question
From: E.S. (strand_at_chop.swmed.edu)
Dear Amber users --
I recently increased the physical RAM on my Linux box from 1 GB to 2 GB,
parameter (MAXMEMX=115000000)
which I could get when I had only 1 GB.
Unfortunately this doesn't seem to be happening -- I get segmentation
I gather from
http://www.amber.ucsf.edu/amber/Questions/mail/18.html
that 115000000 corresponds to about 1 GB.
Other programs seem to see all the memory. E.g., partial output of the
total used free
And the C program below returns
Finished
when SIZE = (2000*1024*1024) and
Error: could not allocate buf...exiting
when SIZE = (2024*1024*1024).
Some of the (probably ill-advised) things I've tried, to get 'nmode'
1) running the bash shell command 'ulimit -v nnnnnn'
2) recompiling amber or just nmode with various command
3) recompiling the (RedHat 8.0) kernel 2.4.18-24.8.0smp
CONFIG_*HIGHMEM
(Currently the kernel boots up and says
1151MB HIGHMEM available
and I've not been able to find parameter
4) appending a 'mem=nnnnM' line to LILO's lilo.conf
Nothing seems to help.
Any suggestions?
-- E. S.
---------------------------------------------------------------
#include <stdio.h>
#define SIZE (2000*1024*1024)
main()
char *buf = malloc(SIZE);
if ( !buf )
i = 0;
printf("Finished\n");
| |||||||||||||||||||||||||||||||||
|