[PATCH v4] mm: slub: move sysfs slab alloc/free interfaces to debugfs

2021-04-16 Thread Faiyaz Mohammed
alloc_calls and free_calls implementation in sysfs have two issues, one is PAGE_SIZE limitiation of sysfs and other is it does not adhere to "one value per file" rule. To overcome this issues, move the alloc_calls and free_calls implemeation to debugfs. Signed-off-by: Faiya

Re: [PATCH] mm: slub: move sysfs slab alloc/free interfaces to debugfs

2021-04-06 Thread Faiyaz Mohammed
Please ignore this patch! Thanks and regards, Mohammed Faiyaz. On 4/6/2021 5:55 PM, Faiyaz Mohammed wrote: > alloc_calls and free_calls implementation in sysfs have two issues, > one is PAGE_SIZE limitiation of sysfs and other is it does not adhere > to "one value

[PATCH v3] mm: slub: move sysfs slab alloc/free interfaces to debugfs

2021-04-06 Thread Faiyaz Mohammed
alloc_calls and free_calls implementation in sysfs have two issues, one is PAGE_SIZE limitiation of sysfs and other is it does not adhere to "one value per file" rule. To overcome this issues, move the alloc_calls and free_calls implemeation to debugfs. Signed-off-by: Faiyaz Mohamme

[PATCH] mm: slub: move sysfs slab alloc/free interfaces to debugfs

2021-04-06 Thread Faiyaz Mohammed
alloc_calls and free_calls implementation in sysfs have two issues, one is PAGE_SIZE limitiation of sysfs and other is it does not adhere to "one value per file" rule. To overcome this issues, move the alloc_calls and free_calls implemeation to debugfs. Signed-off-by: Faiyaz Mohamme

Re: [PATCH v2] mm: slub: Convert sys slab alloc_calls, free_calls to bin attribute

2021-02-17 Thread Faiyaz Mohammed
+linux-mm, linux-kernel. On 2/17/2021 12:01 PM, Faiyaz Mohammed wrote: > Reading the sys slab alloc_calls, free_calls returns the available object > owners, but the size of this file is limited to PAGE_SIZE > because of the limitation of sysfs attributes, it is returning the > partia

Re: [PATCH] mm: slub: Convert sys slab alloc_calls, free_calls to bin attribute

2021-02-16 Thread Faiyaz Mohammed
Hi Vlastimil, On 1/13/2021 9:35 PM, Vlastimil Babka wrote: > On 1/12/21 10:21 AM, Faiyaz Mohammed wrote: >> Reading the sys slab alloc_calls, free_calls returns the available object >> owners, but the size of this file is limited to PAGE_SIZE >> because of the limitatio

Re: [PATCH] mm: slub: Convert sys slab alloc_calls, free_calls to bin attribute

2021-02-16 Thread Faiyaz Mohammed
Hi Matthew, On 1/12/2021 5:52 PM, Matthew Wilcox wrote: > On Tue, Jan 12, 2021 at 02:51:27PM +0530, Faiyaz Mohammed wrote: >> @@ -5180,6 +5187,7 @@ static int any_slab_objects(struct kmem_cache *s) >> >> struct slab_attribute { >> struct attribute attr; &

Re: [PATCH] mm: slub: Convert sys slab alloc_calls, free_calls to bin attribute

2021-01-24 Thread Faiyaz Mohammed
On 1/13/2021 9:35 PM, Vlastimil Babka wrote: > On 1/12/21 10:21 AM, Faiyaz Mohammed wrote: >> Reading the sys slab alloc_calls, free_calls returns the available object >> owners, but the size of this file is limited to PAGE_SIZE >> because of the limitation of sysfs attrib

Re: [PATCH] mm: slub: Convert sys slab alloc_calls, free_calls to bin attribute

2021-01-12 Thread Faiyaz Mohammed
On 1/12/2021 5:52 PM, Matthew Wilcox wrote: > On Tue, Jan 12, 2021 at 02:51:27PM +0530, Faiyaz Mohammed wrote: >> @@ -5180,6 +5187,7 @@ static int any_slab_objects(struct kmem_cache *s) >> >> struct slab_attribute { >> struct attribute attr; >> +

[PATCH] mm: slub: Convert sys slab alloc_calls, free_calls to bin attribute

2021-01-12 Thread Faiyaz Mohammed
is not matching with /proc/slabinfo. To remove the PAGE_SIZE limitation converted the sys slab alloc_calls, free_calls to bin attribute. Signed-off-by: Faiyaz Mohammed --- mm/slub.c | 61 +++-- 1 file changed, 47 insertions(+), 14

[PATCH v2] mm: memblock: drop __init from memblock functions to make it inline

2020-11-16 Thread Faiyaz Mohammed
start_kernel+0xa4/0x568 [0.00] memblock_reserve: [0x00023f09a3c0-0x00023f09a991] memblock_alloc_range_nid+0xc0/0x188 Signed-off-by: Faiyaz Mohammed --- include/linux/memblock.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/linux/memblock.h b

[PATCH v2] mm: memblock: add more debug logs

2020-11-15 Thread Faiyaz Mohammed
early_pgtable_alloc+0x24/0x178 [0.00] memblock_reserve: [0x00023fc6b000-0x00023fc6bfff] memblock_alloc_range_nid+0xc0/0x188 Signed-off-by: Faiyaz Mohammed --- mm/memblock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/memblock.c b/mm/memblock.c index 049df41..f65af9f

Re: [PATCH] mm: memblock: always inline memblock_alloc

2020-11-11 Thread Faiyaz Mohammed
On 11/11/2020 12:11 AM, Mike Rapoport wrote: Hi, On Tue, Nov 10, 2020 at 05:50:17PM +0530, Faiyaz Mohammed wrote: Since memblock_alloc is not getting inlined, memblock_reserve owner info is lost. Below information is not enough for memory accounting. for example: [0.00

Re: [PATCH] mm: memblock: add more debug logs

2020-11-11 Thread Faiyaz Mohammed
On 11/10/2020 11:46 PM, Mike Rapoport wrote: Hi, On Tue, Nov 10, 2020 at 05:49:58PM +0530, Faiyaz Mohammed wrote: Exact caller of memblock_phys_alloc_range is not available with "memblock=debug". Below information is not enough for memory accounting. for example: [

[PATCH] mm: memblock: always inline memblock_alloc

2020-11-10 Thread Faiyaz Mohammed
ytes align=0x40 nid=-1 from=0x max_addr=0x start_kernel+0xa4/0x568 [0.00] memblock_reserve: [0x00023f09a3c0-0x00023f09a991] memblock_alloc_range_nid+0xc0/0x188 Signed-off-by: Faiyaz Mohammed --- include/linux/memblock.h | 2 +- 1 file changed, 1 inser

[PATCH] mm: memblock: add more debug logs

2020-11-10 Thread Faiyaz Mohammed
0.00] memblock_reserve: [0x00023fc6b000-0x00023fc6bfff] memblock_alloc_range_nid+0xc0/0x188 Signed-off-by: Faiyaz Mohammed --- mm/memblock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/memblock.c b/mm/memblock.c index 049df41..f65af9f 100644 --- a/mm/memblock.c +++ b/mm/