Re: [PATCH v4 resend] mm/slab: Improve performance of gathering slabinfo stats

2016-08-29 Thread Joe Perches
On Mon, 2016-08-29 at 17:44 -0700, Aruna Ramakrishna wrote: > This patch optimizes 'cat /proc/slabinfo' by maintaining a counter for > total number of allocated slabs per node, per cache. [] > We tested this after > growing the dentry cache to 70GB, and the performance improved from 2s to > 5ms. S

Re: [PATCH v4 resend] mm/slab: Improve performance of gathering slabinfo stats

2016-08-29 Thread Aruna Ramakrishna
On 08/29/2016 05:44 PM, Aruna Ramakrishna wrote: On large systems, when some slab caches grow to millions of objects (and many gigabytes), running 'cat /proc/slabinfo' can take up to 1-2 seconds. During this time, interrupts are disabled while walking the slab lists (slabs_full, slabs_partial, an

[PATCH v4 resend] mm/slab: Improve performance of gathering slabinfo stats

2016-08-29 Thread Aruna Ramakrishna
On large systems, when some slab caches grow to millions of objects (and many gigabytes), running 'cat /proc/slabinfo' can take up to 1-2 seconds. During this time, interrupts are disabled while walking the slab lists (slabs_full, slabs_partial, and slabs_free) for each node, and this sometimes cau