Skip site navigation (1)Skip section navigation (2)
Date:      , 10 VII 1999 11:20:15 +0200 (EEDT)
From:      core-ix@hushmail.com
To:        freebsd-arch@FreeBSD.ORG
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Some proposals to FreeBSD kernel
Message-ID:  <200007100823.BAA07998@mail3.hushmail.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello 

I'm 18-year-old newbie UNIX programmer that currently use 
FreeBSD and is really thankfull of it.I run it on DUAL PII/333.

Some days ago my friend tell me that with simple user rights
and whit only 1 line of code he could crash my machine. I laught
but he did it :(.

What he wrote was ' int main(void) {while(1) fork(); }'  compiled it
and run it. Within a second /kernel said "proc: table is full" and 
died. I tried this on some other BSD unixes and the result was 
same. (BTW Minix 2.0 seem unaffected and probably other SVR4
variants, because you can limit the number of  system processes
and system still have resources to work fine(although slow))

With sysctl() I found that my system can work with up to 532 procs
simulanteously, but didnt found where this value is set in the src/
or probably where it is computed.

So I sit down and wrote a static library that introduse a new fork()
(nfork()) and _exit() (nexit()) whose only purpose is to lower the 
effect ot fast fork()s by sleeping accordingly to the number of times
fork() was called.I tend to make some more things with that piece 
of code (in the attachment) and probably to add it to the kenel src
but for now it is easier to use it as a library.

Any suggestions about tarball included are welcome.
Looking forward to hearing from you.
				Thanks for reading my letter    Ix
P.S. Please excuse my amateur code (I'm only 18-year-old :) )
And the file attached is named sys2-src.tar.gz but my mail have
some problems with that names so it may apear as sys2-src.tar.gz.gz


IMPORTANT NOTICE:  If you are not using HushMail, this message could have been read easily by the many people who have access to your open personal email messages.
Get your FREE, totally secure email address at http://www.hushmail.com.



[-- Attachment #2 --]
|i9sys2-src.tarQO0:C&6`:Q"u8i}g7)i&IU/}Nw28O$I
@.O8L	-UZ88QjC7%S' ~Q$b:'g0C268}8906]^M~E~f-ڧqKYd8b.7zjt["?:ņg3u|~T^+Xaq?Ý{~<q2=dv1މIME}y_Nrشv:{ߜrAҳq6x-U/'nPW U!3fԴ(]`]O@`rs!TZ^)11kybӼH+/~u<S03A)e`]~֥ŭ8K+vCϞa< LuwЦK%u5yS#4Om'+Ī4"sL(!)DbMTbYЦNYh{Nfo}	o-Qp1#=TC{fg.AAAAAAP~t3(

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007100823.BAA07998>