From: Vaibhav Shinde <v.bhav.shinde@gmail.com>
To: Rik van Riel <riel@redhat.com>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Mel Gorman <mgorman@suse.de>
Subject: Re: kswapd hogging in lowmem_shrink
Date: Fri, 13 Mar 2015 20:57:03 +0530 [thread overview]
Message-ID: <CAB5gott45oWidv6hhzfHrvRp6xmxGqkJwJuHqCK6bzejKsW7iQ@mail.gmail.com> (raw)
In-Reply-To: <5502F9BC.2020001@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]
On Fri, Mar 13, 2015 at 8:22 PM, Rik van Riel <riel@redhat.com> wrote:
> On 03/13/2015 10:25 AM, Vaibhav Shinde wrote:
> >
> > On low memory situation, I see various shrinkers being invoked, but in
> > lowmem_shrink() case, kswapd is found to be hogging for around 150msecs.
> >
> > Due to this my application suffer latency issue, as the cpu was not
> > released by kswapd0.
> >
> > I took below traces with vmscan events, that show lowmem_shrink taking
> > such long time for execution.
>
> This is the Android low memory killer, which kills the
> task with the lowest priority in the system.
>
> The low memory killer will iterate over all the tasks
> in the system to identify the task to kill.
>
> This is not a problem in Android systems, and other
> small systems where this piece of code is used.
>
> What kind of system are you trying to use the low
> memory killer on?
>
> How many tasks are you running?
>
> yes, lowmemorykiller kills the task depending on its oom_score, I am using
a embedded device with 2GB memory, there are task running that cause
lowmemory situation - no issue about it.
But my concern is kswapd takes too long to iterate through all the
processes(lowmem_shrink() => for_each_process()), the time taken is around
150msec, due to which my high priority application suffer system latency
that cause malfunctioning.
[-- Attachment #2: Type: text/html, Size: 1858 bytes --]
next prev parent reply other threads:[~2015-03-13 15:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 14:25 kswapd hogging in lowmem_shrink Vaibhav Shinde
2015-03-13 14:52 ` Rik van Riel
2015-03-13 15:27 ` Vaibhav Shinde [this message]
2015-03-16 7:45 ` Vaibhav Shinde
2015-03-16 11:43 ` Rik van Riel
2015-03-13 15:23 ` Michal Hocko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAB5gott45oWidv6hhzfHrvRp6xmxGqkJwJuHqCK6bzejKsW7iQ@mail.gmail.com \
--to=v.bhav.shinde@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@suse.de \
--cc=riel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).