Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753910AbbEZO7d (ORCPT ); Tue, 26 May 2015 10:59:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59110 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753378AbbEZO73 (ORCPT ); Tue, 26 May 2015 10:59:29 -0400 Date: Tue, 26 May 2015 16:58:46 +0200 From: Andrea Arcangeli To: Christoffer Dall Cc: Steve Capper , "linux-mm@kvack.org" , ebru.akagunduz@gmail.com, "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , kirill.shutemov@linux.intel.com, Rik van Riel , vbabka@suse.cz, Zhang Yanfei , Will Deacon , Andre Przywara , Marc Zyngier , "linux-arm-kernel@lists.infradead.org" Subject: Re: [BUG] Read-Only THP causes stalls (commit 10359213d) Message-ID: <20150526145846.GK26958@redhat.com> References: <20150524193404.GD16910@cbox> <20150525141525.GB26958@redhat.com> <20150526080848.GA27075@cbox> <20150526143547.GA22363@cbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150526143547.GA22363@cbox> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1208 Lines: 32 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/