Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1277542

Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value

From Christoph Lameter <cl@linux.com>
Newsgroups linux.kernel
Subject Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value
Date 2015-11-25 17:10 +0100
Message-ID <qyKNS-9k-71@gated-at.bofh.it> (permalink)
References <qyfh0-4q8-7@gated-at.bofh.it> <qynRj-1yb-103@gated-at.bofh.it> <qyytk-8pA-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 25 Nov 2015, Joonsoo Kim wrote:

> I think that maintaining duplicate counter to guarantee accuracy isn't
> reasonable solution. It would cause more overhead to the system.

Simply remove the counter from the vmstat handling and do it differently
then.

> Although vmstat values aren't designed for accuracy, these are already
> used by some sensitive places so it is better to be more accurate.

The design is to sacrifice accuracy and the time the updates occur for
performance reasons. This is not the purpose the counters were designed
for. If you put these demands on the vmstat then you will get complex
convoluted code and compromise performance.

> What this patch does is just adding current cpu's diff to global value
> when retrieving in order to get more accurate value and this would not be
> expensive. I think that it doesn't break any design principle of vmstat.

There have been a number of expectations recently regarding the accuracy
of vmstat. We are on the wrong track here.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mm/vmstat: retrieve more accurate vmstat value Joonsoo Kim <js1304@gmail.com> - 2015-11-24 07:30 +0100
  Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value Christoph Lameter <cl@linux.com> - 2015-11-24 16:40 +0100
    Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2015-11-25 04:00 +0100
      Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value Christoph Lameter <cl@linux.com> - 2015-11-25 17:10 +0100
        Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value Michal Hocko <mhocko@kernel.org> - 2015-11-25 19:10 +0100
          Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value Christoph Lameter <cl@linux.com> - 2015-11-25 19:30 +0100
        Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2015-11-26 03:00 +0100
  Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value Michal Hocko <mhocko@kernel.org> - 2015-11-25 13:10 +0100
    Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value Vlastimil Babka <vbabka@suse.cz> - 2015-11-25 14:50 +0100
      Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value Michal Hocko <mhocko@kernel.org> - 2015-11-25 14:50 +0100
    Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2015-11-26 03:00 +0100
      Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value vinayak menon <vinayakm.list@gmail.com> - 2015-11-26 06:10 +0100
      Re: [PATCH] mm/vmstat: retrieve more accurate vmstat value Michal Hocko <mhocko@kernel.org> - 2015-11-26 16:10 +0100

csiph-web