Date: Fri, 6 Apr 2007 16:50:08 +0200 From: G Hasse <gh@raditex.se> To: freebsd-security@freebsd.org Subject: The best way to protect against starvation? Message-ID: <20070406145008.GA88336@mail.raditex.se>
next in thread | raw e-mail | index | archive | help
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@raditex.se 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
------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070406145008.GA88336>
