netdev
[Top] [All Lists]

[PATCH][RFC 3] cleaning up struct sock

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATCH][RFC 3] cleaning up struct sock
From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxx>
Date: Thu, 20 Dec 2001 01:23:39 -0200
Cc: SteveW@xxxxxxx, jschlst@xxxxxxxxx, ncorbic@xxxxxxxxxxx, eis@xxxxxxxxxxxxx, dag@xxxxxxxxxxx, torvalds@xxxxxxxxxxxxx, marcelo@xxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
In-reply-to: <20011218232222.A1963@xxxxxxxxxxxxxxxx>
Mail-followup-to: Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxx>, SteveW@xxxxxxx, jschlst@xxxxxxxxx, ncorbic@xxxxxxxxxxx, eis@xxxxxxxxxxxxx, dag@xxxxxxxxxxx, torvalds@xxxxxxxxxxxxx, marcelo@xxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
References: <20011218033552.B910@xxxxxxxxxxxxxxxx> <20011217.225134.91313099.davem@xxxxxxxxxx> <20011218185200.A1211@xxxxxxxxxxxxxxxx> <20011218.130809.22018359.davem@xxxxxxxxxx> <20011218232222.A1963@xxxxxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mutt/1.3.23i
Ok, patch for 2.5.1, without the bogus cvs $id strings hunks, being used
in this machine now.

Available at:

http://www.kernel.org/pub/linux/kernel/people/acme/v2.5/2.5.1/
sock.cleanup-2.5.1.patch.bz2

Ah, the lat_unix_connect results on a pentium 300 mmx notebook:

2.5.1 + this patch
UNIX connection cost : 96.1749 microseconds
UNIX connection cost : 96.3361 microseconds
UNIX connection cost : 97.2310 microseconds
UNIX connection cost : 101.9180 microseconds
UNIX connection cost : 97.2461 microseconds

2.4.16 pristine
UNIX connection cost : 112.7034 microseconds
UNIX connection cost : 114.5494 microseconds
UNIX connection cost : 114.0923 microseconds
UNIX connection cost : 111.0959 microseconds
UNIX connection cost : 120.8419 microseconds

And about 100 KB of kernel memory saved for AF_UNIX sockets on a basic KDE
session (i.e., the AF_UNIX struct sock now is about 400 bytes when it is about
1200 bytes on a pristine kernel).

- Arnaldo

<Prev in Thread] Current Thread [Next in Thread>