linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Luigi Semenzato <semenzato@google.com>
To: linux-mm@kvack.org
Subject: swap behavior during fast allocation
Date: Mon, 5 Aug 2013 11:04:25 -0700	[thread overview]
Message-ID: <CAA25o9RO5+gYCTQuouNsJ5COTWdA+wbPUH--B-STSmySjTxBAQ@mail.gmail.com> (raw)

Greetings MM experts,

we (Chrome OS) are experiencing episodes of extremely sluggish
interactive response, i.e. tens of seconds delay between an action
(such as typing something) and the corresponding screen update during
times of very fast allocation, while using zram.

We can reproduce this by running a few processes that mmap large
chunks of memory, then randomly touch pages to fault them in.  We also
think this happens when a process writes a large amount of data using
buffered I/O, and the "Buffers" field in /proc/meminfo exceeds 1GB.
(This is something that can and should be corrected by using
unbuffered I/O instead, but it's a data point.)

We're wondering if this problem has been noticed before and what folks
do to ameliorate the situation.  Specifically, is there any way to
throttle the rate of allocation when the system is swapping?

Thanks!
Luigi

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

             reply	other threads:[~2013-08-05 18:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-05 18:04 Luigi Semenzato [this message]
2013-08-05 18:24 ` Dave Hansen
2013-08-05 18:30   ` Luigi Semenzato

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=CAA25o9RO5+gYCTQuouNsJ5COTWdA+wbPUH--B-STSmySjTxBAQ@mail.gmail.com \
    --to=semenzato@google.com \
    --cc=linux-mm@kvack.org \
    /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