diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-04-27 21:05:42 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2023-04-30 13:37:28 +0300 |
commit | db2993a423e3fd0e4878f4d3ac66fe717f5f072e (patch) | |
tree | 69f8bd25a3c0fc7501ab1ec2aaf23ba39f8c7b0f /tools/perf/scripts/python/net_dropmonitor.py | |
parent | a5ffd7b6e91a12975ae30de863437cc04387576a (diff) | |
download | linux-db2993a423e3fd0e4878f4d3ac66fe717f5f072e.tar.xz |
ceph: reorder fields in 'struct ceph_snapid_map'
Group some variables based on their sizes to reduce holes.
On x86_64, this shrinks the size of 'struct ceph_snapid_map' from 72 to 64
bytes.
When such a structure is allocated, because of the way memory allocation
works, when 72 bytes were requested, 96 bytes were allocated.
So, on x86_64, this change saves 32 bytes per allocation and has the
structure fit in a single cacheline.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions