Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754848Ab1EIVJE (ORCPT ); Mon, 9 May 2011 17:09:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21931 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753002Ab1EIVJC (ORCPT ); Mon, 9 May 2011 17:09:02 -0400 Date: Mon, 9 May 2011 22:08:41 +0100 From: Alasdair G Kergon To: Zdenek Kabelac , Mikulas Patocka , Linus Torvalds , linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, Hugh Dickins , Oleg Nesterov , agk@redhat.com Subject: Re: [PATCH] Don't mlock guardpage if the stack is growing up Message-ID: <20110509210841.GB9253@agk-dp.fab.redhat.com> Mail-Followup-To: Alasdair G Kergon , Zdenek Kabelac , Mikulas Patocka , Linus Torvalds , linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, Hugh Dickins , Oleg Nesterov References: <4DC7D37F.9040308@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DC7D37F.9040308@redhat.com> Organization: Red Hat UK Ltd. Registered in England and Wales, number 03798903. Registered Office: Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE. User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1162 Lines: 26 On Mon, May 09, 2011 at 01:43:59PM +0200, Zdenek Kabelac wrote: > Dne 9.5.2011 13:01, Mikulas Patocka napsal(a): > > So, when LVM used mlockall, it consumed >100MB memory and it caused > > out-of-memory problems in system installers. The way glibc and some distros have implemented locales makes mlockall() quite useless for many purposes now in practice IMHO. We discussed the options at the time and wrote the extra code to implement the only solution we were offered. (1) There was no possibility of some distros not using a single locale database (reasons: optimisation and packaging convenience); (2) there was no possibility of glibc providing a mechanism to unmap the locale database (if you reset your locale to the default glibc will not unmap the file and indeed doesn't rule out doing something similar with other files in future - these are glibc internals and it's none of our business). Alasdair -- 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/