Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756701AbcLNXug (ORCPT ); Wed, 14 Dec 2016 18:50:36 -0500 Received: from LGEAMRELO13.lge.com ([156.147.23.53]:43108 "EHLO lgeamrelo13.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752366AbcLNXue (ORCPT ); Wed, 14 Dec 2016 18:50:34 -0500 X-Original-SENDERIP: 156.147.1.125 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 10.177.223.161 X-Original-MAILFROM: minchan@kernel.org Date: Thu, 15 Dec 2016 08:50:31 +0900 From: Minchan Kim To: Andreas Schwab Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mbrugger@suse.de, linux-mm@kvack.org, Jason Evans Subject: Re: jemalloc testsuite stalls in memset Message-ID: <20161214235031.GA2912@bbox> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2310 Lines: 68 Hello, First of all, thanks for the report and sorry I have no time now so maybe I should investigate the problem next week. On Wed, Dec 14, 2016 at 03:34:54PM +0100, Andreas Schwab wrote: > When running the jemalloc-4.4.0 testsuite on aarch64 with glibc 2.24 the > test/unit/junk test hangs in memset: > > (gdb) r > Starting program: /tmp/jemalloc/jemalloc-4.4.0/test/unit/junk > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib64/libthread_db.so.1". > test_junk_small: pass > test_junk_large: pass > ^C > Program received signal SIGINT, Interrupt. > memset () at ../sysdeps/aarch64/memset.S:91 > 91 str q0, [dstin] > (gdb) x/i $pc > => 0xffffb7ddf54c : str q0, [x0] > > x0 is pointing to the start of this mmap'd block: > > 0xffffb7400000 0xffffb7600000 0x200000 0x0 > > Any attempt to contine execution or step over the insn still causes the > process to hang here. Only after accessing the memory through the > debugger the test successfully continues to completion. You mean program itself access the address(ie, 0xffffb7400000) is hang while access the address from the debugger is OK? Scratch head. :/ Can you reproduce it easily? Did you test it in real machine or qemu on x86? Could you show me how I can reproduce it? I want to test it in x86 machine, first of all. Unfortunately, I don't have any aarch64 platform now so maybe I have to run it on qemu on x86 until I can set up aarch64 platform if it is reproducible on real machine only. > > The kernel has been configured with transparent hugepages. > > CONFIG_TRANSPARENT_HUGEPAGE=y > CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y > # CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set > CONFIG_TRANSPARENT_HUGE_PAGECACHE=y What's the exact kernel version? I don't think it's HUGE_PAGECACHE problem but to narrow down the scope, could you test it without CONFIG_TRANSPARENT_HUGE_PAGECACHE? Thanks. > > This issue has been bisected to commit > b8d3c4c3009d42869dc03a1da0efc2aa687d0ab4 ("mm/huge_memory.c: don't split > THP page when MADV_FREE syscall is called"). > > Andreas. > > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 > "And now for something completely different."