Kernel thread stack usage

Alexander Motin mav at FreeBSD.org
Mon Oct 1 01:57:32 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Julian Elischer wrote:
> two mbuf counters. one oncremented whenever there is am mbuf handoff
> that doesn't involve queueing, and is cleared to 0 whenever queueing is
> invoked,
> and one that is continually incremented until the packet leaves the
> machine..
> 
> one to stop packets permanently circulating around a machine and one for
> stack protection..

Using counter in item will not help in case where packet leaves
netgraph, but will come back later. Also item can be destroyed and
recreated by some nodes like ng_ppp.

And even except this counter will not be a best solution as for example
ng_tee node have significantly lower stack usage then previous version
of ng_bpf or tcp stack call from ksocket. ng_tee node can handle a
hundres, while previous ng_bpf would die after 25 calls.

- --
Alexander Motin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHALZ50kCgngV3usoRAuP2AJ9L87iQss1an2qGEbp9jKYZXW4wdwCdExYp
66aJPV7WqTE1S/Fao1L6Ik4=
=7Enh
-----END PGP SIGNATURE-----


More information about the freebsd-arch mailing list