aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/linux.c
diff options
context:
space:
mode:
authorMatthew Wilcox <[email protected]>2016-12-17 13:18:17 +0000
committerMatthew Wilcox <[email protected]>2017-02-14 02:44:02 +0000
commitd37cacc5adace7f3e0824e1f559192ad7299d029 (patch)
tree9932ecc9ba3010ecc53bdbf5cd299eb0842106ec /tools/testing/radix-tree/linux.c
parentida: Move ida_bitmap to a percpu variable (diff)
downloadkernel-d37cacc5adace7f3e0824e1f559192ad7299d029.tar.gz
kernel-d37cacc5adace7f3e0824e1f559192ad7299d029.zip
ida: Use exceptional entries for small IDAs
We can use the root entry as a bitmap and save allocating a 128 byte bitmap for an IDA that contains only a few entries (30 on a 32-bit machine, 62 on a 64-bit machine). This costs about 300 bytes of kernel text on x86-64, so as long as 3 IDAs fall into this category, this is a net win for memory consumption. Thanks to Rasmus Villemoes for his work documenting the problem and collecting statistics on IDAs. Signed-off-by: Matthew Wilcox <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/linux.c')
0 files changed, 0 insertions, 0 deletions