Help for this page

Select Code to Download


  1. or download this
    $ ulimit -a
    ...
    virtual memory        (kbytes, -v) 8192
    
  2. or download this
    $ cat swaphogger.pl
    #!/usr/bin/perl -w
    ...
                    die __FILE__ . " [" . __LINE__ . "] couldn't fork() :$
    +!\n";
            }
    }
    
  3. or download this
                    $swapon = `swapon -s | tail -1` # strangeness
    
  4. or download this
    $ ./swaphogger.pl  10
    ./swaphogger.pl [8] child [2583]
    ...
    Out of memory!
    Out of memory!
    Out of memory!
    
  5. or download this
                    $swapon = `swapon -s | tail -1` # strangeness