Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7023593yba; Thu, 2 May 2019 02:49:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAewd4Ff/9VdlaTZWM0KEZRVTNC5UqWcuhSMypLuKSuWaXY6+TGema6I2X7XG3OFsFzisL X-Received: by 2002:a17:902:9f8c:: with SMTP id g12mr2758810plq.256.1556790563392; Thu, 02 May 2019 02:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556790563; cv=none; d=google.com; s=arc-20160816; b=Sy3JDRQDQ39SWv0ZGr20thizCYRyVq7eYXRUZIWbA2QPRFYlm0Z94FJCaMo6mZ/ZJP dndzlR/4qa2VaC7Q0YH/zvG2M2UuOseotubnFklVIlau1DPnaKD9MSlU/KQngXAJj6vB 0ojlT3o1emusvZbk7wyajv0t5y0GYpM7DUDVqofN/UtmtKWDhpjfuzEiQNsgSVzwIgE+ bkstOawZh3c0UutsjL+774m9hHWQ0PmwCnhwAfMGawXwrZJkrF8CpX23Hn5D8aC1GYtp 78myL4DajYUs1dqnobqk+JsglY/4ZUncd0nv7ey62Hoh9JRtQotHMTxkA1xq3ElA0ITu hxVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hG1ZyM/lqfrFzzr5MvhF/uy610c+4WsWKHd8Kc0GQSQ=; b=021iXvQ2WUd9reoHX+K+l4yBwntE4VSomBCN/SbSW8j0Wl1D1inOHI+C+qO+aPygXi dXm9nW6F4nUqMILtt+7ljK6yFPA6q+mEWTRXrs9npxv3I+qYrXdTaiws3O2cGB4ynicK jfJ9sBWAv0fUyNXMV6EuvI5KWeoqMkd9yfYcD7J2yxVlkXUs5B4iwC6TBXy25TIOhYV4 TUY1/mC1KtHaRE+/QE1KLXojaXCz9+VV+JThdYqMsyera8+DJgNWBZavKYEVsgU8YNzR o5xg9DtSxaPCkzs2tg5ko2sSj7fbskqVQ4VeFHxWRTGRnYmC/pdJfQN+DyBD62IBLQyn Dbuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mdbUWmrv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck7si29132387plb.43.2019.05.02.02.49.07; Thu, 02 May 2019 02:49:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mdbUWmrv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726283AbfEBJsT (ORCPT + 99 others); Thu, 2 May 2019 05:48:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:55400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbfEBJsT (ORCPT ); Thu, 2 May 2019 05:48:19 -0400 Received: from linux-8ccs (ip5f5ade58.dynamic.kabel-deutschland.de [95.90.222.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 588B9206DF; Thu, 2 May 2019 09:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556790498; bh=izrYoKTU4xWJRGopNdBEVJaICGTT0gZCvv2SqjNIn1o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mdbUWmrvxijmiVfMWUtjlXpscQSHqZq3GqPkGTrtp/+KqsIObnFELpvpwmTv/CnJ+ cmY2ZrmaBiSGD+K6OTlqONxIwG5WrXGPdtzr5Xzd12Udohl86b+i485k1rJlVozc6s MBCFvdBCyeTe40o1Oo0306A1eN8xf2KQxLeVIbcg= Date: Thu, 2 May 2019 11:48:14 +0200 From: Jessica Yu To: Prarit Bhargava Cc: linux-kernel@vger.kernel.org, Heiko Carstens , David Arcari Subject: Re: [PATCH v3] kernel/module: Reschedule while waiting for modules to finish loading Message-ID: <20190502094813.GA6690@linux-8ccs> References: <20190430222207.3002-1-prarit@redhat.com> <90e18809-2b70-52d8-00b3-9c16768db9ad@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <90e18809-2b70-52d8-00b3-9c16768db9ad@redhat.com> X-OS: Linux linux-8ccs 5.1.0-rc1-lp150.12.28-default+ x86_64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Prarit Bhargava [01/05/19 17:26 -0400]: > > >On 4/30/19 6:22 PM, Prarit Bhargava wrote: >> On a s390 z14 LAR with 2 cpus about stalls about 3% of the time while >> loading the s390_trng.ko module. >> >> Add a reschedule point to the loop that waits for modules to complete >> loading. >> >> v3: cleanup Fixes line. > >Jessica, even with this additional patch there appears to be some other issues >in the module code that are causing significant delays in boot up on large >systems. Is this limited to only s390? Or are you seeing this on other arches as well? And is it limited to specific modules (like s390_trng)? >Please revert these fixes from linux-next & modules-next. I apologize for the >extra work but I think it is for the best until I come up with a more complete & >better tested patch. Sure, then I will revert this patch and the other one as well ("modules: Only return -EEXIST for modules that have finished loading"). >FWIW, the logic in the original patch is correct. It's just that there's, as >Heiko discovered, some poor scheduling, etc., that is impacting the module >loading code after these changes. I am really curious to see what these performance regressions look like :/ Please update us when you find out more. >Again, my apologies, No problem! Thanks again. Jessica