%u-order allocation failed

%u-order allocation failed

Post by David Schwart » Sun, 07 Oct 2001 07:10:07



Quote:>The system is beafy enough to tolerate something mundane as this. It should
>definitely not die.

        A fork bomb with no limits attempts to create an infinite number of
processes. No system can be that beefy.

        DS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

%u-order allocation failed

Post by Mikulas Patock » Mon, 08 Oct 2001 04:10:12


Quote:> This is enhanced version of a patch that fixes select and poll as well.
> Again - not compiled, not tried.

There is a bug that it does not align allocation - so things like
(%esp & ~8191) won't work. This should be applied on the top of it.

Mikulas

[ vmalloc.patch.3 < 1K ]
--- linux-orig/mm/vmalloc.c     Sat Oct  6 16:21:47 2001

 {
        unsigned long addr;
        struct vm_struct **p, *tmp, *area;
+       int align = 0;
+
+       if (size > PAGE_SIZE && !(size & (size - 1))) align = size - 1;

        area = (struct vm_struct *) kmalloc(sizeof(*area), GFP_KERNEL);

                if (size + addr <= (unsigned long) tmp->addr)
                        break;
                addr = tmp->size + (unsigned long) tmp->addr;
+               addr = (addr + align) & ~align;
                if (addr > VMALLOC_END-size)
                        goto out;
        }

 
 
 

1. %u-order allocation failed

Not just that - you get fragmentation of it which leads you back to the
same situation as kmalloc except that with the guard pages you fragment the
address space more.

Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. GNOME: how to start?

3. memory alloc failuer : __alloc_pages: 1-order allocation failed.

4. check modules

5. __alloc_pages: 3-order allocation failed.

6. MySQL/PHP setup problems

7. __alloc_pages: 0-order allocation failed.

8. Microsoft Legal Challenge to Linux??

9. 0-order allocation failed, followed by process murder

10. __alloc_pages: 4-order allocation failed

11. 2.4.10aa1 - 0-order allocation failed.

12. __alloc_pages 4 order allocation failed

13. system hang with "__alloc_page: 1-order allocation failed"