The best way to protect against starvation?
- From: G Hasse <gh@xxxxxxxxxx>
- Date: Fri, 6 Apr 2007 16:50:08 +0200
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"
- Follow-Ups:
- Re: The best way to protect against starvation?
- From: Eygene Ryabinkin
- Re: The best way to protect against starvation?
- Prev by Date: Re: nx-bit and TPM
- Next by Date: Re: The best way to protect against starvation?
- Previous by thread: Re: nx-bit and TPM
- Next by thread: Re: The best way to protect against starvation?
- Index(es):
Relevant Pages
|
|