Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 May 2001 17:32:27 +0300 (EEST)
From:      Pekka Savola <pekkas@netcore.fi>
To:        <freebsd-stable@freebsd.org>
Subject:   4.3-S: >1000 ipfw rules and heavy traffic crash the system
Message-ID:  <Pine.LNX.4.33.0105181720020.23347-100000@netcore.fi>

next in thread | raw e-mail | index | archive | help
Hello all,

This is related to '4.3-S: No buffer space available' thread here two
weeks ago:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=965879+0+archive/2001/freebsd-stable/20010506.freebsd-stable

I noticed that if you create too many ipfw rules, through which extra
traffic must pass, rather soon you will crash the system.

In this scenario, adding >1000 non-matching rules before the
standard tcp established rule, and doing 20Mbit/s steady through the
rules, caused kernel load to go to ~8.0 (Dual P3/866) and after less than
an hour, crash the system.

==> Of course, adding >1000 non-matching rules is stupid, but that is not
==> the point.  The system should not crash this way, without any error
==> messages.

The crash causes all userspace to become totally non-responsive: ping and
traceroute from the outside work ok, but all existing connections become
non-responsive.  New TCP establishment work until when you'd have
to communicate with the daemon.  Console keyboard does not react to
CTRL-ALT-DEL.

This is _not_ caused by mbuf/mbuf cluster usage; I have a cronjob saving
these as a debugging information every two minutes, and there was no
significant increase there; peak had never gone more than the half of the
maximum.

The same crash has happened with smaller number of non-matching rules too;
e.g. 600.  Usually took longer this way.

This had happened like 3-4 before I realized what was going wrong.

Probably not relevant, but after every crash, there were usually a _lot_
of FS inconsistancies.

Please Cc:.
-- 
Pekka Savola                 "Tell me of difficulties surmounted,
Netcore Oy                   not those you stumble over and fall"
Systems. Networks. Security.  -- Robert Jordan: A Crown of Swords


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.33.0105181720020.23347-100000>