Thread (3 messages) flat view 3 messages, 2 authors, 2005-08-08

Re: Netlink allocation for iSCSI and others

From: "David S. Miller" <davem@davemloft.net>
Date: 2005-08-08 21:21:31
Also in: linux-scsi

From: Patrick McHardy <redacted>
Date: Mon, 08 Aug 2005 23:19:37 +0200
David S. Miller wrote:
quoted
So we can increase MAX_LINKS to 256 and that's what I think I will do
for 2.6.14 unless there is a very serious objection.  The tables sized
by MAX_LINKS in af_netlink.c are dynamically allocated, and the only
linear iterations over MAX_LINKS are for the netlink socket procfs
seq-file dumper, so it's not a performance issue either.
I think we should increase it when allocating new numbers to save the
unused memory for the larger nltable and additional pid hashes.
Userspace shouldn't care if we change it.
Agreed.  So we have 17 netlink numbers to allocate at this
point, and that should be good for a while.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help