[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150526145846.GK26958@redhat.com>
Date: Tue, 26 May 2015 16:58:46 +0200
From: Andrea Arcangeli <aarcange@...hat.com>
To: Christoffer Dall <christoffer.dall@...aro.org>
Cc: Steve Capper <steve.capper@...aro.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
ebru.akagunduz@...il.com,
"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
kirill.shutemov@...ux.intel.com, Rik van Riel <riel@...hat.com>,
vbabka@...e.cz, Zhang Yanfei <zhangyanfei@...fujitsu.com>,
Will Deacon <will.deacon@....com>,
Andre Przywara <andre.przywara@....com>,
Marc Zyngier <marc.zyngier@....com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [BUG] Read-Only THP causes stalls (commit 10359213d)
On Tue, May 26, 2015 at 04:35:47PM +0200, Christoffer Dall wrote:
> Any chance you could send me the memhog tool?
memhog is just the first that come to mind because I got it
preinstalled everywhere (I only miss it on cyanogenmod as there's no
numactl there... yet).
Anything else would do as well, as long as you allocate lots of
anonymous memory (malloc(); bzero() or just write 1 byte every
4k). The tmpfs trick was fine as well as you'd end up swapping the
anonymous memory allocated by the running apps.
This would be the python version which I actually used sometime if I
couldn't find something preinstalled and I didn't want to install
packages.
echo 1 >/proc/sys/vm/overcommit_memory
python
a = "a"
while True:
a += a
This is the more polished way, I just happen to have it installed
everywhere (except the cellphone) so I tend to use it, I think it's
simpler to install the numactl package.
https://github.com/numactl/numactl/blob/master/memhog.c
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists