Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754334AbbGFLLL (ORCPT ); Mon, 6 Jul 2015 07:11:11 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:44050 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751653AbbGFLLH (ORCPT ); Mon, 6 Jul 2015 07:11:07 -0400 Date: Mon, 6 Jul 2015 13:11:05 +0200 From: Pavel Machek To: Dave Chinner Cc: "Rafael J. Wysocki" , Len Brown , Henrique de Moraes Holschuh , Alan Stern , One Thousand Gnomes , Linux PM list , "linux-kernel@vger.kernel.org" , Len Brown Subject: Re: [PATCH 1/1] suspend: delete sys_sync() Message-ID: <20150706111105.GD381@amd> References: <4290667.ZqInAykFGS@vostro.rjw.lan> <20150703014250.GM7943@dastard> <1496051.AgsebokWnB@vostro.rjw.lan> <20150706000614.GB3902@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150706000614.GB3902@dastard> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1186 Lines: 26 Hi! > > Moreover, question is if we really need to carry out the sync on *every* > > suspend even if it is not pointless overall. That shouldn't really be > > necessary if we suspend and resume often enough or if we resume only for > > a while and then suspend again. Maybe it should be rate limited somehow > > at least? > > If you suspend and resume frequently, then the cost of the sync > shoul dbe negliable because the amount of data dirtied between > resume/suspend shoul dbe negliable. hence my questions about where > sync is spending too much time, and whether we've actually fixed > those problems or not. If sync speed on clean filesystems is a > problem then we need to fix sync, not work around it. And yes, that's solution I'd really prefer over adding knobs to suspend. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/