Hi linux-net, I suspect there is a leak which looses memory in the sock slab, at least with a high rate of connections. My test runs a large number of fast, short, HTTP connections, at a rate of about 4500/s for this test. The 'grep sock /proc/slabinfo' excerpt below covers a test with 40000 connections, with one line corresponding to one real time second. The inuse socket number starts out high because of previous tests with some 10^7 connections. In this test, there are about 1500 additional 'struct sock's left over after the 40000 new connections. I just repeated the test with another 80000 connections, seeing a loss of another 3000 socket structs - the loss seems about linear in the number of connections. 'netstat' does not show any of the lost sockets after the run. Machine: 2x500Mhz P-III, 512MB RAM, SK-GE ethernet card Kernel: 2.4.0-test7-pre4 Patches: Ben Grear's VLAN patch v0.11, in active use Any ideas on where to look further? Please Cc: me (bof@bof.de) on any reply - I'm not subscribed to linux-net. regards Patrick sock 133373 133435 800 26686 26687 1 : 124 62 sock 133373 133435 800 26686 26687 1 : 124 62 sock 133373 133435 800 26686 26687 1 : 124 62 sock 133373 133435 800 26686 26687 1 : 124 62 sock 133373 133435 800 26686 26687 1 : 124 62 sock 133373 133435 800 26686 26687 1 : 124 62 sock 133435 133435 800 26687 26687 1 : 124 62 sock 133480 133480 800 26696 26696 1 : 124 62 sock 133480 133480 800 26696 26696 1 : 124 62 sock 133510 133510 800 26702 26702 1 : 124 62 sock 133515 133515 800 26703 26703 1 : 124 62 sock 133540 133540 800 26708 26708 1 : 124 62 sock 133545 133545 800 26709 26709 1 : 124 62 sock 133575 133575 800 26715 26715 1 : 124 62 sock 133568 133630 800 26726 26726 1 : 124 62 sock 133630 133630 800 26726 26726 1 : 124 62 sock 133635 133635 800 26727 26727 1 : 124 62 sock 133675 133675 800 26735 26735 1 : 124 62 sock 133680 133680 800 26736 26736 1 : 124 62 sock 133725 133725 800 26745 26745 1 : 124 62 sock 133725 133725 800 26745 26745 1 : 124 62 sock 133730 133730 800 26746 26746 1 : 124 62 sock 133750 133750 800 26750 26750 1 : 124 62 sock 133775 133775 800 26755 26755 1 : 124 62 sock 133790 133790 800 26758 26758 1 : 124 62 sock 133810 133810 800 26762 26762 1 : 124 62 sock 133840 133840 800 26768 26768 1 : 124 62 sock 133865 133865 800 26773 26773 1 : 124 62 sock 133880 133880 800 26776 26776 1 : 124 62 sock 133910 133910 800 26782 26782 1 : 124 62 sock 133925 133925 800 26785 26785 1 : 124 62 sock 133935 133935 800 26787 26787 1 : 124 62 sock 133935 133935 800 26787 26787 1 : 124 62 sock 133940 133940 800 26788 26788 1 : 124 62 sock 133950 133950 800 26790 26790 1 : 124 62 sock 133950 133950 800 26790 26790 1 : 124 62 sock 133960 133960 800 26792 26792 1 : 124 62 sock 133965 133965 800 26793 26793 1 : 124 62 sock 133980 133980 800 26796 26796 1 : 124 62 sock 134010 134010 800 26802 26802 1 : 124 62 sock 134020 134020 800 26804 26804 1 : 124 62 sock 134060 134060 800 26812 26812 1 : 124 62 sock 134080 134080 800 26816 26816 1 : 124 62 sock 134100 134100 800 26820 26820 1 : 124 62 sock 134115 134115 800 26823 26823 1 : 124 62 sock 134145 134145 800 26829 26829 1 : 124 62 sock 134165 134165 800 26833 26833 1 : 124 62 sock 134195 134195 800 26839 26839 1 : 124 62 sock 134215 134215 800 26843 26843 1 : 124 62 sock 134235 134235 800 26847 26847 1 : 124 62 sock 134260 134260 800 26852 26852 1 : 124 62 sock 134260 134260 800 26852 26852 1 : 124 62 sock 134300 134300 800 26860 26860 1 : 124 62 sock 134340 134340 800 26868 26868 1 : 124 62 sock 134365 134365 800 26873 26873 1 : 124 62 sock 134365 134365 800 26873 26873 1 : 124 62 sock 134365 134365 800 26873 26873 1 : 124 62 sock 134420 134420 800 26884 26884 1 : 124 62 sock 134445 134445 800 26889 26889 1 : 124 62 sock 134455 134455 800 26891 26891 1 : 124 62 sock 134480 134480 800 26896 26896 1 : 124 62 sock 134505 134505 800 26901 26901 1 : 124 62 sock 134520 134520 800 26904 26904 1 : 124 62 sock 134550 134550 800 26910 26910 1 : 124 62 sock 134523 134585 800 26917 26917 1 : 124 62 sock 134590 134590 800 26918 26918 1 : 124 62 sock 134615 134615 800 26923 26923 1 : 124 62 sock 134620 134620 800 26924 26924 1 : 124 62 sock 134670 134670 800 26934 26934 1 : 124 62 sock 134690 134690 800 26938 26938 1 : 124 62 sock 134720 134720 800 26944 26944 1 : 124 62 sock 134740 134740 800 26948 26948 1 : 124 62 sock 134688 134750 800 26950 26950 1 : 124 62 sock 134775 134775 800 26955 26955 1 : 124 62 sock 134775 134775 800 26955 26955 1 : 124 62 sock 134800 134800 800 26960 26960 1 : 124 62 sock 134820 134820 800 26964 26964 1 : 124 62 sock 134850 134850 800 26970 26970 1 : 124 62 sock 134865 134865 800 26973 26973 1 : 124 62 sock 134885 134885 800 26977 26977 1 : 124 62 sock 134843 134905 800 26981 26981 1 : 124 62 sock 134843 134905 800 26981 26981 1 : 124 62 sock 134843 134905 800 26981 26981 1 : 124 62 - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/