From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932069AbVH3Ae5 (ORCPT ); Mon, 29 Aug 2005 20:34:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751433AbVH3Ae4 (ORCPT ); Mon, 29 Aug 2005 20:34:56 -0400 Received: from smtp.osdl.org ([65.172.181.4]:43229 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1751432AbVH3Ae4 (ORCPT ); Mon, 29 Aug 2005 20:34:56 -0400 Date: Mon, 29 Aug 2005 17:34:33 -0700 (PDT) From: Linus Torvalds To: Ray Fucillo cc: Nick Piggin , Hugh Dickins , Rik van Riel , Andi Kleen , Andrew Morton , linux-kernel Subject: Re: process creation time increases linearly with shmem In-Reply-To: <43139B62.7010502@intersystems.com> Message-ID: References: <430CBFD1.7020101@intersystems.com> <430D0D6B.100@yahoo.com.au> <430E6FD4.9060102@yahoo.com.au> <43108136.1000102@yahoo.com.au> <43115E67.1050305@yahoo.com.au> <43139B62.7010502@intersystems.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 29 Aug 2005, Ray Fucillo wrote: > > FWIW, an interesting side effect of this occurs when I run the database > with this patch internally on a Linux server that uses NIS. Its an > unrelated problem and not a kernel problem. Its due to the children > calling initgroups()... apparently when you have many processes making > simultaneous initgroups() calls something starts imposing very long > waits in increments of 3 seconds Sounds like something is backing off by waiting for three seconds whenever some lock failure occurs. I don't see what locking the code might want to do (it should just do the NIS equivalent of reading /etc/groups and do a "setgroups()" system call), but I assume that the NIS server ends up having some strange locking. You might do an "ltrace testcase" (and, probably, the nis server) to see if you can see where it happens, and bug the appropriate maintainers. Especially if you have a repeatable test-case (where "repeatable" isn't just for your particular machine: it's probably timing-related), somebody might even fix it ;) Linus