[ILUG] swap

kevin lyda kevin+dated+1115214626.b5f726 at ie.suberic.net
Fri Apr 29 14:50:11 IST 2005


On Fri, Apr 29, 2005 at 02:15:33PM +0100, Niall O Broin wrote:
> #include <stdlib.h>
> 
> int main()
> 
> {
>    int megs = 512;
>    free(calloc(megs, 1048576));
>    exit(0);
> }
> 
> as, say, gobble.c and compile it with   cc -o gobble gobble.c

or a bit easier:

    perl -e '$x = "x" x 536870912;'

kevin

-- 
kevin lyda ~ dems for torture: salazar(co/10) landrieu(la/08) pryor(ar/08)
kevin at ie.suberic.net ~ nelson(fl/06) nelson(ne/06) lieberman(ct/06) 2/2/04
  Those who refuse to raise their voices against something as clearly evil
  as torture are enablers, if not collaborators.  --Bob Herbert, 2/11/04



More information about the ILUG mailing list