Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758530AbZLPPsn (ORCPT ); Wed, 16 Dec 2009 10:48:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756294AbZLPPsj (ORCPT ); Wed, 16 Dec 2009 10:48:39 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:57788 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755064AbZLPPsh (ORCPT ); Wed, 16 Dec 2009 10:48:37 -0500 Date: Wed, 16 Dec 2009 07:47:43 -0800 (PST) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: "Rafael J. Wysocki" cc: Alan Stern , Zhang Rui , LKML , ACPI Devel Maling List , pm list Subject: Re: Async suspend-resume patch w/ completions (was: Re: Async suspend-resume patch w/ rwsems) In-Reply-To: <200912160311.05915.rjw@sisk.pl> Message-ID: References: <200912151203.22916.rjw@sisk.pl> <200912160311.05915.rjw@sisk.pl> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1567 Lines: 45 On Wed, 16 Dec 2009, Rafael J. Wysocki wrote: > > The summarized data are below (the "big" numbers are averages and the +/- > numbers are standard deviations, all in milliseconds): > > HP nx6325 MSI Wind U100 > > sync suspend 1482 (+/- 40) 1180 (+/- 24) > sync resume 2955 (+/- 2) 3597 (+/- 25) > > async suspend 1553 (+/- 49) 1177 (+/- 32) > async resume 2692 (+/- 326) 3556 (+/- 33) > > async+one-liner suspend 1600 (+/- 39) 1212 (+/- 41) > async+one-liner resume 2692 (+/- 324) 3579 (+/- 24) > > async+extra suspend 1496 (+/- 37) 1217 (+/- 38) > async+extra resume 1859 (+/- 114) 1923 (+/- 35) > > So, in my opinion, with the above set of "async" devices, it doesn't > make sense to do async suspend at all, because the sync suspend is actually > the fastest on both machines. Hmm. I certainly agree - your numbers do not seem to support any async at all. However, I do note that for the "extra patch" makes a big difference at resume time. That implies that the resume serializes on some slow device that wasn't marked async - and starting the async ones early avoids that. But without the per-device timings, it's hard to even guess what device that was. But even that doesn't really help the suspend cases, only resume. Do you have any sample timing output with devices listed? Linus -- 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/