netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHSET] [NET] Various sock struct reorderings
@ 2005-03-09 19:45 Thomas Graf
  2005-03-09 19:46 ` [PATCH 1/11] [NET] Reorder struct inet_sock Thomas Graf
                   ` (10 more replies)
  0 siblings, 11 replies; 16+ messages in thread
From: Thomas Graf @ 2005-03-09 19:45 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

The following patchset reorders various sock structures to avoid padding and
shrinks various oversized fields to save space. This will probably break
various external modules so maybe we should defer this.

Savings on my x86 box:
  rawv6_sock:    696 ->  668
  udpv6_sock:    668 ->  640
  tcpv6_sock:   1232 -> 1192
  unix_sock:     464 ->  452
  raw_sock:      548 ->  524
  udp_sock:      556 ->  532
  tcp_sock:     1120 -> 1084
  sock:          388 ->  376

I didn't benchmark any cachline effects though.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-03-09 20:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-09 19:45 [PATCHSET] [NET] Various sock struct reorderings Thomas Graf
2005-03-09 19:46 ` [PATCH 1/11] [NET] Reorder struct inet_sock Thomas Graf
2005-03-09 19:47 ` [PATCH 2/11] [NET] Convert sk_zapped into SOCK_ZAPPED flag Thomas Graf
2005-03-09 19:54   ` Patrick McHardy
2005-03-09 19:56     ` Thomas Graf
2005-03-09 20:05       ` Patrick McHardy
2005-03-09 20:23         ` Thomas Graf
2005-03-09 19:47 ` [PATCH 3/11] [NET] Convert sk_user_write_queue into SOCK_USE_WRITE_QUEUE flag Thomas Graf
2005-03-09 19:48 ` [PATCH 4/11] [NET] Convert sk_debug into SOCK_DBG flag Thomas Graf
2005-03-09 19:48 ` [PATCH 5/11] [NET] Convert sk_rcvtstamp into SOCK_RCVTSTAMP flag Thomas Graf
2005-03-09 19:49 ` [PATCH 6/11] [NET] Convert sk_no_largesend into SOCK_NO_LARGESEND flag Thomas Graf
2005-03-09 19:49 ` [PATCH 7/11] [NET] Convert sk_localroute into SOCK_LOCALROUTE flag Thomas Graf
2005-03-09 19:50 ` [PATCH 8/11] [NET] Convert sk_queue_shrunk into SOCK_QUEUE_SHRUNK flag Thomas Graf
2005-03-09 19:51 ` [PATCH 9/11] [NET] Reorder struct sock Thomas Graf
2005-03-09 19:51 ` [PATCH 10/11] [NET] Reorder struct ipv6_pinfo Thomas Graf
2005-03-09 19:52 ` [PATCH 11/11] [NET] Reorder struct tcp_options_received Thomas Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).