From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199702241938.LAA20490@hedrock.ps.uci.edu> Date: Mon, 24 Feb 1997 11:38:25 -0800 (PST) From: Steven White Subject: Re: A problem porting sbrk Richard Henderson writes: >> However, it seems to me that this doesn't address the main >> problem. Regardless of the way the "out of memory" error is reported, >> the OSF program isn't able to get as much memory as the same >> program compiled with gcc on the linux machine itself. > >I don't see this effect. To be sure, I modified your program a >little to make sure memory was actually being allocated, rather >than getting a few hundred thousand copy-on-write duplicates of >the zero page. I append it. I've verified I still get the same effect with your version of the test program. >In any case, on a machine with 64MB ram and no swap, I get 5227 >pages allocated by a native linux application, and 5100 pages >allocated by a static OSF application -- roughly 40.8MB and 39.8MB >respectively. Some but not all of that can be explained by the >larger static binary, but in any case would not seem to indicate >the problem you describe. Could it be something that comes up only for large-memory programs? Something weird is going on near 100 Mb when I try it. >Can anyone else duplicate this problem? I recommend trying this >without to terribly much swap, as it can take forever to page >through even a 64M partition. But more than about 100 Mb of memory and swap may be needed to duplicate the problem. Steve White srwhite@uci.edu UC Irvine Dept of Physics -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com