Date:         Wed, 16 Jun 1999 18:49:58 +0100 (BST)
  From: Alan Cox <[EMAIL PROTECTED]>

  > Is there any issues with 2 gigs of ram and the quad processors?  Dell
  > wouldn't ship the computer with 2 gb ram because it doesn't conform to
  > RedHat's guidelines or something, so I have to put it in once it gets here.

  You need to tweak the kernel to use the full 2Gig. The standard kernel
  only supports 1Gig. It isnt that hard to do

In fact, here's the standard patch I'm using for this.  The tweek to mmap
allows one to alter where the libaries are mapped (giving more or less sbrk
space relative to shared memory space) by limiting the data segment size.

                Leonard


--- linux/mm/mmap.c-    Wed Jan 27 10:43:41 1999
+++ linux/mm/mmap.c     Mon Feb 22 01:01:11 1999
@@ -357,8 +357,11 @@
 
        if (len > TASK_SIZE)
                return 0;
-       if (!addr)
-               addr = TASK_UNMAPPED_BASE;
+       if (!addr) {
+               addr = current->rlim[RLIMIT_DATA].rlim_cur;
+               if (addr >= RLIM_INFINITY)
+                       addr = TASK_UNMAPPED_BASE;
+       }
        addr = PAGE_ALIGN(addr);
 
        for (vmm = find_vma(current->mm, addr); ; vmm = vmm->vm_next) {
--- linux/include/asm-i386/page.h-      Tue Jan 26 13:04:02 1999
+++ linux/include/asm-i386/page.h       Mon Feb 22 00:58:56 1999
@@ -79,7 +79,7 @@
  *
  * which has the same constant encoded..
  */
-#define __PAGE_OFFSET          (0xC0000000)
+#define __PAGE_OFFSET          (0x80000000)
 
 #define PAGE_OFFSET            ((unsigned long)__PAGE_OFFSET)
 #define __pa(x)                        ((unsigned long)(x)-PAGE_OFFSET)
--- linux/arch/i386/vmlinux.lds-        Sun Dec 27 22:45:13 1998
+++ linux/arch/i386/vmlinux.lds Mon Feb 22 00:58:56 1999
@@ -6,7 +6,7 @@
 ENTRY(_start)
 SECTIONS
 {
-  . = 0xC0000000 + 0x100000;
+  . = 0x80000000 + 0x100000;
   _text = .;                   /* Text and read-only data */
   .text : {
        *(.text)
--- linux/include/asm-i386/elf.h-       1999/01/27 00:29:09
+++ linux/include/asm-i386/elf.h        1999/05/26 05:48:12
@@ -51,7 +51,9 @@ typedef struct user_i387_struct elf_fpre
    the loader.  We need to make sure that it is out of the way of the program
    that it will "exec", and that there is sufficient room for the brk.  */
 
-#define ELF_ET_DYN_BASE         (2 * TASK_SIZE / 3)
+#define ELF_ET_DYN_BASE         ((TASK_SIZE & 0x80000000) \
+                                ? TASK_SIZE / 3 * 2 \
+                                : 2 * TASK_SIZE / 3)

-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to