Files
kernel_xiaomi_raphael/fs
Ayush Mittal 682f1453ec kernfs: Allocating memory for kernfs_iattrs with kmem_cache.
Creating a new cache for kernfs_iattrs.
Currently, memory is allocated with kzalloc() which
always gives aligned memory. On ARM, this is 64 byte aligned.
To avoid the wastage of memory in aligning the size requested,
a new cache for kernfs_iattrs is created.

Size of struct kernfs_iattrs is 80 Bytes.
On ARM, it will come in kmalloc-128 slab.
and it will come in kmalloc-192 slab if debug info is enabled.
Extra bytes taken 48 bytes.

Total number of objects created : 4096
Total saving = 48*4096 = 192 KB

After creating new slab(When debug info is enabled) :
sh-3.2# cat /proc/slabinfo
...
kernfs_iattrs_cache   4069   4096    128   32    1 : tunables    0    0    0 : slabdata    128    128      0
...

All testing has been done on ARM target.

Signed-off-by: Ayush Mittal <ayush.m@samsung.com>
Signed-off-by: Vaneet Narang <v.narang@samsung.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: UtsavisGreat <utsavbalar1231@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-06-25 11:25:45 +05:30
..
2019-10-11 19:10:13 +02:00
2020-04-03 08:18:27 +02:00
2019-08-06 19:05:23 +02:00
2019-12-17 20:38:33 +01:00
2019-12-05 15:48:19 +01:00
2019-12-17 21:13:36 +01:00
2019-12-17 21:13:36 +01:00
2020-06-21 14:14:12 +05:30
2020-01-12 12:24:05 +01:00
2020-06-21 14:14:12 +05:30
2020-01-09 16:03:53 +01:00
2019-04-22 13:52:47 +05:30
2019-02-01 21:01:10 -08:00
2020-03-11 18:02:43 +01:00
2020-06-16 00:16:26 +05:30
2020-06-15 21:36:08 +05:30
2020-06-16 10:46:21 +05:30
2020-06-14 21:19:15 +05:30
2020-06-16 10:46:21 +05:30
2018-02-22 19:18:40 +00:00
2019-12-01 09:36:51 +01:00