From owner-freebsd-current@FreeBSD.ORG Wed Jan 20 09:37:27 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 617941065672 for ; Wed, 20 Jan 2010 09:37:27 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id 1CA528FC12 for ; Wed, 20 Jan 2010 09:37:26 +0000 (UTC) Received: from server.mypc.hu (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 9A97814DA30B; Wed, 20 Jan 2010 10:20:27 +0100 (CET) X-Virus-Scanned: amavisd-new at server.mypc.hu Received: from server.mypc.hu ([127.0.0.1]) by server.mypc.hu (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cnwwpdR6YB7c; Wed, 20 Jan 2010 10:20:17 +0100 (CET) Received: from [192.168.1.105] (catv-89-132-179-104.catv.broadband.hu [89.132.179.104]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 3668214DA2FD; Wed, 20 Jan 2010 10:20:17 +0100 (CET) Message-ID: <4B56CACF.50508@FreeBSD.org> Date: Wed, 20 Jan 2010 10:20:15 +0100 From: Gabor Kovesdan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; es-ES; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: Kostik Belousov References: <20100119212019.GL59590@deviant.kiev.zoral.com.ua> In-Reply-To: <20100119212019.GL59590@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: attilio@freebsd.org, current@freebsd.org Subject: Re: NLS/strerror efficiency X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2010 09:37:27 -0000 El 2010. 01. 19. 22:20, Kostik Belousov escribió: > Hi, > r189765 enabled NLS support for libc. Now, any strerror(3) call causes > 4 (!) failing stat(2) calls. I think this is untolerable. > > Catopen() does not cache the catalog descriptor, at least for libc, > at least for the case where the open failed. > Hi Kostik, thank you for pointing this out. I'll check the code to see how we could add a caching for the failing catalogs. I'll post the patch here when I'm done. Regards, -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org