Thursday 3 April 2008

50th Post ! Forkin Hell!

Well, I thought I'd have some forking fun. Its seems that my university computer doesn't have process quotas turned on...

int main(){
int i;
for(i=0;i<50;i++){
fork();
calloc(1024,2048);
}
}

This lead to some interesting uptimes,
before:
2:42pm up 45 day(s), 21:30, 2 users, load average: 0.18, 0.43, 0.39
after:
2:42pm up 45 day(s), 21:30, 2 users, load average: 19.76, 1342.68, 1231.63

Again, I'd like to say "Whoops" I really did think process quota's were running. On the plus side, Solaris recovered pretty quickly :-)

1 comment:

  1. Perhaps your friendly neighbourhood system administrator should 'apt-get install clue'? :O

    ReplyDelete