Skip to content

fs, proc: optimize smaps output formatting

Michal Hocko linux-fsdevel linux-mm lkml oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2proc, meminfo: abstract show_val_kbfs/proc/internal.h fs/proc/meminfo.c+55 -480 replies
2/2proc, smaps: reduce printing overheadfs/proc/internal.h fs/proc/task_mmu.c+26 -390 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

Hi,
this is rebased on top of next-20160818. Joe has pointed out that meminfo is using a similar trick so I have extracted guts of what we have already and made it more generic to be usable for smaps as well (patch 1). The second patch then replaces seq_printf with seq_write and show_val_kb which should have smaller overhead and my measuring (in kvm) shows quite a nice improvements. I hope kvm is not playing tricks on me but I didn't get to test on a real HW.

Michal Hocko (2):
proc, meminfo: abstract show_val_kb
proc, smaps: reduce printing overhead

 fs/proc/internal.h | 17 ++++++++++
 fs/proc/meminfo.c  | 93 ++++++++++++++++++++++++++----------------------------
 fs/proc/task_mmu.c | 58 +++++++++++-----------------------
 3 files changed, 81 insertions(+), 87 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>