aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMikulas Patocka <[email protected]>2009-04-02 19:55:24 +0100
committerAlasdair G Kergon <[email protected]>2009-04-02 19:55:24 +0100
commit95f8fac8dc6139fedfb87746e0c8fda9b803cb46 (patch)
tree36c980967ee188865d0a58be2e1281b5bf77cbae /tools/perf/scripts/python
parenta920f6b3accc77d9dddbc98a7426be23ee479625 (diff)
dm raid1: switch read_record from kmalloc to slab to save memory
With my previous patch to save bi_io_vec, the size of dm_raid1_read_record is significantly increased (the vector list takes 3072 bytes on 32-bit machines and 4096 bytes on 64-bit machines). The structure dm_raid1_read_record used to be allocated with kmalloc, but kmalloc aligns the size on the next power-of-two so an object slightly greater than 4096 will allocate 8192 bytes of memory and half of that memory will be wasted. This patch turns kmalloc into a slab cache which doesn't have this padding so it will reduce the memory consumed. Cc: [email protected] Signed-off-by: Mikulas Patocka <[email protected]> Signed-off-by: Alasdair G Kergon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions