Results 1 to 3 of 3

Thread: Excessive loads.

  1. #1
    Join Date
    May 2008
    Beans
    1

    Excessive loads.

    Hi,
    A friend installed ubuntu and I was messing with it whenever he looked away, however the results of one of my pranks really surprised me.

    Code:
    yes `yes`
    I knew it would do 'something' but I wasn't expecting it to be quite so bad. It appears 'yes' wont print anything until the second yes has returned, which means there are a lot of y's in memory. The load shown in top was 3.6, and got to 92.0% memory. Furthermore, neither ctrl+C/D, kill or pkill were able to stop it. In the end I used ctrl+alt+bspc

    Firstly, how should this have been stopped? Secondly, how could I prevent something like this happening?

    I was taught at school that the school ran checks to ensure processes weren't growing to quickly in order to detect malicious software. Is there anything like this that is used in the real world?

  2. #2
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Beans
    1,393
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Excessive loads.

    You can adjust the values in /etc/security/limits.conf to curtail the effects of runaway processes.

  3. #3
    Join Date
    Jan 2008
    Location
    /dev/null
    Beans
    2,793
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Excessive loads.

    Quote Originally Posted by 1_zombie View Post
    Hi,
    A friend installed ubuntu and I was messing with it whenever he looked away, however the results of one of my pranks really surprised me.

    Code:
    yes `yes`
    I knew it would do 'something' but I wasn't expecting it to be quite so bad. It appears 'yes' wont print anything until the second yes has returned, which means there are a lot of y's in memory. The load shown in top was 3.6, and got to 92.0% memory. Furthermore, neither ctrl+C/D, kill or pkill were able to stop it. In the end I used ctrl+alt+bspc

    Firstly, how should this have been stopped? Secondly, how could I prevent something like this happening?

    I was taught at school that the school ran checks to ensure processes weren't growing to quickly in order to detect malicious software. Is there anything like this that is used in the real world?
    you could have killed the pts on which you were running yes.
    Code:
    sudo kill -9 <processid of terminal window running bash>
    You didnt need to kill your x-session.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •