Thread (25 messages) 25 messages, 3 authors, 2016-08-26

Re: [PATCH 0/2] fs, proc: optimize smaps output formatting

From: Joe Perches <joe@perches.com>
Date: 2016-08-19 20:19:12
Also in: lkml

On Fri, 2016-08-19 at 10:43 -0700, Joe Perches wrote:
And this would definitely be faster if seq_has_overflowed() was
used somewhere in the iteration loop.
Adding a seq_has_overflowed() test seems unnecessary as the
fs/seq_file.c traverse() static function already does a
seq_has_overflowed().

And I get:

$ t_mm (your allocate all vma program modified to show count)
count: 65514 pid:2051
$ wc -c /proc/2051/smaps 
39515615 /proc/2051/smaps

smap vma output is a little more than 600 bytes per vma.

I'll look around to see how best go use single_open_size
assuming 768 bytes/vma rounded up to the next PAGE_SIZE.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help