linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* RE: Process not given >890MB on a 4MB machine ?????????
@ 2001-09-24 22:41 Gabriel.Leen
  2001-09-24 21:16 ` Joseph A Knapka
  0 siblings, 1 reply; 16+ messages in thread
From: Gabriel.Leen @ 2001-09-24 22:41 UTC (permalink / raw)
  To: 'linux-mm@kvack.org'

Hello again,
And thanks,

	>You will either need to use a true 64-bit machine (POWER, Alpha, 
	>UltraSPARC or MIPS) 

I hope (fingers crossed) that there is some way around this 
I think that Redhat  now supports up to 64GB of ram, 
as the Xeon has 36 address lines, see attached.

I'm only grasping at straws here, but I hope that it is somehow possible 
on this machine?

From:
http://support.intel.com/support/processors/pentiumiii/xeon/esma.htm
 <<...OLE_Obj...>> 
Pentium(R) III Xeon(tm) processors 
Extended Server Memory Architecture
Full 36-bit addressing allows enterprise applications to transcend 
the traditional 4GB (32-bit) memory barrier by adding 4-additional address
bits. 
PSE36 (Page size extensions) adds 4 additional address lines to the current
32 bit address. 
As each bit is added, the cacheability range doubles: 
32 bits= 4 GB 
32 + 1  	= 8 GB 
32 + 1 + 1 = 16 GB 
32 + 1 + 1 + 1 = 32
32 + 1 + 1 + 1 + 1  = 64 GB 	

	The additional headroom allows: 
	Greater than 4-gigabytes of cacheable system memory 


*********************************************************************
Gabriel Leen                        Tel:        00353  61  20 2677
PEI  Technologies               Fax:       00353  61  33 4925
Foundation Building             E-mail:   gabriel.leen@ul.ie
University of Limerick
Limerick
Ireland
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <5D2F375D116BD111844C00609763076E050D1681@exch-staff1.ul.ie>]
* RE: Process not given >890MB on a 4MB machine ?????????
@ 2001-09-24 21:15 Gabriel.Leen
  2001-09-24 22:16 ` Jonathan Morton
  0 siblings, 1 reply; 16+ messages in thread
From: Gabriel.Leen @ 2001-09-24 21:15 UTC (permalink / raw)
  To: Gabriel.Leen, 'Rik van Riel'
  Cc: Benjamin LaHaise, 'ebiederm@xmission.com',
	'tvignaud@mandrakesoft.com', 'linux-mm@kvack.org',
	'brian@worldcontrol.com', 'arjan@fenrus.demon.nl'

	Thank you ALL for your help !!
	And thank you Rik,
	Hoard is a fantastic library, I'm now able to get up to 3GB of
memory !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :)

	++++++++++++

	Unfortunately my program which is doing "alot" of calculations still
needs more space,

	Is there some way to enable 64 bit support (or something) and get
the swap space active,
	and give it another GB or so ?

	++++++++++++

	I know it sounds a bit crazy the amount of memory required, you see
I'm a PhD student,
	and I've been working on a model of a network for the past 2 years.
What I'm
	doing is formally verifying it and the calculations involved are
enormous !!!
	To finish my work I need to run this computation to completion and
get the results.

	If there are suggestions ideas they are very much appreciated.

	Again thank you ALL for your help,
	Gabriel


