From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: suspend blockers & Android integration Date: Fri, 04 Jun 2010 11:54:05 +0200 Message-ID: <1275645245.27810.39493.camel@twins> References: <20100603193045.GA7188@elte.hu> <20100603231153.GA11302@elte.hu> <20100603232302.GA16184@elte.hu> <1275644619.27810.39462.camel@twins> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:52216 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754092Ab0FDJyS convert rfc822-to-8bit (ORCPT ); Fri, 4 Jun 2010 05:54:18 -0400 In-Reply-To: <1275644619.27810.39462.camel@twins> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Ingo Molnar Cc: tytso@mit.edu, Brian Swetland , Neil Brown , Arve Hj?nnev?g , Thomas Gleixner , "Rafael J. Wysocki" , Alan Stern , Felipe Balbi , LKML , Florian Mickler , Linux OMAP Mailing List , Linux PM , Alan Cox , James Bottomley , Linus Torvalds , Kevin Hilman , "H. Peter Anvin" , Arjan van de Ven On Fri, 2010-06-04 at 11:43 +0200, Peter Zijlstra wrote: > I still believe containment is a cgroup problem. The freeze/snapshot/resume > container folks seem to face many of the same problems. Including the > pending timer one I suspect. Lets solve it there. While talking to Thomas about this, we'd probably need a CLOCK_MONOTONIC namespace to pull this off, so that resumed apps don't see the jump in absolute time. This would also help with locating the relevant timers, since they'd be on the related timer base. The only 'interesting' issue I can see here is that if you create 1000 CLOCK_MONOTONIC namepaces, we'd need to have a tree of trees in order to efficiently find the leftmost timer.