Thread (19 messages) flat view 19 messages, 6 authors, 2014-08-26

Re: [RFC 3/4] tuntap: reduce the size of tun_struct by using flex array

From: David Gibson <hidden>
Date: 2014-08-25 01:35:07
Also in: lkml

On Mon, 18 Aug 2014 19:07:19 +0530
Pankaj Gupta [off-list ref] wrote:
This patch switches to flex array to implement the flow caches, it brings
several advantages:

- Reduce the size of the tun_struct structure, which allows us to increase the
  upper limit of queues in future.
- Avoid higher order memory allocation. It will be useful when switching to
  pure hashing in flow cache which may demand a larger size array in future.

After this patch, the size of tun_struct on x86_64 reduced from 8512 to
328

Signed-off-by: Jason Wang <redacted>
Signed-off-by: Pankaj Gupta <redacted>
Reviewed-by: David Gibson <redacted>

-- 
David Gibson [off-list ref]

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help