linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/3] mm: vmevent: Stats accuracy improvements
@ 2012-10-12 10:11 Anton Vorontsov
  2012-10-12 10:11 ` [PATCH 1/3] mm: vmstat: Implement set_zone_stat_thresholds() helper Anton Vorontsov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Anton Vorontsov @ 2012-10-12 10:11 UTC (permalink / raw)
  To: Pekka Enberg
  Cc: Mel Gorman, Leonid Moiseichuk, KOSAKI Motohiro, Minchan Kim,
	Bartlomiej Zolnierkiewicz, John Stultz, linux-mm, linux-kernel,
	linaro-kernel, patches, kernel-team

Hi all,

Some time ago KOSAKI Motohiro noticed[1] that vmevent might be very
inaccurate (up to 2GB inaccuracy on a very large machines) since per CPU
stats synchronization happens either on time basis or when we hit stat
thresholds.

KOSAKI also told that perf API might be a good inspirations for further
improvements, but I must admit I didn't fully get the idea, although I'm
open to investigate this route too, but I guess it needs a bit more
explanations.

Also note that this is just an RFC, I just show some ideas and wonder how
you feel about it. Since we now use memory pressure factor bolted into the
reclaimer code path, we don't desperately need the accurate stats, but
it's still nice thing to have/fix.

Anyway, here we take two approaches:

- Asynchronously sum vm_stat diffs and global stats. This is very similar
  to what we already have for per-zone stats, implemented in
  zone_page_state_snapshot(). The values still could be inaccurate, but
  overall this makes things better;

- Implement configurable per CPU vmstat thresholds. This is much more
  powerful tool to get accurate statistics, but it comes with a price: it
  might cause some performance penalty as we'd update global stats more
  frequently (in a fast path), so users have to be careful.

The two items are independent, so we might implement one or another, or
both, or none, if desired. ;-)

Thanks,
Anton.

p.s. Note that the patches are against my vmevent tree, i.e.:

	git://git.infradead.org/users/cbou/linux-vmevent.git

[1] http://lkml.indiana.edu/hypermail/linux/kernel/1205.1/00062.html

--
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>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-12 10:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12 10:11 [RFC 0/3] mm: vmevent: Stats accuracy improvements Anton Vorontsov
2012-10-12 10:11 ` [PATCH 1/3] mm: vmstat: Implement set_zone_stat_thresholds() helper Anton Vorontsov
2012-10-12 10:11 ` [PATCH 2/3] mm: vmevent: Use value2 for setting vmstat thresholds Anton Vorontsov
2012-10-12 10:11 ` [PATCH 3/3] mm: vmevent: Sum per cpu pagesets stats asynchronously Anton Vorontsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).