+++++++++++++++++++++++++
> Rik van Riel wrote :
>
> On Fri, 21 Sep 2001, Gabriel.Leen wrote:
>
> > Unfortunately the package which I am using is a pre-compiled
> > distribution, so that limits what I can do with it :(
>
> 1) install the hoard malloc library
> 2) LD_PRELOAD=/path/to/libhoard.so
>
> 3) have fun ;)
>
> Rik
>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: Process not given >890MB on a 4MB machine ?????????
@ 2001-09-21 16:07 Gabriel.Leen
  2001-09-22  2:01 ` Rik van Riel
  0 siblings, 1 reply; 16+ messages in thread
From: Gabriel.Leen @ 2001-09-21 16:07 UTC (permalink / raw)
  To: Benjamin LaHaise, 'ebiederm@xmission.com',
	'tvignaud@mandrakesoft.com'
  Cc: Gabriel.Leen, 'linux-mm@kvack.org',
	'brian@worldcontrol.com', 'arjan@fenrus.demon.nl'

Hello everybody,
Thanks for your help.

Unfortunately the package which I am using is a pre-compiled distribution,
so that limits what I can do with it :(
But I will hasle the developers and see what version of glibc they used.

QUESTION:
Have you actualy run a single process on the rawhide distribution which uses
~3GB ????????????
Please say YES :)

Red Hat kernel 2.4.9 as in 2.4.9-0.5 from rawhide ?
It should work, you should be able to get close to 3Gb....

++++++++++++++++++++++++++++++++++++++++++++++++++++
Some more info:
I have a small program listing attached which has helped me to identify the
problem.
It just gobbles up memory and writes zeros and f's to it

When I ran this on the kernel distribution out of the Box for Linux 7.1
delux
it would only work up to 1.2GB and then malloc returned NULL, continue
writing the
error messages to the console and eventually terminate normally.

Then I compiled the 2.4.9 kernel with the patch from Alan and it will run up
to 2GB
but not more, now the error occurs straight away when I hit run:
"segmentation fault"

Previously on the older kernel it would run when malloc returned NULL, the
program
continued writing the error and terminated normally.
Now the kernel appears to be psychic or something ?
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thank you again for your help, much appreciated,
Gabriel


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


#include <stdlib.h>

// Change SIZE for experiments
// size in MegaBytes.
#define SIZE 300

// Memory is allocated in SIZE  blocks of allocation units.
// currently all allocation units are stored in one array.
#define DEFAULT_BLOCK 1024
#define ALLOCATION_UNIT 1024

int main() {
        int c, i,j;
        char *ch;
        char *charray[SIZE*DEFAULT_BLOCK];

        for( i = 0; i < SIZE; i++ ) {
                for( c = 0; c < DEFAULT_BLOCK; c++ ) {
                        ch = malloc(ALLOCATION_UNIT);
                        if( ch == NULL )
                                printf("%d FAILED", c);
			charray[(i*DEFAULT_BLOCK)+c]=ch;

                }
                printf("%d\n", i);

                if( i % 10 == 0 )
                        sleep(1);
        }
	printf("writing 0x00-s to memory ...\n");
        for( i = 0; i < SIZE; i++ ) {
                for( c = 0; c < DEFAULT_BLOCK; c++ ) {
                	ch=charray[(i*DEFAULT_BLOCK)+c];
			for(j=0;j<ALLOCATION_UNIT;j++) {
				ch[j]=0x00;
			}
                }
                printf("%d\n", i);

                if( i % 10 == 0 )
                        sleep(1);
        }
	printf("writing 0xFF-s to memory ...\n");
        for( i = 0; i < SIZE; i++ ) {
                for( c = 0; c < DEFAULT_BLOCK; c++ ) {
                	ch=charray[(i*DEFAULT_BLOCK)+c];
			for(j=0;j<ALLOCATION_UNIT;j++) {
				ch[j]=0xFF;
			}
                }
                printf("%d\n", i);

                if( i % 10 == 0 )
                        sleep(1);
        }
	printf("Memory allocation succeeded. Total allocated memory in
kilobytes = %d\n",\

((DEFAULT_BLOCK*SIZE*ALLOCATION_UNIT)+sizeof(charray))/1024);
        printf("sleeping for 30 seconds ...\n");
        sleep(30);

        return 0;
}


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	END

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Process not given >890MB on a 4MB machine ?????????
@ 2001-09-20 19:25 Gabriel.Leen
  2001-09-20 19:56 ` brian
  2001-09-20 20:56 ` Benjamin LaHaise
  0 siblings, 2 replies; 16+ messages in thread
From: Gabriel.Leen @ 2001-09-20 19:25 UTC (permalink / raw)
  To: 'linux-mm@kvack.org'

Hello,
The problem in a nutshell is:

a) I have a 4GB ram 1.7Gh Xeon box
b) I'm running a process which requires around 3GB of ram
c) RedHat 2.4.9 will only give it 890MB, then core dumps with the warning
"segmentation fault"
when it reaches this memory usage and "asks for more"

+++++++++++++++++
Details:

System/OS:
I'm running RedHat 2.4.9, with the 4GB memory support selected 
and the latest patch from
www.kernel.org/pub/linux/kernel/people/alan/linux-2.4/2.4.9 
4GB RAM, slightly less seen by system, (Top, XOSVIEW, etc)
Running as root with the bash shell ulimit command returning: "unlimited"


When it crashes:
according to top): for the process: SIZE 893 MB ,RSS 893 MB, 
"segmentation fault" (core dumped)

+++++++++++++++++
Other Info:

I don't know if the problem has something to do with PAGE_OFFSET in page.h
it is currently set at C0000000
I tried changing this but the machine would not boot then.

I can run 2 or 3 processes using 1 GB at a time but one process using >1GB
is not possible ??

+++++++++++++++++

Any suggestions / advice is very much appreciated, Thanx in advance,

Gabriel

*********************************************************************
Gabriel Leen                        Tel:        00353  61  20 2677
PEI  Technologies               Fax:       00353  61  33 4925
Foundation Building             E-mail:   gabriel.leen@ul.ie
University of Limerick
Limerick
Ireland
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2001-09-26  8:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-24 22:41 Process not given >890MB on a 4MB machine ????????? Gabriel.Leen
2001-09-24 21:16 ` Joseph A Knapka
2001-09-25 10:59   ` Stephen C. Tweedie
2001-09-25 17:36     ` afei
2001-09-26  7:04       ` Eric W. Biederman
2001-09-26  8:53       ` Stephen C. Tweedie
     [not found] <5D2F375D116BD111844C00609763076E050D1681@exch-staff1.ul.ie>
2001-09-24 22:49 ` Rik van Riel
  -- strict thread matches above, loose matches on Subject: below --
2001-09-24 21:15 Gabriel.Leen
2001-09-24 22:16 ` Jonathan Morton
2001-09-21 16:07 Gabriel.Leen
2001-09-22  2:01 ` Rik van Riel
2001-09-20 19:25 Gabriel.Leen
2001-09-20 19:56 ` brian
2001-09-20 20:36   ` Thierry Vignaud
2001-09-20 20:56 ` Benjamin LaHaise
2001-09-21  8:29   ` Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox