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


Groups > linux.kernel > #1276580

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-24 16:40 +0100
Message-ID <qynRj-1yb-103@gated-at.bofh.it> (permalink)
References <qyfh0-4q8-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 24 Nov 2015, Joonsoo Kim wrote:

> When I tested compaction in low memory condition, I found that
> my benchmark is stuck in congestion_wait() at shrink_inactive_list().
> This stuck last for 1 sec and after then it can escape. More investigation
> shows that it is due to stale vmstat value. vmstat is updated every 1 sec
> so it is stuck for 1 sec.

vmstat values are not designed to be accurate and are not guaranteed to be
accurate. Comparing to specific values should not be done. If you need an
accurate counter then please use another method of accounting like an
atomic.

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