The best way to protect against starvation?



Hello,

If an ordinary user runs:

-- snip --
cat > starv.c <<EOF
main(){ char *point; while(1) { point = ( char * ) malloc(10000); }}
EOF
cc starv.c
while true
do
./a.out &
done
-- snip --

This will fast starv the operating system (FreeBSD 6.2). I have tried to
limit the number of processes and the amount of memmory consumed (in
login.conf).

There is also a file /etc/malloc.conf - but I don't understand if this
could help? Any advice?

--
Göran Hasse

----------------------------------------------------------------
Göran Hasse email: gh@xxxxxxxxxx Tel: 08-6949270
Raditex AB http://www.raditex.se
Planiavägen 15, 1tr Mob: 070-5530148
131 34 NACKA, SWEDEN OrgNr: 556240-0589
VAT: SE556240058901
------------------------------------------------------------------

_______________________________________________
freebsd-security@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Xorg + CURRENT == computer reboot ... ?
    ... Unable to open socket for inet6 ... failed to open listener for inet6 ... Current Operating System: FreeBSD purpleelephants.hub.org 7.0-CURRENT FreeBSD ...
    (freebsd-current)
  • Re: Computers that us FreeBSD. HELP!!!!!!!
    ... You might will have problems getting certain machines without operating system. ... I currently have a Computer System that is based off the FreeBSD Operating ... This e-mail contains confidential information which also may be privileged. ... Unless you are the addressee, ...
    (freebsd-questions)
  • Re: Mac on any PC
    ... I bet Linux is a better platform for Linux development than is OS X. ... X is based on FreeBSD, you are claiming that OS X is a fork of FreeBSD. ... they based their operating system on Nextstep. ... They are very careful to use terms like "FreeBSD services" and "BSD environment", rather than simply making the claim that they based their system on FreeBSD. ...
    (comp.sys.mac.advocacy)
  • Re: virus scan programs
    ... or I.B.M. Domino operating system. ... > to run a virus scan application program. ... Sophos is one virus software supplier that has a native freebsd ...
    (freebsd-questions)
  • Re: nvidia-driver segmentation fault
    ... had to install this to get all the stuff, ... I can run X apps with the nv driver, but the ... Current Operating System: FreeBSD asinusaureus 6.2-STABLE FreeBSD 6.2-STABLE ...
    (freebsd-questions)