lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 18 Apr 2017 10:34:08 -0700
From:   Code Soldier1 <codesoldier1@...il.com>
To:     netdev@...r.kernel.org
Subject: question about size of sk_buff and skb_shared_info

Hi Folks,

I am sure there is a reason for the current sizes of these structures,
However the reason is not obvious to me. So please help me understand.

Currently the size of sk_buff on an x86_64 system is 232 bytes -- Why
is that. I expected it to be a multiple of 32/64 as they are the most
common cache lines. Since the alignment calculation will align the
structure with the hw cache line, it seems like we might be wasting
space ?

skb_shared_info on the other hand is perfectly aligned with a size of 320 bytes.

Thanks,

-- 
CS1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